Removed transitive import of types.MethodType from six.

This commit is contained in:
Curtis Maloney 2016-09-06 20:24:12 +10:00 committed by Tim Graham
parent 9a2a52558e
commit 4c94336510
1 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from itertools import chain from itertools import chain
from types import MethodType
from django.apps import apps from django.apps import apps
from django.conf import settings from django.conf import settings
from django.core import checks from django.core import checks
from django.utils import six
from .management import _get_builtin_permissions 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( errors.append(
checks.Critical( checks.Critical(
'%s.is_anonymous must be an attribute or property rather than ' '%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', id='auth.C009',
) )
) )
if isinstance(cls().is_authenticated, six.types.MethodType): if isinstance(cls().is_authenticated, MethodType):
errors.append( errors.append(
checks.Critical( checks.Critical(
'%s.is_authenticated must be an attribute or property rather ' '%s.is_authenticated must be an attribute or property rather '