/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 bzrlib/osutils.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:
105
105
    """Make a filename read-only."""
106
106
    mod = os.lstat(filename).st_mode
107
107
    if not stat.S_ISLNK(mod):
108
 
        mod = mod & 0777555
 
108
        mod = mod & 0o777555
109
109
        chmod_if_possible(filename, mod)
110
110
 
111
111
 
112
112
def make_writable(filename):
113
113
    mod = os.lstat(filename).st_mode
114
114
    if not stat.S_ISLNK(mod):
115
 
        mod = mod | 0200
 
115
        mod = mod | 0o200
116
116
        chmod_if_possible(filename, mod)
117
117
 
118
118