[pypy-svn] r23721 - pypy/dist/pypy/rpython

micktwomey at codespeak.net micktwomey at codespeak.net
Tue Feb 28 02:00:33 CET 2006


Author: micktwomey
Date: Tue Feb 28 02:00:31 2006
New Revision: 23721

Modified:
   pypy/dist/pypy/rpython/extregistry.py
Log:
Handle the case where old style classes make it this far.


Modified: pypy/dist/pypy/rpython/extregistry.py
==============================================================================
--- pypy/dist/pypy/rpython/extregistry.py	(original)
+++ pypy/dist/pypy/rpython/extregistry.py	Tue Feb 28 02:00:31 2006
@@ -55,7 +55,7 @@
 def lookup_type(tp):
     try:
         return EXT_REGISTRY_BY_TYPE[tp]
-    except KeyError:
+    except (KeyError, TypeError):
         return EXT_REGISTRY_BY_METATYPE[type(tp)]
 
 def is_registered_type(tp):



More information about the Pypy-commit mailing list