1 parent edb064d commit 9ea7e4cCopy full SHA for 9ea7e4c
1 file changed
github2/core.py
@@ -263,9 +263,9 @@ def iterate(self):
263
return result_cls
264
265
266
-class BaseData(object):
267
- __metaclass__ = BaseDataType
268
-
+# Ugly base class definition for Python 2 and 3 compatibility, where metaclass
+# syntax is incompatible
+class BaseData(BaseDataType('BaseData', (object, ), {})):
269
def __getitem__(self, key):
270
"""Access objects's attribute using subscript notation
271
0 commit comments