aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lib/python/debian_linux
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lib/python/debian_linux')
-rw-r--r--debian/lib/python/debian_linux/utils.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/debian/lib/python/debian_linux/utils.py b/debian/lib/python/debian_linux/utils.py
index 47b01914022f..8fb7b5351b05 100644
--- a/debian/lib/python/debian_linux/utils.py
+++ b/debian/lib/python/debian_linux/utils.py
@@ -138,17 +138,3 @@ class wrap(textwrap.TextWrapper):
r'(\s+|' # any whitespace
r'(?<=[\w\!\"\'\&\.\,\?])-{2,}(?=\w))') # em-dash
-def rmtree(dir):
- import os, os.path, stat
- for root, dirs, files in os.walk(dir, topdown=False):
- for name in files:
- os.remove(os.path.join(root, name))
- for name in dirs:
- real = os.path.join(root, name)
- mode = os.lstat(real)[stat.ST_MODE]
- if stat.S_ISDIR(mode):
- os.rmdir(real)
- else:
- os.remove(real)
- os.rmdir(dir)
-