]> arthur.barton.de Git - bup.git/commitdiff
Fix some 'print' to stdout that snuck in somehow.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 4 Jan 2011 08:09:12 +0000 (00:09 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 4 Jan 2011 08:50:02 +0000 (00:50 -0800)
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 <apenwarr@gmail.com>
cmd/save-cmd.py
lib/bup/helpers.py

index 62c1e426bb5bad665c41004fb9e71af99d1dc2d5..fe1519e2e5cb08df5b4e5191e03d988ecb80c284 100755 (executable)
@@ -138,7 +138,6 @@ def vlog(s):
 
 
 indexfile = opt.indexfile or git.repo('bupindex')
-print indexfile
 r = index.Reader(indexfile)
 
 def already_saved(ent):
index 3c78c1890945b96046a9759061564e988b51805b..cb378a97421cd53363b853e214eca51959b4314d 100644 (file)
@@ -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: