change os.path.is_dir() to isdir()
authorAndrew Gaffney <agaffney@gentoo.org>
Sat, 28 Nov 2009 18:44:49 +0000 (12:44 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sat, 28 Nov 2009 18:44:49 +0000 (12:44 -0600)
ChangeLog
modules/catalyst/util.py

index db86f15cb6f4ffdc08dd650ff5c80c0bd58e3984..4cafa4344553e297f7784d4ee668161d6a98d431 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  28 Nov 2009; Andrew Gaffney <agaffney@gentoo.org>
+  modules/catalyst/util.py:
+  change os.path.is_dir() to isdir()
+
   20 Sep 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst,
   files/catalyst.conf, modules/catalyst/target/generic_stage.py:
   Remove metadata_overlay option, since it doesn't make sense with
index 1095766874287bfa4f0c57ee97128600665eec3a..503ac14e79a956cae742e6ea75dfc68a27ab16d3 100644 (file)
@@ -206,7 +206,7 @@ def remove_path(path, glob=True):
                        cmd("chflags -R noschg " + x, \
                                "Could not remove immutable flag for path " \
                                + x)
-               if os.path.is_dir(x):
+               if os.path.isdir(x):
                        try:
                                shutil.rmtree(x)
                        except: