Ticket #8616: file.py.diff
File file.py.diff, 719 bytes (added by , 15 years ago) |
---|
-
D:/python26/Lib/site-packages/django-1.1-py2.6.egg/django/contrib/sessions/backends/
old new 119 119 os.write(output_file_fd, self.encode(session_data)) 120 120 finally: 121 121 os.close(output_file_fd) 122 123 # On Windows, old file must be removed or rename() will fail. 124 if os.name == 'nt': 125 os.unlink(session_file_name) 126 122 127 os.rename(output_file_name, session_file_name) 123 128 renamed = True 124 129 finally: