/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/win32/brz_postinstall.py

  • Committer: Martin
  • Date: 2018-11-17 16:53:10 UTC
  • mto: This revision was merged to the branch mainline in revision 7186.
  • Revision ID: gzlist@googlemail.com-20181117165310-iti8yu4xba2d7p3j
Fix E71* lint errors

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
                    _winreg.SetValueEx(hkey, 'Path', 0, type_, path_u)
240
240
                    _winreg.FlushKey(hkey)
241
241
 
242
 
        if not hkey is None:
 
242
        if hkey not is None:
243
243
            _winreg.CloseKey(hkey)
244
244
 
245
245
    if (add_path or delete_path) and winver == 'Windows 98':
305
305
                            'EnvironmentError',
306
306
                            MB_OK | MB_ICONERROR)
307
307
 
308
 
        if not hkey is None:
 
308
        if hkey not is None:
309
309
            _winreg.SetValue(hkey, '', _winreg.REG_SZ, 'Brz Here')
310
310
            hkey2 = _winreg.CreateKey(hkey, 'command')
311
311
            _winreg.SetValue(hkey2, '', _winreg.REG_SZ,