aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lib
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2007-01-27 19:18:27 +0000
committerBastian Blank <waldi@debian.org>2007-01-27 19:18:27 +0000
commita5af4e3da18731ae16693874f95e51aefe56a2f3 (patch)
tree3ba4dad6ab50facc0a1b77597cc57862250fe88c /debian/lib
parent43e8b7caa1b8019e9841bb564c32ad61a0fa9ad7 (diff)
downloadkernel_replicant_linux-a5af4e3da18731ae16693874f95e51aefe56a2f3.tar.gz
kernel_replicant_linux-a5af4e3da18731ae16693874f95e51aefe56a2f3.tar.bz2
kernel_replicant_linux-a5af4e3da18731ae16693874f95e51aefe56a2f3.zip
debian/lib/python/debian_linux/utils.py: Remove rmtree function.
svn path=/dists/trunk/linux-2.6/; revision=8223
Diffstat (limited to 'debian/lib')
-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)
-