summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-11 07:25:14 -0400
committerTim Graham <timograham@gmail.com>2013-10-11 07:25:14 -0400
commitb67ab75e82ec59dd4eeca119eeaf570d7c88556c (patch)
tree45bb072d08b4d7de7e6b76bf01fcd9bddcb43acd /django/core
parent695bc0d191c126a948a7cf3acc3e37d9377ebd20 (diff)
Fixed assorted flake8 errors.
Diffstat (limited to 'django/core')
-rw-r--r--django/core/files/uploadhandler.py2
-rw-r--r--django/core/signing.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py
index 914e2c51fa..185aca72cc 100644
--- a/django/core/files/uploadhandler.py
+++ b/django/core/files/uploadhandler.py
@@ -199,6 +199,8 @@ def load_handler(path, *args, **kwargs):
Given a path to a handler, return an instance of that handler.
E.g.::
+ >>> from django.http import HttpRequest
+ >>> request = HttpRequest()
>>> load_handler('django.core.files.uploadhandler.TemporaryFileUploadHandler', request)
<TemporaryFileUploadHandler object at 0x...>
diff --git a/django/core/signing.py b/django/core/signing.py
index c3b2c3ed36..15b9eaec6e 100644
--- a/django/core/signing.py
+++ b/django/core/signing.py
@@ -187,7 +187,7 @@ class TimestampSigner(Signer):
Retrieve original value and check it wasn't signed more
than max_age seconds ago.
"""
- result = super(TimestampSigner, self).unsign(value)
+ result = super(TimestampSigner, self).unsign(value)
value, timestamp = result.rsplit(self.sep, 1)
timestamp = baseconv.base62.decode(timestamp)
if max_age is not None: