/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-win32-bdist-postinstall.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 19:38:57 UTC
  • mfrom: (7143.16.21 even-more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116193857-bs5oma2655sp55qu
Fix another dozen flake8 errors.

Merged from https://code.launchpad.net/~jelmer/brz/even-more-cleanups/+merge/358931

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        batch_path = os.path.join(scripts_dir, "brz.bat")
81
81
        with open(batch_path, "w") as f:
82
82
            f.write(batch_str)
83
 
        file_created(batch_path)        # registering manually created files for
84
 
                                        # auto-deinstallation procedure
 
83
        # registering manually created files for auto-deinstallation procedure
 
84
        file_created(batch_path)
85
85
        ##
86
86
        # inform user where batch launcher is.
87
87
        print("Created:", batch_path)
93
93
    # use bdist_wininst builtins to create a shortcut.
94
94
    # CSIDL_COMMON_PROGRAMS only available works on NT/2000/XP, and
95
95
    # will fail there if the user has no admin rights.
96
 
    if get_root_hkey()==_winreg.HKEY_LOCAL_MACHINE:
 
96
    if get_root_hkey() == _winreg.HKEY_LOCAL_MACHINE:
97
97
        try:
98
98
            fldr = get_special_folder_path("CSIDL_COMMON_PROGRAMS")
99
99
        except OSError: