/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/crash.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:
241
241
        # on unix this should be /var/crash and should already exist; on
242
242
        # Windows or if it's manually configured it might need to be created,
243
243
        # and then it should be private
244
 
        os.makedirs(crash_dir, mode=0600)
 
244
        os.makedirs(crash_dir, mode=0o600)
245
245
    date_string = time.strftime('%Y-%m-%dT%H:%M', time.gmtime())
246
246
    # XXX: getuid doesn't work on win32, but the crash directory is per-user
247
247
    if sys.platform == 'win32':
258
258
    return filename, os.fdopen(
259
259
        os.open(filename, 
260
260
            os.O_WRONLY|os.O_CREAT|os.O_EXCL,
261
 
            0600),
 
261
            0o600),
262
262
        'wb')
263
263
 
264
264