[1.7.x] Fixed flake8 errors.

Backport of 4b25ebf112 from master
This commit is contained in:
Tim Graham 2014-06-09 12:00:12 -04:00
parent a11ed8dcfd
commit 0a515b02fc
2 changed files with 1 additions and 1 deletions

View File

@ -412,6 +412,7 @@ class BaseDatabaseCreation(object):
app_config.name not in settings.TEST_NON_SERIALIZED_APPS
):
app_list.append((app_config, None))
# Make a function to iteratively return every object
def get_objects():
for model in sort_dependencies(app_list):

View File

@ -842,7 +842,6 @@ class TransactionTestCase(SimpleTestCase):
allow_cascade=self.available_apps is not None,
inhibit_post_migrate=self.available_apps is not None)
def assertQuerysetEqual(self, qs, values, transform=repr, ordered=True, msg=None):
items = six.moves.map(transform, qs)
if not ordered: