Ticket #9344: 9344-temporary-file-delegation.patch
File 9344-temporary-file-delegation.patch, 817 bytes (added by , 16 years ago) |
---|
-
django/core/files/temp.py
48 48 def __del__(self): 49 49 self.close() 50 50 51 def read(self, *args): return self.file.read(*args) 52 def seek(self, offset): return self.file.seek(offset) 53 def write(self, s): return self.file.write(s) 54 def __iter__(self): return iter(self.file) 55 def readlines(self, size=None): return self.file.readlines(size) 56 def xreadlines(self): return self.file.xreadlines() 51 def __getattr__(self, name): 52 return getattr(self.file, name) 57 53 58 54 NamedTemporaryFile = TemporaryFile 59 55 else: