Ticket #8149: UploadedFile-r8225.diff
File UploadedFile-r8225.diff, 593 bytes (added by , 16 years ago) |
---|
-
django/core/files/uploadedfile.py
141 141 # Iterate over this file-like object by newlines 142 142 buffer_ = None 143 143 for chunk in self.chunks(): 144 chunk_buffer = StringIO(chunk) 145 146 for line in chunk_buffer: 144 for line in chunk.splitlines(): 147 145 if buffer_: 148 146 line = buffer_ + line 149 147 buffer_ = None