Skip to content
Browse files

sys.version_info isn't a tuple in 2.7. Fix version check in Template.py

  • Loading branch information...
1 parent f8e2a8e commit 6ac031ab0f10be385c813b6fbe4651ead100129b @js-cfl js-cfl committed with rtyler Oct 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cheetah/Template.py
View
2 cheetah/Template.py
@@ -32,7 +32,7 @@ def release(self):
filetype = None
-if isinstance(sys.version_info, tuple):
+if isinstance(sys.version_info[:], tuple):
# Python 2.xx
filetype = types.FileType
def createMethod(func, cls):

0 comments on commit 6ac031a

Please sign in to comment.
Something went wrong with that request. Please try again.