summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-06-23 13:25:50 +0200
committerClaude Paroz <claude@2xlibre.net>2014-06-23 13:27:52 +0200
commit18b3788401e823266a560b12000697da04490beb (patch)
tree71f2091db561372f073d74fa135086f7793e1a2c
parent9618d68b345fe69c787f8426b07e920e647e05f3 (diff)
Cleaned temp dir in symlinks_supported()
Refs #21482.
-rw-r--r--django/utils/_os.py2
1 files changed, 2 insertions, 0 deletions
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