Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.7.x] Fixed flake8 errors.

Backport of fddd952 from master
  • Loading branch information...
commit 0100afb01399e4605a68daec0e7b447e163e0b1d 1 parent 28962c5
@timgraham timgraham authored
View
1  django/utils/autoreload.py
@@ -80,6 +80,7 @@
_cached_modules = set()
_cached_filenames = []
+
def gen_filenames(only_new=False):
"""
Returns a list of filenames referenced in sys.modules and translation
View
4 tests/utils_tests/test_autoreload.py
@@ -76,8 +76,8 @@ def test_only_new_files(self):
When calling a second time gen_filenames with only_new = True, only
files from newly loaded modules should be given.
"""
- filenames1 = list(gen_filenames())
- from fractions import Fraction
+ list(gen_filenames())
+ from fractions import Fraction # NOQA
filenames2 = list(gen_filenames(only_new=True))
self.assertEqual(len(filenames2), 1)
self.assertTrue(filenames2[0].endswith('fractions.py'))
Please sign in to comment.
Something went wrong with that request. Please try again.