diff options
author | Jon Siddle <js@corefiling.co.uk> | 2010-10-12 13:37:06 +0100 |
---|---|---|
committer | R. Tyler Croy <tyler@monkeypox.org> | 2010-12-12 19:38:34 -0800 |
commit | 6ac031ab0f10be385c813b6fbe4651ead100129b (patch) | |
tree | 4c5c446fc01ecd9b9327082e1156a1ed8c02ad95 | |
parent | f8e2a8ea51a280cdd1f6309ce95662c956f2d8d0 (diff) | |
download | python-cheetah-6ac031ab0f10be385c813b6fbe4651ead100129b.tar.gz |
sys.version_info isn't a tuple in 2.7. Fix version check in Template.py
-rw-r--r-- | cheetah/Template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cheetah/Template.py b/cheetah/Template.py index 3eec6c1..7a9d0a7 100644 --- a/cheetah/Template.py +++ b/cheetah/Template.py @@ -32,7 +32,7 @@ except ImportError: filetype = None -if isinstance(sys.version_info, tuple): +if isinstance(sys.version_info[:], tuple): # Python 2.xx filetype = types.FileType def createMethod(func, cls): |