Ticket #13901: file_chunks.diff
File file_chunks.diff, 518 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_size) 70 71 71 72 def multiple_chunks(self, chunk_size=None): 72 73 """