Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused imports + other flake8 fixes.

  • Loading branch information...
commit 4f8e8a6ec2e449e7a6c2e89f011c744ec6874c82 1 parent a7e2957
@timgraham timgraham authored
View
2  django/db/migrations/operations/special.py
@@ -1,7 +1,5 @@
import re
-import textwrap
from .base import Operation
-from django.utils import six
class SeparateDatabaseAndState(Operation):
View
3  tests/decorators/tests.py
@@ -174,6 +174,7 @@ def wrapper(*args, **kwargs):
myattr2_dec_m = method_decorator(myattr2_dec)
+
class ClsDec(object):
def __init__(self, myattr):
self.myattr = myattr
@@ -233,7 +234,7 @@ def method(self):
# t = Test()
self.assertEqual(Test().method(), False)
-
+
class XFrameOptionsDecoratorsTests(TestCase):
"""
View
2  tests/migrations/test_checks.py
@@ -1,7 +1,7 @@
# encoding: utf8
from django.core import checks
from django.core.checks.migrations import check_migrations
-from django.test import TestCase, override_settings
+from django.test import override_settings
from .test_base import MigrationTestBase
View
1  tests/migrations/test_operations.py
@@ -478,6 +478,7 @@ def test_run_python(self):
"""
project_state = self.set_up_test_model("test_runpython")
+
# Create the operation
def inner_method(models, schema_editor):
Pony = models.get_model("test_runpython", "Pony")
Please sign in to comment.
Something went wrong with that request. Please try again.