Skip to content
Browse files

Fix regression in the pure Python NameMapper

Introduced the regression in `a0c6979` when cleaning up
imports.
  • Loading branch information...
1 parent 6a42520 commit 62f5a2fe995695c1a88cef5e059192b20143afe0 @rtyler committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 cheetah/NameMapper.py
View
2 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

0 comments on commit 62f5a2f

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