0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed #24664 -- Removed misleading arg name from TemporaryFileUploadHandler.new_file

This commit is contained in:
David Danier 2015-04-20 11:59:30 +02:00 committed by Claude Paroz
parent cc493d3c06
commit 9346e45f84

View File

@ -139,11 +139,11 @@ class TemporaryFileUploadHandler(FileUploadHandler):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(TemporaryFileUploadHandler, self).__init__(*args, **kwargs) super(TemporaryFileUploadHandler, self).__init__(*args, **kwargs)
def new_file(self, file_name, *args, **kwargs): def new_file(self, *args, **kwargs):
""" """
Create the file object to append to as data is coming in. Create the file object to append to as data is coming in.
""" """
super(TemporaryFileUploadHandler, self).new_file(file_name, *args, **kwargs) super(TemporaryFileUploadHandler, self).new_file(*args, **kwargs)
self.file = TemporaryUploadedFile(self.file_name, self.content_type, 0, self.charset, self.content_type_extra) self.file = TemporaryUploadedFile(self.file_name, self.content_type, 0, self.charset, self.content_type_extra)
def receive_data_chunk(self, raw_data, start): def receive_data_chunk(self, raw_data, start):