Ticket #7900: file_upload_tell.2.diff
File file_upload_tell.2.diff, 914 bytes (added by , 16 years ago) |
---|
-
django/core/files/uploadedfile.py
201 201 def read(self, *args): return self._file.read(*args) 202 202 def seek(self, offset): return self._file.seek(offset) 203 203 def write(self, s): return self._file.write(s) 204 def tell(self): return self._file.tell() 204 205 def close(self): return self._file.close() 205 206 def __iter__(self): return iter(self._file) 206 207 def readlines(self, size=None): return self._file.readlines(size) … … 221 222 222 223 def open(self): 223 224 self.seek(0) 225 226 def tell(self): 227 return self.file.tell() 224 228 225 229 def read(self, *args, **kwargs): 226 230 return self.file.read(*args, **kwargs)