Ticket #8616: name_error_fix.diff
File name_error_fix.diff, 754 bytes (added by , 16 years ago) |
---|
-
django/contrib/sessions/backends/file.py
113 113 try: 114 114 output_file_fd, output_file_name = tempfile.mkstemp(dir=dir, 115 115 prefix=prefix + '_out_') 116 renamed = False 116 117 try: 117 118 try: 118 119 os.write(output_file_fd, self.encode(session_data)) 119 120 finally: 120 121 os.close(output_file_fd) 121 renamed = False122 122 os.rename(output_file_name, session_file_name) 123 123 renamed = True 124 124 finally: