/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/lockable_files.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:
119
119
        try:
120
120
            st = self._transport.stat('.')
121
121
        except errors.TransportNotPossible:
122
 
            self._dir_mode = 0755
123
 
            self._file_mode = 0644
 
122
            self._dir_mode = 0o755
 
123
            self._file_mode = 0o644
124
124
        else:
125
125
            # Check the directory mode, but also make sure the created
126
126
            # directories and files are read-write for this user. This is
127
127
            # mostly a workaround for filesystems which lie about being able to
128
128
            # write to a directory (cygwin & win32)
129
 
            self._dir_mode = (st.st_mode & 07777) | 00700
 
129
            self._dir_mode = (st.st_mode & 0o7777) | 0o0700
130
130
            # Remove the sticky and execute bits for files
131
 
            self._file_mode = self._dir_mode & ~07111
 
131
            self._file_mode = self._dir_mode & ~0o7111
132
132
 
133
133
    def leave_in_place(self):
134
134
        """Set this LockableFiles to not clear the physical lock on unlock."""