Mercurial > piecrust2
diff piecrust/records.py @ 5:474c9882decf
Upgrade to Python 3.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 11 Aug 2014 22:36:47 -0700 |
parents | f485ba500df3 |
children | 343d08ef5668 |
line wrap: on
line diff
--- a/piecrust/records.py Mon Aug 11 22:36:36 2014 -0700 +++ b/piecrust/records.py Mon Aug 11 22:36:47 2014 -0700 @@ -5,7 +5,7 @@ from piecrust.events import Event try: - import cPickle as pickle + import pickle as pickle except ImportError: import pickle @@ -33,7 +33,7 @@ def save(self, path): path_dir = os.path.dirname(path) if not os.path.isdir(path_dir): - os.makedirs(path_dir, 0755) + os.makedirs(path_dir, 0o755) with open(path, 'w') as fp: pickle.dump(self, fp, pickle.HIGHEST_PROTOCOL)