Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a small oversight in [8750]; thanks for the sharp eyes, Warren.…

… Fixes #8616.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 89633c3077e116ef2fd7f157eef3ffcdc3b14c7f 1 parent 7239429
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/sessions/backends/file.py
View
2  django/contrib/sessions/backends/file.py
@@ -113,12 +113,12 @@ def save(self, must_create=False):
try:
output_file_fd, output_file_name = tempfile.mkstemp(dir=dir,
prefix=prefix + '_out_')
+ renamed = False
try:
try:
os.write(output_file_fd, self.encode(session_data))
finally:
os.close(output_file_fd)
- renamed = False
os.rename(output_file_name, session_file_name)
renamed = True
finally:
Please sign in to comment.
Something went wrong with that request. Please try again.