Commit fd809921 authored by Mark Florisson's avatar Mark Florisson

Remove Python 3 metaclass support from Python 2 code (c'est ridicule!)

parent 90603b71
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment