Mercurial > p > roundup > code
diff roundup/backends/indexer_dbm.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 | 198b6e810c67 |
| children | 23b8e6067f7c |
line wrap: on
line diff
--- a/roundup/backends/indexer_dbm.py Tue Jul 24 21:42:22 2018 +0000 +++ b/roundup/backends/indexer_dbm.py Tue Jul 24 21:43:32 2018 +0000 @@ -62,7 +62,7 @@ if os.path.exists(self.indexdb_path): shutil.rmtree(self.indexdb_path) os.makedirs(self.indexdb_path) - os.chmod(self.indexdb_path, 0775) + os.chmod(self.indexdb_path, 0o775) open(os.path.join(self.indexdb_path, 'version'), 'w').write('1\n') self.reindex = 1 self.changed = 1 @@ -251,7 +251,7 @@ filename = self.indexdb + initchar pickle_fh = open(filename, 'wb') pickle_fh.write(zlib.compress(pickle_str)) - os.chmod(filename, 0664) + os.chmod(filename, 0o664) # save done self.changed = 0
