diff options
author | R. Tyler Ballance <tyler@monkeypox.org> | 2010-01-31 18:22:42 -0800 |
---|---|---|
committer | R. Tyler Ballance <tyler@monkeypox.org> | 2010-01-31 18:22:42 -0800 |
commit | 62f5a2fe995695c1a88cef5e059192b20143afe0 (patch) | |
tree | 723204b9decef3ef696b9fabdbc04feac3fe34a3 /cheetah | |
parent | 6a42520b8f6bc32c0d53e1e4771b010ca1177cf8 (diff) | |
download | python-cheetah-62f5a2fe995695c1a88cef5e059192b20143afe0.tar.gz |
Fix regression in the pure Python NameMapper
Introduced the regression in `a0c6979` when cleaning up
imports.
Diffstat (limited to 'cheetah')
-rw-r--r-- | cheetah/NameMapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cheetah/NameMapper.py b/cheetah/NameMapper.py index 8afe1e8..e4c773e 100644 --- a/cheetah/NameMapper.py +++ b/cheetah/NameMapper.py @@ -179,7 +179,7 @@ def _wrapNotFoundException(exc, fullName, namespace): raise def _isInstanceOrClass(obj): - if type(obj) in (InstanceType, ClassType): + if isinstance(obj, type): # oldstyle return True |