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

fijal at codespeak.net fijal at codespeak.net
Tue Nov 9 13:12:34 CET 2010


Author: fijal
Date: Tue Nov  9 13:12:33 2010
New Revision: 78915

Modified:
   pypy/trunk/pypy/rpython/rmodel.py
Log:
Make setupstate a newstyle class and make Repr a more-obvious newstyle class


Modified: pypy/trunk/pypy/rpython/rmodel.py
==============================================================================
--- pypy/trunk/pypy/rpython/rmodel.py	(original)
+++ pypy/trunk/pypy/rpython/rmodel.py	Tue Nov  9 13:12:33 2010
@@ -11,14 +11,14 @@
 
 # initialization states for Repr instances 
 
-class setupstate: 
+class setupstate(object): 
     NOTINITIALIZED = 0 
     INPROGRESS = 1
     BROKEN = 2 
     FINISHED = 3
     DELAYED = 4
 
-class Repr:
+class Repr(object):
     """ An instance of Repr is associated with each instance of SomeXxx.
     It defines the chosen representation for the SomeXxx.  The Repr subclasses
     generally follows the SomeXxx subclass hierarchy, but there are numerous



More information about the Pypy-commit mailing list