From: Armin Ronacher Date: Fri, 10 Jan 2014 10:42:24 +0000 (+0000) Subject: Fixed a syntax error on Python 3 X-Git-Tag: 2.7.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f25707c4205e8f49cfd528eaaa180ef20fc439e2;p=thirdparty%2Fjinja.git Fixed a syntax error on Python 3 --- diff --git a/jinja2/bccache.py b/jinja2/bccache.py index 433a4800..09ff8450 100644 --- a/jinja2/bccache.py +++ b/jinja2/bccache.py @@ -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