diff --git a/django/db/migrations/operations/special.py b/django/db/migrations/operations/special.py index df3730b961..886c012273 100644 --- a/django/db/migrations/operations/special.py +++ b/django/db/migrations/operations/special.py @@ -1,7 +1,6 @@ import re + from .base import Operation -from django.db import models, router -from django.db.migrations.state import ModelState class SeparateDatabaseAndState(Operation): diff --git a/django/test/_doctest.py b/django/test/_doctest.py index 6e8662afe5..3f6962dc17 100644 --- a/django/test/_doctest.py +++ b/django/test/_doctest.py @@ -112,7 +112,7 @@ import unittest, difflib, pdb, tempfile import warnings from django.utils import six -from django.utils.six.moves import StringIO, xrange +from django.utils.six.moves import StringIO if sys.platform.startswith('java'): # On Jython, isclass() reports some modules as classes. Patch it.