[pypy-svn] r59437 - pypy/trunk/pypy/rpython

afa at codespeak.net afa at codespeak.net
Mon Oct 27 10:58:51 CET 2008


Author: afa
Date: Mon Oct 27 10:58:49 2008
New Revision: 59437

Modified:
   pypy/trunk/pypy/rpython/extregistry.py
Log:
Correctly call the super __init__() method.
python2.6 does more checks in type.__init__.


Modified: pypy/trunk/pypy/rpython/extregistry.py
==============================================================================
--- pypy/trunk/pypy/rpython/extregistry.py	(original)
+++ pypy/trunk/pypy/rpython/extregistry.py	Mon Oct 27 10:58:49 2008
@@ -6,8 +6,7 @@
 class AutoRegisteringType(type):
 
     def __init__(selfcls, name, bases, dict):
-        super(AutoRegisteringType, selfcls).__init__(selfcls,
-                                                     name, bases, dict)
+        super(AutoRegisteringType, selfcls).__init__(name, bases, dict)
         if '_about_' in dict:
             selfcls._register_value(dict['_about_'])
             del selfcls._about_   # avoid keeping a ref



More information about the Pypy-commit mailing list