summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dir_util.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-02-06 00:53:43 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-02-06 00:53:43 (GMT)
commit35e6fd5de9be36789e4f8f10350a27be559921b9 (patch)
tree6c7a3c0f7abb03453df956846b28e77626313733 /Lib/distutils/dir_util.py
parenta045937b45834c58c5c45c98232ed21223259eca (diff)
downloadcpython-35e6fd5de9be36789e4f8f10350a27be559921b9.zip
cpython-35e6fd5de9be36789e4f8f10350a27be559921b9.tar.gz
cpython-35e6fd5de9be36789e4f8f10350a27be559921b9.tar.bz2
Merged revisions 69332 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69332 | tarek.ziade | 2009-02-06 01:49:45 +0100 (Fri, 06 Feb 2009) | 1 line using >= so setting verbose to 2 will work as well ........
Diffstat (limited to 'Lib/distutils/dir_util.py')
-rw-r--r--Lib/distutils/dir_util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py
index db754e5..ed54cce 100644
--- a/Lib/distutils/dir_util.py
+++ b/Lib/distutils/dir_util.py
@@ -62,7 +62,7 @@ def mkpath (name, mode=0o777, verbose=1, dry_run=0):
if _path_created.get(abs_head):
continue
- if verbose == 1:
+ if verbose >= 1:
log.info("creating %s", head)
if not dry_run:
@@ -153,7 +153,7 @@ def copy_tree (src, dst,
if preserve_symlinks and os.path.islink(src_name):
link_dest = os.readlink(src_name)
- if verbose == 1:
+ if verbose >= 1:
log.info("linking %s -> %s", dst_name, link_dest)
if not dry_run:
os.symlink(link_dest, dst_name)
@@ -190,7 +190,7 @@ def remove_tree (directory, verbose=1, dry_run=0):
from distutils.util import grok_environment_error
global _path_created
- if verbose == 1:
+ if verbose >= 1:
log.info("removing '%s' (and everything under it)", directory)
if dry_run:
return