Removed unused imports + other flake8 fixes.

This commit is contained in:
Tim Graham 2014-02-09 06:13:10 -05:00
parent a7e2957110
commit 4f8e8a6ec2
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,5 @@
import re import re
import textwrap
from .base import Operation from .base import Operation
from django.utils import six
class SeparateDatabaseAndState(Operation): class SeparateDatabaseAndState(Operation):

View File

@ -174,6 +174,7 @@ def myattr2_dec(func):
myattr2_dec_m = method_decorator(myattr2_dec) myattr2_dec_m = method_decorator(myattr2_dec)
class ClsDec(object): class ClsDec(object):
def __init__(self, myattr): def __init__(self, myattr):
self.myattr = myattr self.myattr = myattr

View File

@ -1,7 +1,7 @@
# encoding: utf8 # encoding: utf8
from django.core import checks from django.core import checks
from django.core.checks.migrations import check_migrations 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 from .test_base import MigrationTestBase

View File

@ -478,6 +478,7 @@ class OperationTests(MigrationTestBase):
""" """
project_state = self.set_up_test_model("test_runpython") project_state = self.set_up_test_model("test_runpython")
# Create the operation # Create the operation
def inner_method(models, schema_editor): def inner_method(models, schema_editor):
Pony = models.get_model("test_runpython", "Pony") Pony = models.get_model("test_runpython", "Pony")