Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix regression in the pure Python NameMapper

Introduced the regression in `a0c6979` when cleaning up
imports.
  • Loading branch information...
commit 62f5a2fe995695c1a88cef5e059192b20143afe0 1 parent 6a42520
R. Tyler Croy authored January 31, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  cheetah/NameMapper.py
2  cheetah/NameMapper.py
@@ -179,7 +179,7 @@ def _wrapNotFoundException(exc, fullName, namespace):
179 179
         raise
180 180
 
181 181
 def _isInstanceOrClass(obj):
182  
-    if type(obj) in (InstanceType, ClassType):
  182
+    if isinstance(obj, type):
183 183
         # oldstyle
184 184
         return True
185 185
 

0 notes on commit 62f5a2f

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