From ec7b0f2a86848891b340ade9a6eedac047ad0996 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Tue, 16 Oct 2018 14:49:56 -0700 Subject: [PATCH] Remove unused newobject imports These are remnants of the earlier metaclass-based implementation. --- src/future/types/newobject.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/future/types/newobject.py b/src/future/types/newobject.py index 35ec05ec..776d4766 100644 --- a/src/future/types/newobject.py +++ b/src/future/types/newobject.py @@ -37,24 +37,6 @@ def __iter__(self): """ -import sys - -from future.utils import with_metaclass - - -_builtin_object = object -ver = sys.version_info[:2] - - -# We no longer define a metaclass for newobject because this breaks multiple -# inheritance and custom metaclass use with this exception: - -# TypeError: Error when calling the metaclass bases -# metaclass conflict: the metaclass of a derived class must be a -# (non-strict) subclass of the metaclasses of all its bases - -# See issues #91 and #96. - class newobject(object): """