From 5a6f70b4281817656db2f36c5919036d38fcce7f Mon Sep 17 00:00:00 2001 From: Anton Samarchyan Date: Wed, 25 Jan 2017 14:02:33 -0500 Subject: Refs #27656 -- Updated django.core docstring verbs according to PEP 257. --- django/core/files/uploadhandler.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'django/core/files/uploadhandler.py') diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py index a6832491c1..5e993d13e2 100644 --- a/django/core/files/uploadhandler.py +++ b/django/core/files/uploadhandler.py @@ -158,7 +158,8 @@ class MemoryFileUploadHandler(FileUploadHandler): def handle_raw_input(self, input_data, META, content_length, boundary, encoding=None): """ - Use the content_length to signal whether or not this handler should be in use. + Use the content_length to signal whether or not this handler should be + used. """ # Check the content-length header to see if we should # If the post is too large, we cannot use the Memory handler. @@ -174,18 +175,14 @@ class MemoryFileUploadHandler(FileUploadHandler): raise StopFutureHandlers() def receive_data_chunk(self, raw_data, start): - """ - Add the data to the BytesIO file. - """ + """Add the data to the BytesIO file.""" if self.activated: self.file.write(raw_data) else: return raw_data def file_complete(self, file_size): - """ - Return a file object if we're activated. - """ + """Return a file object if this handler is activated.""" if not self.activated: return -- cgit v1.2.1