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

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 17:00:29 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205170029-s01xdro0hkixhq3r
Convert some octal numbers to new notations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
    ##
51
51
    # XXX change message for something more appropriate
52
 
    print """Bazaar %s
 
52
    print("""Bazaar %s
53
53
 
54
54
Congratulation! Bzr successfully installed.
55
55
 
56
 
""" % ver
 
56
""" % ver)
57
57
 
58
58
    batch_path = "bzr.bat"
59
59
    prefix = sys.exec_prefix
85
85
                                        # auto-deinstallation procedure
86
86
        ##
87
87
        # inform user where batch launcher is.
88
 
        print "Created:", batch_path
89
 
        print "Use this batch file to run bzr"
90
 
    except Exception, e:
91
 
        print "ERROR: Unable to create %s: %s" % (batch_path, e)
 
88
        print("Created:", batch_path)
 
89
        print("Use this batch file to run bzr")
 
90
    except Exception as e:
 
91
        print("ERROR: Unable to create %s: %s" % (batch_path, e))
92
92
 
93
93
    ## this hunk borrowed from pywin32_postinstall.py
94
94
    # use bdist_wininst builtins to create a shortcut.
115
115
    dst = os.path.join(fldr, 'Documentation.lnk')
116
116
    create_shortcut(docs, 'Bazaar Documentation', dst)
117
117
    file_created(dst)
118
 
    print 'Documentation for Bazaar: Start => Programs => Bazaar'
 
118
    print('Documentation for Bazaar: Start => Programs => Bazaar')
119
119
 
120
120
    # bzr in cmd shell
121
121
    if os.name == 'nt':