[pypy-svn] r72010 - pypy/branch/faster-compilation/pypy/tool

fijal at codespeak.net fijal at codespeak.net
Wed Mar 10 01:32:34 CET 2010


Author: fijal
Date: Wed Mar 10 01:32:32 2010
New Revision: 72010

Modified:
   pypy/branch/faster-compilation/pypy/tool/pairtype.py
Log:
Don't copy __doc__ and __metaclass__


Modified: pypy/branch/faster-compilation/pypy/tool/pairtype.py
==============================================================================
--- pypy/branch/faster-compilation/pypy/tool/pairtype.py	(original)
+++ pypy/branch/faster-compilation/pypy/tool/pairtype.py	Wed Mar 10 01:32:32 2010
@@ -34,7 +34,7 @@
         if name == '__extend__':
             for cls in bases:
                 for key, value in dict.items():
-                    if key == '__module__':
+                    if key in ['__module__', '__doc__', '__metaclass__']:
                         continue
                     # XXX do we need to provide something more for pickling?
                     setattr(cls, key, value)



More information about the Pypy-commit mailing list