Kaydet (Commit) 30fc49a7 authored tarafından John Hensley's avatar John Hensley Kaydeden (comit) Tim Graham

Fixed #21057 -- Prevented FileSystemStorage from leaving temporary files.

üst f2a44528
......@@ -215,6 +215,7 @@ class FileSystemStorage(Storage):
_file = os.fdopen(fd, mode)
_file.write(chunk)
finally:
content.close()
locks.unlock(fd)
if _file is not None:
_file.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment