Merge lp:~gz/brz/lint_E71 into lp:brz

Proposed by Martin Packman
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~gz/brz/lint_E71
Merge into: lp:brz
Diff against target: 416 lines (+37/-41)
25 files modified
breezy/bzr/check.py (+1/-1)
breezy/bzr/groupcompress.py (+1/-1)
breezy/bzr/inventorytree.py (+3/-3)
breezy/bzr/remote.py (+1/-1)
breezy/bzr/repository.py (+1/-1)
breezy/bzr/smart/vfs.py (+2/-2)
breezy/git/fetch.py (+1/-1)
breezy/plugins/email/emailer.py (+1/-1)
breezy/plugins/fastimport/helpers.py (+2/-2)
breezy/plugins/fastimport/processors/generic_processor.py (+1/-1)
breezy/plugins/grep/cmds.py (+2/-2)
breezy/plugins/stats/cmds.py (+2/-2)
breezy/plugins/weave_fmt/store/__init__.py (+1/-1)
breezy/plugins/weave_fmt/workingtree.py (+1/-1)
breezy/push.py (+1/-1)
breezy/shelf.py (+3/-3)
breezy/status.py (+1/-1)
breezy/symbol_versioning.py (+1/-1)
breezy/tests/__init__.py (+1/-1)
breezy/tests/test_config.py (+1/-1)
breezy/transport/__init__.py (+2/-2)
breezy/transport/memory.py (+4/-4)
setup.cfg (+0/-4)
setup.py (+1/-1)
tools/win32/brz_postinstall.py (+2/-2)
To merge this branch: bzr merge lp:~gz/brz/lint_E71
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+358946@code.launchpad.net

Description of the change

Fix E71* lint errors

Mostly moving nots around and a few equality to idenity check changes.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'breezy/bzr/check.py'
--- breezy/bzr/check.py 2018-11-11 04:08:32 +0000
+++ breezy/bzr/check.py 2018-11-17 17:05:54 +0000
@@ -268,7 +268,7 @@
268 self.ghosts.discard(rev_id)268 self.ghosts.discard(rev_id)
269 # Count all parents as ghosts if we haven't seen them yet.269 # Count all parents as ghosts if we haven't seen them yet.
270 for parent in rev.parent_ids:270 for parent in rev.parent_ids:
271 if not parent in self.planned_revisions:271 if parent not in self.planned_revisions:
272 self.ghosts.add(parent)272 self.ghosts.add(parent)
273273
274 self.ancestors[rev_id] = tuple(rev.parent_ids) or (NULL_REVISION,)274 self.ancestors[rev_id] = tuple(rev.parent_ids) or (NULL_REVISION,)
275275
=== modified file 'breezy/bzr/groupcompress.py'
--- breezy/bzr/groupcompress.py 2018-11-12 01:41:38 +0000
+++ breezy/bzr/groupcompress.py 2018-11-17 17:05:54 +0000
@@ -1628,7 +1628,7 @@
1628 """See VersionedFiles.get_sha1s()."""1628 """See VersionedFiles.get_sha1s()."""
1629 result = {}1629 result = {}
1630 for record in self.get_record_stream(keys, 'unordered', True):1630 for record in self.get_record_stream(keys, 'unordered', True):
1631 if record.sha1 != None:1631 if record.sha1 is not None:
1632 result[record.key] = record.sha11632 result[record.key] = record.sha1
1633 else:1633 else:
1634 if record.storage_kind != 'absent':1634 if record.storage_kind != 'absent':
16351635
=== modified file 'breezy/bzr/inventorytree.py'
--- breezy/bzr/inventorytree.py 2018-11-16 18:33:17 +0000
+++ breezy/bzr/inventorytree.py 2018-11-17 17:05:54 +0000
@@ -197,7 +197,7 @@
197 inventory_file_ids = []197 inventory_file_ids = []
198 for path in specific_files:198 for path in specific_files:
199 inventory, inv_file_id = self._path2inv_file_id(path)199 inventory, inv_file_id = self._path2inv_file_id(path)
200 if not inventory is self.root_inventory: # for now200 if inventory is not self.root_inventory: # for now
201 raise AssertionError("%r != %r" % (201 raise AssertionError("%r != %r" % (
202 inventory, self.root_inventory))202 inventory, self.root_inventory))
203 inventory_file_ids.append(inv_file_id)203 inventory_file_ids.append(inv_file_id)
@@ -917,9 +917,9 @@
917 changed_file_ids = set(changed_file_ids)917 changed_file_ids = set(changed_file_ids)
918 for relpath, entry in self.target.root_inventory.iter_entries():918 for relpath, entry in self.target.root_inventory.iter_entries():
919 if (specific_file_ids is not None and919 if (specific_file_ids is not None and
920 not entry.file_id in specific_file_ids):920 entry.file_id not in specific_file_ids):
921 continue921 continue
922 if not entry.file_id in changed_file_ids:922 if entry.file_id not in changed_file_ids:
923 yield (entry.file_id,923 yield (entry.file_id,
924 (relpath, relpath), # Not renamed924 (relpath, relpath), # Not renamed
925 False, # Not modified925 False, # Not modified
926926
=== modified file 'breezy/bzr/remote.py'
--- breezy/bzr/remote.py 2018-11-11 04:08:32 +0000
+++ breezy/bzr/remote.py 2018-11-17 17:05:54 +0000
@@ -2268,7 +2268,7 @@
2268 unused.append(decompressor.unused_data)2268 unused.append(decompressor.unused_data)
2269 unused = b""2269 unused = b""
2270 while True:2270 while True:
2271 while not b"\n" in unused:2271 while b"\n" not in unused:
2272 try:2272 try:
2273 unused += next(byte_stream)2273 unused += next(byte_stream)
2274 except StopIteration:2274 except StopIteration:
22752275
=== modified file 'breezy/bzr/repository.py'
--- breezy/bzr/repository.py 2018-11-11 04:08:32 +0000
+++ breezy/bzr/repository.py 2018-11-17 17:05:54 +0000
@@ -135,7 +135,7 @@
135 control_files = self._create_control_files(a_bzrdir)135 control_files = self._create_control_files(a_bzrdir)
136 control_files.lock_write()136 control_files.lock_write()
137 transport = control_files._transport137 transport = control_files._transport
138 if shared == True:138 if shared is True:
139 utf8_files += [('shared-storage', b'')]139 utf8_files += [('shared-storage', b'')]
140 try:140 try:
141 for dir in dirs:141 for dir in dirs:
142142
=== modified file 'breezy/bzr/smart/vfs.py'
--- breezy/bzr/smart/vfs.py 2018-11-11 04:08:32 +0000
+++ breezy/bzr/smart/vfs.py 2018-11-17 17:05:54 +0000
@@ -46,9 +46,9 @@
4646
47 the VFS is disabled when the BRZ_NO_SMART_VFS environment variable is set.47 the VFS is disabled when the BRZ_NO_SMART_VFS environment variable is set.
4848
49 :return: True if it is enabled.49 :return: ``True`` if it is enabled.
50 """50 """
51 return not 'BRZ_NO_SMART_VFS' in os.environ51 return 'BRZ_NO_SMART_VFS' not in os.environ
5252
5353
54class VfsRequest(request.SmartServerRequest):54class VfsRequest(request.SmartServerRequest):
5555
=== modified file 'breezy/git/fetch.py'
--- breezy/git/fetch.py 2018-11-16 18:33:17 +0000
+++ breezy/git/fetch.py 2018-11-17 17:05:54 +0000
@@ -138,7 +138,7 @@
138 ie.revision = ptree.get_file_revision(ppath)138 ie.revision = ptree.get_file_revision(ppath)
139 break139 break
140 parent_key = (file_id, ptree.get_file_revision(ppath))140 parent_key = (file_id, ptree.get_file_revision(ppath))
141 if not parent_key in parent_keys:141 if parent_key not in parent_keys:
142 parent_keys.append(parent_key)142 parent_keys.append(parent_key)
143 if ie.revision is None:143 if ie.revision is None:
144 # Need to store a new revision144 # Need to store a new revision
145145
=== modified file 'breezy/plugins/email/emailer.py'
--- breezy/plugins/email/emailer.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/email/emailer.py 2018-11-17 17:05:54 +0000
@@ -247,7 +247,7 @@
247 msg.add_inline_attachment(diff, self.diff_filename())247 msg.add_inline_attachment(diff, self.diff_filename())
248248
249 # Add revision_mail_headers to the headers249 # Add revision_mail_headers to the headers
250 if header != None:250 if header is None:
251 for k, v in header.items():251 for k, v in header.items():
252 msg[k] = v252 msg[k] = v
253253
254254
=== modified file 'breezy/plugins/fastimport/helpers.py'
--- breezy/plugins/fastimport/helpers.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/fastimport/helpers.py 2018-11-17 17:05:54 +0000
@@ -121,9 +121,9 @@
121121
122def kind_to_mode(kind, executable):122def kind_to_mode(kind, executable):
123 if kind == "file":123 if kind == "file":
124 if executable == True:124 if executable is True:
125 return stat.S_IFREG | 0o755125 return stat.S_IFREG | 0o755
126 elif executable == False:126 elif executable is False:
127 return stat.S_IFREG | 0o644127 return stat.S_IFREG | 0o644
128 else:128 else:
129 raise AssertionError("Executable %r invalid" % executable)129 raise AssertionError("Executable %r invalid" % executable)
130130
=== modified file 'breezy/plugins/fastimport/processors/generic_processor.py'
--- breezy/plugins/fastimport/processors/generic_processor.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/fastimport/processors/generic_processor.py 2018-11-17 17:05:54 +0000
@@ -310,7 +310,7 @@
310 marks_file.export_marks(self.params.get("export-marks"),310 marks_file.export_marks(self.params.get("export-marks"),
311 self.cache_mgr.marks)311 self.cache_mgr.marks)
312312
313 if self.cache_mgr.reftracker.last_ref == None:313 if self.cache_mgr.reftracker.last_ref is None:
314 """Nothing to refresh"""314 """Nothing to refresh"""
315 return315 return
316316
317317
=== modified file 'breezy/plugins/grep/cmds.py'
--- breezy/plugins/grep/cmds.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/grep/cmds.py 2018-11-17 17:05:54 +0000
@@ -178,11 +178,11 @@
178 raise errors.BzrCommandError('Valid values for --color are '178 raise errors.BzrCommandError('Valid values for --color are '
179 '"always", "never" or "auto".')179 '"always", "never" or "auto".')
180180
181 if levels == None:181 if levels is None:
182 levels = 1182 levels = 1
183183
184 print_revno = False184 print_revno = False
185 if revision != None or levels == 0:185 if revision is not None or levels == 0:
186 # print revision numbers as we may be showing multiple revisions186 # print revision numbers as we may be showing multiple revisions
187 print_revno = True187 print_revno = True
188188
189189
=== modified file 'breezy/plugins/stats/cmds.py'
--- breezy/plugins/stats/cmds.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/stats/cmds.py 2018-11-17 17:05:54 +0000
@@ -311,7 +311,7 @@
311 for delta in repository.get_deltas_for_revisions(revs):311 for delta in repository.get_deltas_for_revisions(revs):
312 pb.update("classifying commits", i, len(revs))312 pb.update("classifying commits", i, len(revs))
313 for c in classify_delta(delta):313 for c in classify_delta(delta):
314 if not c in ret:314 if c not in ret:
315 ret[c] = 0315 ret[c] = 0
316 ret[c] += 1316 ret[c] += 1
317 total += 1317 total += 1
@@ -365,7 +365,7 @@
365 continue365 continue
366 for c in set(classify_delta(delta)):366 for c in set(classify_delta(delta)):
367 for author in rev.get_apparent_authors():367 for author in rev.get_apparent_authors():
368 if not author in ret[c]:368 if author not in ret[c]:
369 ret[c][author] = 0369 ret[c][author] = 0
370 ret[c][author] += 1370 ret[c][author] += 1
371371
372372
=== modified file 'breezy/plugins/weave_fmt/store/__init__.py'
--- breezy/plugins/weave_fmt/store/__init__.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/weave_fmt/store/__init__.py 2018-11-17 17:05:54 +0000
@@ -215,7 +215,7 @@
215 self._check_fileid(fileid)215 self._check_fileid(fileid)
216 if suffixes:216 if suffixes:
217 for suffix in suffixes:217 for suffix in suffixes:
218 if not suffix in self._suffixes:218 if suffix not in self._suffixes:
219 raise ValueError("Unregistered suffix %r" % suffix)219 raise ValueError("Unregistered suffix %r" % suffix)
220 self._check_fileid(suffix.encode('utf-8'))220 self._check_fileid(suffix.encode('utf-8'))
221 else:221 else:
222222
=== modified file 'breezy/plugins/weave_fmt/workingtree.py'
--- breezy/plugins/weave_fmt/workingtree.py 2018-11-11 04:08:32 +0000
+++ breezy/plugins/weave_fmt/workingtree.py 2018-11-17 17:05:54 +0000
@@ -234,7 +234,7 @@
234 text = False234 text = False
235 except errors.NoSuchFile:235 except errors.NoSuchFile:
236 text = False236 text = False
237 if text == False:237 if text is False:
238 break238 break
239 ctype = {True: 'text conflict',239 ctype = {True: 'text conflict',
240 False: 'contents conflict'}[text]240 False: 'contents conflict'}[text]
241241
=== modified file 'breezy/push.py'
--- breezy/push.py 2018-11-16 18:40:46 +0000
+++ breezy/push.py 2018-11-17 17:05:54 +0000
@@ -162,7 +162,7 @@
162 " control directory, but not a branch or repository. This"162 " control directory, but not a branch or repository. This"
163 " is an unsupported configuration. Please move the target"163 " is an unsupported configuration. Please move the target"
164 " directory out of the way and try again.") % location)164 " directory out of the way and try again.") % location)
165 if push_result.workingtree_updated == False:165 if push_result.workingtree_updated is False:
166 warning("This transport does not update the working "166 warning("This transport does not update the working "
167 "tree of: %s. See 'brz help working-trees' for "167 "tree of: %s. See 'brz help working-trees' for "
168 "more information." % push_result.target_branch.base)168 "more information." % push_result.target_branch.base)
169169
=== modified file 'breezy/shelf.py'
--- breezy/shelf.py 2018-11-16 18:33:17 +0000
+++ breezy/shelf.py 2018-11-17 17:05:54 +0000
@@ -109,11 +109,11 @@
109 # Also don't shelve deletion of tree root.109 # Also don't shelve deletion of tree root.
110 if kind[1] is None and names[0] == '':110 if kind[1] is None and names[0] == '':
111 continue111 continue
112 if kind[0] is None or versioned[0] == False:112 if kind[0] is None or versioned[0] is False:
113 self.creation[file_id] = (kind[1], names[1], parents[1],113 self.creation[file_id] = (kind[1], names[1], parents[1],
114 versioned)114 versioned)
115 yield ('add file', file_id, kind[1], paths[1])115 yield ('add file', file_id, kind[1], paths[1])
116 elif kind[1] is None or versioned[0] == False:116 elif kind[1] is None or versioned[0] is False:
117 self.deletion[file_id] = (kind[0], names[0], parents[0],117 self.deletion[file_id] = (kind[0], names[0], parents[0],
118 versioned)118 versioned)
119 yield ('delete file', file_id, kind[0], paths[0])119 yield ('delete file', file_id, kind[0], paths[0])
@@ -150,7 +150,7 @@
150 def shelve_all(self):150 def shelve_all(self):
151 """Shelve all changes.151 """Shelve all changes.
152152
153 :return: True if changes were shelved, False if there were no changes.153 :return: ``True`` if changes were shelved, otherwise ``False``.
154 """154 """
155 change = None155 change = None
156 for change in self.iter_shelvable():156 for change in self.iter_shelvable():
157157
=== modified file 'breezy/status.py'
--- breezy/status.py 2018-11-12 01:41:38 +0000
+++ breezy/status.py 2018-11-17 17:05:54 +0000
@@ -341,7 +341,7 @@
341 s = old_tree.filter_unversioned_files(orig_paths)341 s = old_tree.filter_unversioned_files(orig_paths)
342 s = new_tree.filter_unversioned_files(s)342 s = new_tree.filter_unversioned_files(s)
343 nonexistent = [path for path in s if not new_tree.has_filename(path)]343 nonexistent = [path for path in s if not new_tree.has_filename(path)]
344 remaining = [path for path in orig_paths if not path in nonexistent]344 remaining = [path for path in orig_paths if path not in nonexistent]
345 # Sorting the 'remaining' list doesn't have much effect in345 # Sorting the 'remaining' list doesn't have much effect in
346 # practice, since the various status output sections will sort346 # practice, since the various status output sections will sort
347 # their groups individually. But for consistency of this347 # their groups individually. But for consistency of this
348348
=== modified file 'breezy/symbol_versioning.py'
--- breezy/symbol_versioning.py 2018-11-12 01:41:38 +0000
+++ breezy/symbol_versioning.py 2018-11-17 17:05:54 +0000
@@ -79,7 +79,7 @@
79 symbol = "%s.%s.%s" % (a_callable.__self__.__class__.__module__,79 symbol = "%s.%s.%s" % (a_callable.__self__.__class__.__module__,
80 a_callable.__self__.__class__.__name__,80 a_callable.__self__.__class__.__name__,
81 a_callable.__name__)81 a_callable.__name__)
82 elif getattr(a_callable, '__qualname__', None) is not None and not '<' in a_callable.__qualname__:82 elif getattr(a_callable, '__qualname__', None) is not None and '<' not in a_callable.__qualname__:
83 symbol = "%s.%s" % (a_callable.__module__,83 symbol = "%s.%s" % (a_callable.__module__,
84 a_callable.__qualname__)84 a_callable.__qualname__)
85 else:85 else:
8686
=== modified file 'breezy/tests/__init__.py'
--- breezy/tests/__init__.py 2018-11-16 12:32:43 +0000
+++ breezy/tests/__init__.py 2018-11-17 17:05:54 +0000
@@ -4544,7 +4544,7 @@
4544 # We don't want to fail here because some useful display will be lost4544 # We don't want to fail here because some useful display will be lost
4545 # otherwise. Polluting the tmp dir is bad, but not giving all the4545 # otherwise. Polluting the tmp dir is bad, but not giving all the
4546 # possible info to the test runner is even worse.4546 # possible info to the test runner is even worse.
4547 if test_id != None:4547 if test_id is not None:
4548 ui.ui_factory.clear_term()4548 ui.ui_factory.clear_term()
4549 sys.stderr.write('\nWhile running: %s\n' % (test_id,))4549 sys.stderr.write('\nWhile running: %s\n' % (test_id,))
4550 # Ugly, but the last thing we want here is fail, so bear with it.4550 # Ugly, but the last thing we want here is fail, so bear with it.
45514551
=== modified file 'breezy/tests/test_config.py'
--- breezy/tests/test_config.py 2018-11-11 04:08:32 +0000
+++ breezy/tests/test_config.py 2018-11-17 17:05:54 +0000
@@ -4597,7 +4597,7 @@
4597 def get_credentials(self, scheme, host, port=None, user=None,4597 def get_credentials(self, scheme, host, port=None, user=None,
4598 path=None, realm=None):4598 path=None, realm=None):
4599 key = (scheme, host)4599 key = (scheme, host)
4600 if not key in self._username:4600 if key not in self._username:
4601 return None4601 return None
4602 return {"scheme": scheme, "host": host, "port": port,4602 return {"scheme": scheme, "host": host, "port": port,
4603 "user": self._username[key], "password": self._password[key]}4603 "user": self._username[key], "password": self._password[key]}
46044604
=== modified file 'breezy/transport/__init__.py'
--- breezy/transport/__init__.py 2018-11-11 04:08:32 +0000
+++ breezy/transport/__init__.py 2018-11-17 17:05:54 +0000
@@ -134,14 +134,14 @@
134134
135135
136def register_lazy_transport(prefix, module, classname):136def register_lazy_transport(prefix, module, classname):
137 if not prefix in transport_list_registry:137 if prefix not in transport_list_registry:
138 register_transport_proto(prefix)138 register_transport_proto(prefix)
139 transport_list_registry.register_lazy_transport_provider(139 transport_list_registry.register_lazy_transport_provider(
140 prefix, module, classname)140 prefix, module, classname)
141141
142142
143def register_transport(prefix, klass):143def register_transport(prefix, klass):
144 if not prefix in transport_list_registry:144 if prefix not in transport_list_registry:
145 register_transport_proto(prefix)145 register_transport_proto(prefix)
146 transport_list_registry.register_transport_provider(prefix, klass)146 transport_list_registry.register_transport_provider(prefix, klass)
147147
148148
=== modified file 'breezy/transport/memory.py'
--- breezy/transport/memory.py 2018-11-11 04:08:32 +0000
+++ breezy/transport/memory.py 2018-11-17 17:05:54 +0000
@@ -122,7 +122,7 @@
122 def _check_parent(self, _abspath):122 def _check_parent(self, _abspath):
123 dir = os.path.dirname(_abspath)123 dir = os.path.dirname(_abspath)
124 if dir != '/':124 if dir != '/':
125 if not dir in self._dirs:125 if dir not in self._dirs:
126 raise NoSuchFile(_abspath)126 raise NoSuchFile(_abspath)
127127
128 def has(self, relpath):128 def has(self, relpath):
@@ -135,7 +135,7 @@
135 def delete(self, relpath):135 def delete(self, relpath):
136 """See Transport.delete()."""136 """See Transport.delete()."""
137 _abspath = self._abspath(relpath)137 _abspath = self._abspath(relpath)
138 if not _abspath in self._files:138 if _abspath not in self._files:
139 raise NoSuchFile(relpath)139 raise NoSuchFile(relpath)
140 del self._files[_abspath]140 del self._files[_abspath]
141141
@@ -148,7 +148,7 @@
148 def get(self, relpath):148 def get(self, relpath):
149 """See Transport.get()."""149 """See Transport.get()."""
150 _abspath = self._abspath(relpath)150 _abspath = self._abspath(relpath)
151 if not _abspath in self._files:151 if _abspath not in self._files:
152 if _abspath in self._dirs:152 if _abspath in self._dirs:
153 return LateReadError(relpath)153 return LateReadError(relpath)
154 else:154 else:
@@ -255,7 +255,7 @@
255 if path.startswith(_abspath + '/') and path != _abspath:255 if path.startswith(_abspath + '/') and path != _abspath:
256 self._translate_error(256 self._translate_error(
257 IOError(errno.ENOTEMPTY, relpath), relpath)257 IOError(errno.ENOTEMPTY, relpath), relpath)
258 if not _abspath in self._dirs:258 if _abspath not in self._dirs:
259 raise NoSuchFile(relpath)259 raise NoSuchFile(relpath)
260 del self._dirs[_abspath]260 del self._dirs[_abspath]
261261
262262
=== modified file 'setup.cfg'
--- setup.cfg 2018-11-17 16:19:11 +0000
+++ setup.cfg 2018-11-17 17:05:54 +0000
@@ -24,10 +24,6 @@
24 E50224 E502
25 E70225 E702
26 E70426 E704
27 E711
28 E712
29 E713
30 E714
31 E72227 E722
32 E73128 E731
33 E74129 E741
3430
=== modified file 'setup.py'
--- setup.py 2018-11-16 13:15:40 +0000
+++ setup.py 2018-11-17 17:05:54 +0000
@@ -743,7 +743,7 @@
743else:743else:
744 # ad-hoc for easy_install744 # ad-hoc for easy_install
745 DATA_FILES = []745 DATA_FILES = []
746 if not 'bdist_egg' in sys.argv:746 if 'bdist_egg' not in sys.argv:
747 # generate and install brz.1 only with plain install, not the747 # generate and install brz.1 only with plain install, not the
748 # easy_install one748 # easy_install one
749 DATA_FILES = [('man/man1', ['brz.1', 'breezy/git/git-remote-bzr.1'])]749 DATA_FILES = [('man/man1', ['brz.1', 'breezy/git/git-remote-bzr.1'])]
750750
=== modified file 'tools/win32/brz_postinstall.py'
--- tools/win32/brz_postinstall.py 2018-11-16 13:15:40 +0000
+++ tools/win32/brz_postinstall.py 2018-11-17 17:05:54 +0000
@@ -239,7 +239,7 @@
239 _winreg.SetValueEx(hkey, 'Path', 0, type_, path_u)239 _winreg.SetValueEx(hkey, 'Path', 0, type_, path_u)
240 _winreg.FlushKey(hkey)240 _winreg.FlushKey(hkey)
241241
242 if not hkey is None:242 if hkey not is None:
243 _winreg.CloseKey(hkey)243 _winreg.CloseKey(hkey)
244244
245 if (add_path or delete_path) and winver == 'Windows 98':245 if (add_path or delete_path) and winver == 'Windows 98':
@@ -305,7 +305,7 @@
305 'EnvironmentError',305 'EnvironmentError',
306 MB_OK | MB_ICONERROR)306 MB_OK | MB_ICONERROR)
307307
308 if not hkey is None:308 if hkey not is None:
309 _winreg.SetValue(hkey, '', _winreg.REG_SZ, 'Brz Here')309 _winreg.SetValue(hkey, '', _winreg.REG_SZ, 'Brz Here')
310 hkey2 = _winreg.CreateKey(hkey, 'command')310 hkey2 = _winreg.CreateKey(hkey, 'command')
311 _winreg.SetValue(hkey2, '', _winreg.REG_SZ,311 _winreg.SetValue(hkey2, '', _winreg.REG_SZ,

Subscribers

People subscribed via source and target branches