Ticket #13901: file_chunks_2.diff
File file_chunks_2.diff, 513 bytes (added by , 14 years ago) |
---|
-
django/core/files/base.py
65 65 counter = self.size 66 66 67 67 while counter > 0: 68 yield self.read(chunk_size) 69 counter -= chunk_size 68 chunk = self.read(chunk_size) 69 yield chunk 70 counter -= len(chunk) 70 71 71 72 def multiple_chunks(self, chunk_size=None): 72 73 """