From 8e3c1fc12c7d25d5bc5278e778c3ac81515c701b Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 4 Jan 2011 00:09:12 -0800 Subject: [PATCH] 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 --- cmd/save-cmd.py | 1 - lib/bup/helpers.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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: -- 2.39.2