From fd809921131cd1ebe1066fed40c84a88651aea71 Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Thu, 9 Dec 2010 22:53:53 +0100 Subject: [PATCH] Remove Python 3 metaclass support from Python 2 code (c'est ridicule!) --- Cython/Debugger/libpython.py | 4 ---- 1 file changed, 4 deletions(-) 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' -- 2.26.2