From 4c943365107e40571748196d9d1c11d3f0e3e2af Mon Sep 17 00:00:00 2001 From: Curtis Maloney Date: Tue, 6 Sep 2016 20:24:12 +1000 Subject: [PATCH] Removed transitive import of types.MethodType from six. --- django/contrib/auth/checks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/contrib/auth/checks.py b/django/contrib/auth/checks.py index 27a28b5172..05487fe536 100644 --- a/django/contrib/auth/checks.py +++ b/django/contrib/auth/checks.py @@ -2,11 +2,11 @@ from __future__ import unicode_literals from itertools import chain +from types import MethodType from django.apps import apps from django.conf import settings from django.core import checks -from django.utils import six from .management import _get_builtin_permissions @@ -74,7 +74,7 @@ def check_user_model(app_configs=None, **kwargs): ) ) - if isinstance(cls().is_anonymous, six.types.MethodType): + if isinstance(cls().is_anonymous, MethodType): errors.append( checks.Critical( '%s.is_anonymous must be an attribute or property rather than ' @@ -84,7 +84,7 @@ def check_user_model(app_configs=None, **kwargs): id='auth.C009', ) ) - if isinstance(cls().is_authenticated, six.types.MethodType): + if isinstance(cls().is_authenticated, MethodType): errors.append( checks.Critical( '%s.is_authenticated must be an attribute or property rather '