cubicweb/_gcdebug.py
changeset 12567 26744ad37953
parent 12232 24393ce335f5
--- a/cubicweb/_gcdebug.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/_gcdebug.py	Fri Apr 05 17:58:19 2019 +0200
@@ -15,12 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
-
 import gc, types, weakref
 
-from six import PY2
-
 from cubicweb.schema import CubicWebRelationSchema, CubicWebEntitySchema
 try:
     from cubicweb.web.request import _NeedAuthAccessMock
@@ -37,9 +33,6 @@
     types.ModuleType, types.FunctionType, types.MethodType,
     types.MemberDescriptorType, types.GetSetDescriptorType,
     )
-if PY2:
-    # weakref.WeakKeyDictionary fails isinstance check on Python 3.5.
-    IGNORE_CLASSES += (weakref.WeakKeyDictionary, )
 
 if _NeedAuthAccessMock is not None:
     IGNORE_CLASSES = IGNORE_CLASSES + (_NeedAuthAccessMock,)