comparison mercurial/scmutil.py @ 25658:e93036747902

global: mass rewrite to use modern octal syntax Python 2.6 introduced a new octal syntax: "0oXXX", replacing "0XXX". The old syntax is not recognized in Python 3 and will result in a parse error. Mass rewrite all instances of the old octal syntax to the new syntax. This patch was generated by `2to3 -f numliterals -w -n .` and the diff was selectively recorded to exclude changes to "<N>l" syntax conversion, which will be handled separately.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 23 Jun 2015 22:30:33 -0700
parents 52e5f68d8363
children 328739ea70c3
comparison
equal deleted inserted replaced
25657:dcc56e10c23b 25658:e93036747902
448 return util.checkexec(self.base) 448 return util.checkexec(self.base)
449 449
450 def _fixfilemode(self, name): 450 def _fixfilemode(self, name):
451 if self.createmode is None or not self._chmod: 451 if self.createmode is None or not self._chmod:
452 return 452 return
453 os.chmod(name, self.createmode & 0666) 453 os.chmod(name, self.createmode & 0o666)
454 454
455 def __call__(self, path, mode="r", text=False, atomictemp=False, 455 def __call__(self, path, mode="r", text=False, atomictemp=False,
456 notindexed=False): 456 notindexed=False):
457 '''Open ``path`` file, which is relative to vfs root. 457 '''Open ``path`` file, which is relative to vfs root.
458 458