Mercurial > p > roundup > code
comparison roundup/dist/command/build_scripts.py @ 5380:64c4e43fbb84
Python 3 preparation: numeric literal syntax.
Fixes octal constants to use leading 0o, and removes 'L' suffixes.
Tool-assisted patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 21:43:32 +0000 |
| parents | 5e2888db6c48 |
| children | 0942fe89e82e |
comparison
equal
deleted
inserted
replaced
| 5379:17edccfe1755 | 5380:64c4e43fbb84 |
|---|---|
| 138 'from %(package)s.scripts.%(module)s import run\n' | 138 'from %(package)s.scripts.%(module)s import run\n' |
| 139 'run()\n' | 139 'run()\n' |
| 140 % script_vars) | 140 % script_vars) |
| 141 finally: | 141 finally: |
| 142 file.close() | 142 file.close() |
| 143 os.chmod(outfile, 0755) | 143 os.chmod(outfile, 0o755) |
