Ticket #6027: file_wrapper_iter.diff

File file_wrapper_iter.diff, 410 bytes (added by hanson2010, 3 years ago)

modifying iter of FileWrapper

  • django/core/servers/basehttp.py

     
    4848        raise IndexError
    4949
    5050    def __iter__(self):
     51        if hasattr(self.filelike, 'seek'):
     52            self.filelike.seek(0)
    5153        return self
    5254
    5355    def next(self):
Back to Top