"""
# end of bup preamble
+from __future__ import absolute_import
import errno, re, sys, os, subprocess, signal, getopt
from fcntl import F_GETFL, F_SETFL
os.environ['BUP_RESOURCE_PATH'] = resourcepath
-from bup import helpers
+from bup import compat, helpers
from bup.compat import add_ex_tb, chain_ex, wrap_main
from bup.helpers import atoi, columnate, debug1, log, tty_width
pending_ex = chain_ex(add_ex_tb(ex), pending_ex)
try:
# Try to finish each of the streams
- for fd, pending_items in pending.iteritems():
+ for fd, pending_items in compat.items(pending):
dest = dest_out if fd == src_out else dest_err
try:
print_clean_line(dest, pending_items, width)