aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/monotone.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-03-30 22:16:37 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-30 22:16:37 +0100
commit6669d427f87ec62a86a680a542d2f87f2d65cc80 (patch)
tree80e08e1830eb6283fffa2d3db600ad00090d1970 /libbe/storage/vcs/monotone.py
parentbc53c496220b283773f65762d4283c8f1e480131 (diff)
downloadbugseverywhere-6669d427f87ec62a86a680a542d2f87f2d65cc80.tar.gz
Used PyCharms inspectors.
Diffstat (limited to 'libbe/storage/vcs/monotone.py')
-rw-r--r--libbe/storage/vcs/monotone.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbe/storage/vcs/monotone.py b/libbe/storage/vcs/monotone.py
index 1d74c5b..4eaced8 100644
--- a/libbe/storage/vcs/monotone.py
+++ b/libbe/storage/vcs/monotone.py
@@ -86,7 +86,7 @@ class Monotone (base.VCS):
-1
"""
if not hasattr(self, '_parsed_version') \
- or self._parsed_version == None:
+ or self._parsed_version is None:
self._parsed_version = [int(x) for x in self.version().split('.')]
for current,other in zip(self._parsed_version, args):
c = cmp(current,other)
@@ -129,7 +129,7 @@ class Monotone (base.VCS):
return None # Monotone has no infomation
def _vcs_detect(self, path):
- if self._u_search_parent_directories(path, '_MTN') != None :
+ if self._u_search_parent_directories(path, '_MTN') is not None:
return True
return False
@@ -153,11 +153,11 @@ class Monotone (base.VCS):
"""Invoke the client on our branch.
"""
arglist = []
- if self._db_path != None:
+ if self._db_path is not None:
arglist.extend(['--db', self._db_path])
- if self._key != None:
+ if self._key is not None:
arglist.extend(['--key', self._key])
- if self._key_dir != None:
+ if self._key_dir is not None:
arglist.extend(['--keydir', self._key_dir])
arglist.extend(args)
args = tuple(arglist)