From: Avery Pennarun Date: Tue, 4 Jan 2011 08:09:12 +0000 (-0800) Subject: Fix some 'print' to stdout that snuck in somehow. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8e3c1fc12c7d25d5bc5278e778c3ac81515c701b;p=packages%2Fb%2Fbup.git Fix some 'print' to stdout that snuck in somehow. We should be using debug1() or debug2() instead, most of the time. print is only for stuff that callers might actually want to read and parse. Signed-off-by: Avery Pennarun --- diff --git a/cmd/save-cmd.py b/cmd/save-cmd.py index 62c1e42..fe1519e 100755 --- a/cmd/save-cmd.py +++ b/cmd/save-cmd.py @@ -138,7 +138,6 @@ def vlog(s): indexfile = opt.indexfile or git.repo('bupindex') -print indexfile r = index.Reader(indexfile) def already_saved(ent): diff --git a/lib/bup/helpers.py b/lib/bup/helpers.py index 3c78c18..cb378a9 100644 --- a/lib/bup/helpers.py +++ b/lib/bup/helpers.py @@ -422,9 +422,9 @@ def strip_path(prefix, path): raise Exception('no path given') normalized_prefix = realpath(prefix) - print "normalized_prefix: " + normalized_prefix + debug2("normalized_prefix: %s\n" % normalized_prefix) normalized_path = realpath(path) - print "normalized_path: " + normalized_path + debug2("normalized_path: %s\n" % normalized_path) if normalized_path.startswith(normalized_prefix): return normalized_path[len(normalized_prefix):] else: