From 25d83a4102774266e8b6ba3cf75ca4cb5c60c78b Mon Sep 17 00:00:00 2001 From: Wing Date: Sat, 17 May 2014 03:27:05 +0800 Subject: [PATCH] fix os.name of Windows os.name of Windows is 'nt', https://docs.python.org/3.4/library/os.html#os.name --- jinja2/bccache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ' -- 2.47.2