From: Wing Date: Fri, 16 May 2014 19:27:05 +0000 (+0800) Subject: fix os.name of Windows X-Git-Tag: 2.8~91^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d83a4102774266e8b6ba3cf75ca4cb5c60c78b;p=thirdparty%2Fjinja.git fix os.name of Windows os.name of Windows is 'nt', https://docs.python.org/3.4/library/os.html#os.name --- diff --git a/jinja2/bccache.py b/jinja2/bccache.py index 09ff8450..fff65dae 100644 --- a/jinja2/bccache.py +++ b/jinja2/bccache.py @@ -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 '