diff piecrust/commands/builtin/util.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 617191dec18e
line wrap: on
line diff
--- a/piecrust/commands/builtin/util.py	Mon Aug 11 22:36:36 2014 -0700
+++ b/piecrust/commands/builtin/util.py	Mon Aug 11 22:36:47 2014 -0700
@@ -29,11 +29,11 @@
             destination = os.getcwd()
 
         if not os.path.isdir(destination):
-            os.makedirs(destination, 0755)
+            os.makedirs(destination, 0o755)
 
         config_path = os.path.join(destination, CONFIG_PATH)
         if not os.path.isdir(os.path.dirname(config_path)):
-            os.makedirs(os.path.dirname(config_path), 0755)
+            os.makedirs(os.path.dirname(config_path), 0o755)
 
         config_text = yaml.dump({
                 'site': {
@@ -96,7 +96,7 @@
 
         logger.info("Creating page: %s" % os.path.relpath(page_path, app.root_dir))
         if not os.path.exists(os.path.dirname(page_path)):
-            os.makedirs(os.path.dirname(page_path), 0755)
+            os.makedirs(os.path.dirname(page_path), 0o755)
         with open(page_path, 'w') as f:
             f.write('---\n')
             f.write('title: %s\n' % 'Unknown title')