Author: waldi
Date: Sat Jan 27 20:18:27 2007
New Revision: 8223

Modified:
   dists/trunk/linux-2.6/debian/lib/python/debian_linux/utils.py
Log:
debian/lib/python/debian_linux/utils.py: Remove rmtree function.


Modified: dists/trunk/linux-2.6/debian/lib/python/debian_linux/utils.py
==============================================================================
--- dists/trunk/linux-2.6/debian/lib/python/debian_linux/utils.py       
(original)
+++ dists/trunk/linux-2.6/debian/lib/python/debian_linux/utils.py       Sat Jan 
27 20:18:27 2007
@@ -138,17 +138,3 @@
         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)
-

_______________________________________________
Kernel-svn-changes mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes

Reply via email to