]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
fix os.name of Windows 331/head
authorWing <SteelyWing@users.noreply.github.com>
Fri, 16 May 2014 19:27:05 +0000 (03:27 +0800)
committerWing <SteelyWing@users.noreply.github.com>
Fri, 16 May 2014 19:27:05 +0000 (03:27 +0800)
os.name of Windows is 'nt', https://docs.python.org/3.4/library/os.html#os.name

jinja2/bccache.py

index 09ff845028f1bf70ec1e1c457116afe134f64742..fff65dae818b27adba692135e97d82313d328ea8 100644 (file)
@@ -215,7 +215,7 @@ class FileSystemBytecodeCache(BytecodeCache):
 
         # On windows the temporary directory is used specific unless
         # explicitly forced otherwise.  We can just use that.
-        if os.name == 'n':
+        if os.name == 'nt':
             return tmpdir
         if not hasattr(os, 'getuid'):
             raise RuntimeError('Cannot determine safe temp directory.  You '