kadischi/lib functions.py,1.12,1.13

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Wed Jul 5 12:41:32 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/lib
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28320/kadischi/lib

Modified Files:
	functions.py 
Log Message:
Caught this bug already, one too many cleanup() present.


Index: functions.py
===================================================================
RCS file: /cvs/devel/kadischi/lib/functions.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- functions.py	5 Jul 2006 05:34:45 -0000	1.12
+++ functions.py	5 Jul 2006 12:41:29 -0000	1.13
@@ -70,10 +70,7 @@
 def clean_directory (dir, remove_when_done=True, keep_child_directories=False):
     """Removes all files in a directory, optionally removing the directory afterwards"""
     assert os.path.isdir and not os.path.islink (dir)
-    try:
-        file_list = os.listdir (dir)
-    except:
-        pass
+    file_list = os.listdir (dir)
 
     for f in file_list:
         path = os.path.join (dir, f)




More information about the fedora-extras-commits mailing list