Permalink
Browse files

Merge pull request #4 from dareonion/master

Fixing validation
  • Loading branch information...
2 parents ca28a26 + adb36e9 commit c94b39bf013e1f6c48d3673bda93f5433a8a5493 @rtyler rtyler committed Dec 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cheetah/Template.py
View
@@ -1171,7 +1171,7 @@ def __init__(self, source=None,
if not isinstance(source, (types.NoneType, basestring)):
raise TypeError(errmsg % ('source', 'string or None'))
- if not isinstance(source, (types.NoneType, basestring, filetype)):
+ if not isinstance(file, (types.NoneType, basestring, filetype)):
raise TypeError(errmsg %
('file', 'string, file open for reading, or None'))

0 comments on commit c94b39b

Please sign in to comment.