diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-06-23 13:25:50 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-06-23 13:29:10 +0200 |
| commit | a90f0e605e9a7c1b30ccdca222ee2a0e7a78043b (patch) | |
| tree | 9a47925402e17186db93eb015e84cd6da632a935 | |
| parent | f50a17785cdb67bc9d1b146d01c731cb6bfc48cf (diff) | |
[1.7.x] Cleaned temp dir in symlinks_supported()
Refs #21482.
Backport of 18b3788401 from master.
| -rw-r--r-- | django/utils/_os.py | 2 |
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 |
