diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-11 07:25:14 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-11 07:25:14 -0400 |
| commit | b67ab75e82ec59dd4eeca119eeaf570d7c88556c (patch) | |
| tree | 45bb072d08b4d7de7e6b76bf01fcd9bddcb43acd /django/core | |
| parent | 695bc0d191c126a948a7cf3acc3e37d9377ebd20 (diff) | |
Fixed assorted flake8 errors.
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/files/uploadhandler.py | 2 | ||||
| -rw-r--r-- | django/core/signing.py | 2 |
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: |
