]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fixed a syntax error on Python 3
authorArmin Ronacher <armin.ronacher@active-4.com>
Fri, 10 Jan 2014 10:42:24 +0000 (10:42 +0000)
committerArmin Ronacher <armin.ronacher@active-4.com>
Fri, 10 Jan 2014 10:42:24 +0000 (10:42 +0000)
jinja2/bccache.py

index 433a4800eea72842e071bb37067d5c789bf3850c..09ff845028f1bf70ec1e1c457116afe134f64742 100644 (file)
@@ -224,7 +224,8 @@ class FileSystemBytecodeCache(BytecodeCache):
         dirname = '_jinja2-cache-%d' % os.getuid()
         actual_dir = os.path.join(tmpdir, dirname)
         try:
-            os.mkdir(actual_dir, 0700)
+            # 448 == 0700
+            os.mkdir(actual_dir, 448)
         except OSError as e:
             if e.errno != errno.EEXIST:
                 raise