From a90f0e605e9a7c1b30ccdca222ee2a0e7a78043b Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 23 Jun 2014 13:25:50 +0200 Subject: [PATCH] [1.7.x] Cleaned temp dir in symlinks_supported() Refs #21482. Backport of 18b3788401 from master. --- django/utils/_os.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/utils/_os.py b/django/utils/_os.py index 93b965c7c6..1d7ddf619e 100644 --- a/django/utils/_os.py +++ b/django/utils/_os.py @@ -120,4 +120,6 @@ def symlinks_supported(): else: os.remove(symlink_path) finally: + os.rmdir(original_path) + os.rmdir(tmpdir) return supported