mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
0fdb692c6c
commit
7a61c68c50
128 changed files with 739 additions and 206 deletions
|
|
@ -11,7 +11,7 @@ class QuotaUploadHandler(FileUploadHandler):
|
|||
(5MB) is uploaded.
|
||||
"""
|
||||
|
||||
QUOTA = 5 * 2**20 # 5 MB
|
||||
QUOTA = 5 * 2 ** 20 # 5 MB
|
||||
|
||||
def __init__(self, request=None):
|
||||
super(QuotaUploadHandler, self).__init__(request)
|
||||
|
|
@ -26,9 +26,11 @@ class QuotaUploadHandler(FileUploadHandler):
|
|||
def file_complete(self, file_size):
|
||||
return None
|
||||
|
||||
|
||||
class CustomUploadError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ErroringUploadHandler(FileUploadHandler):
|
||||
"""A handler that raises an exception."""
|
||||
def receive_data_chunk(self, raw_data, start):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue