From: Mark Florisson Date: Thu, 9 Dec 2010 21:53:53 +0000 (+0100) Subject: Remove Python 3 metaclass support from Python 2 code (c'est ridicule!) X-Git-Tag: 0.14.rc0~15^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd809921131cd1ebe1066fed40c84a88651aea71;p=cython.git Remove Python 3 metaclass support from Python 2 code (c'est ridicule!) --- diff --git a/Cython/Debugger/libpython.py b/Cython/Debugger/libpython.py index f3aae848..b289d04b 100644 --- a/Cython/Debugger/libpython.py +++ b/Cython/Debugger/libpython.py @@ -421,10 +421,6 @@ class PyObjectPtr(object): def as_address(self): return long(self._gdbval) -if not isinstance(PyObjectPtr, PrettyPrinterTrackerMeta): - # Python 3, ensure metaclass - PyObjectPtr = PrettyPrinterTrackerMeta( - PyObjectPtr.__name__, PyObjectPtr.__bases__, vars(PyObjectPtr)) class PyVarObjectPtr(PyObjectPtr): _typename = 'PyVarObject'