diff piecrust/cache.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 efd0d3bacc9e
line wrap: on
line diff
--- a/piecrust/cache.py	Mon Aug 11 22:36:36 2014 -0700
+++ b/piecrust/cache.py	Mon Aug 11 22:36:47 2014 -0700
@@ -26,7 +26,7 @@
                 if c is None:
                     c_dir = os.path.join(self.base_dir, name)
                     if not os.path.isdir(c_dir):
-                        os.makedirs(c_dir, 0755)
+                        os.makedirs(c_dir, 0o755)
 
                     c = SimpleCache(c_dir)
                     self.caches[name] = c
@@ -71,7 +71,7 @@
         cache_path = self.getCachePath(path)
         cache_dir = os.path.dirname(cache_path)
         if not os.path.isdir(cache_dir):
-            os.makedirs(cache_dir, 0755)
+            os.makedirs(cache_dir, 0o755)
         with codecs.open(cache_path, 'w', 'utf-8') as fp:
             fp.write(content)