]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/helpers.py
Clean subprocess output without newliner
[bup.git] / lib / bup / helpers.py
index 9f404afdfc2da4da51b05cde91881cb120f7bd3e..d05226ebc28207dd94435a6c920ef99c4933b721 100644 (file)
@@ -11,6 +11,10 @@ import hashlib, heapq, math, operator, time, grp, tempfile
 
 from bup import _helpers
 from bup import compat
+# This function should really be in helpers, not in bup.options.  But we
+# want options.py to be standalone so people can include it in other projects.
+from bup.options import _tty_width as tty_width
+
 
 class Nonlocal:
     """Helper to deal with Python scoping issues"""
@@ -24,11 +28,6 @@ sc_arg_max = os.sysconf('SC_ARG_MAX')
 if sc_arg_max == -1:  # "no definite limit" - let's choose 2M
     sc_arg_max = 2 * 1024 * 1024
 
-# This function should really be in helpers, not in bup.options.  But we
-# want options.py to be standalone so people can include it in other projects.
-from bup.options import _tty_width
-tty_width = _tty_width
-
 
 def last(iterable):
     result = None