diff options
author | Bastian Blank <waldi@debian.org> | 2007-01-27 19:18:27 +0000 |
---|---|---|
committer | Bastian Blank <waldi@debian.org> | 2007-01-27 19:18:27 +0000 |
commit | a5af4e3da18731ae16693874f95e51aefe56a2f3 (patch) | |
tree | 3ba4dad6ab50facc0a1b77597cc57862250fe88c /debian/lib | |
parent | 43e8b7caa1b8019e9841bb564c32ad61a0fa9ad7 (diff) | |
download | kernel_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.py | 14 |
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) - |