summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-11-07 20:10:25 -0500
committerTim Graham <timograham@gmail.com>2013-11-07 20:10:25 -0500
commit536c44782007bf35dd17c1fd2c8551cb4ddd967b (patch)
treea1b6f13f16bf35d63c097d559ec8473ded93bced
parent7a7c789d5a7ce1c62e3739cb2624454189410ece (diff)
Fixed a couple flake8 warnings.
-rw-r--r--django/core/cache/backends/filebased.py1
-rw-r--r--tests/cache/tests.py1
-rw-r--r--tests/prefetch_related/tests.py1
3 files changed, 1 insertions, 2 deletions
diff --git a/django/core/cache/backends/filebased.py b/django/core/cache/backends/filebased.py
index 57b0f6fba8..26522af284 100644
--- a/django/core/cache/backends/filebased.py
+++ b/django/core/cache/backends/filebased.py
@@ -152,7 +152,6 @@ class FileBasedCache(BaseCache):
return filelist
-
# For backwards compatibility
class CacheClass(FileBasedCache):
pass
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index e4ef951295..ea11f979c4 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -4,7 +4,6 @@
# Uses whatever cache backend is set in the test settings file.
from __future__ import unicode_literals
-import hashlib
import os
import pickle
import random
diff --git a/tests/prefetch_related/tests.py b/tests/prefetch_related/tests.py
index 76704743e2..599eb14f96 100644
--- a/tests/prefetch_related/tests.py
+++ b/tests/prefetch_related/tests.py
@@ -492,6 +492,7 @@ class CustomPrefetchTests(TestCase):
self.assertEqual(lst2[0].houses_lst[0].rooms_lst[1], self.room1_2)
self.assertEqual(len(lst2[1].houses_lst), 0)
+
class DefaultManagerTests(TestCase):
def setUp(self):