summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6a51626)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
import sys
from bup import git, options
import sys
from bup import git, options
-from bup.compat import argv_bytes, int_types
+from bup.compat import argv_bytes
from bup.gc import bup_gc
from bup.helpers import die_if_errors, log, partition, period_as_secs
from bup.io import byte_stream
from bup.gc import bup_gc
from bup.helpers import die_if_errors, log, partition, period_as_secs
from bup.io import byte_stream
o.fatal('refusing to run dangerous, experimental command without --unsafe')
now = int(time()) if opt.wrt is None else opt.wrt
o.fatal('refusing to run dangerous, experimental command without --unsafe')
now = int(time()) if opt.wrt is None else opt.wrt
- if not isinstance(now, int_types):
+ if not isinstance(now, int):
o.fatal('--wrt value ' + str(now) + ' is not an integer')
period_start = {}
o.fatal('--wrt value ' + str(now) + ' is not an integer')
period_start = {}
from os import fsdecode, fsencode
from shlex import quote
from os import fsdecode, fsencode
from shlex import quote
def hexstr(b):
"""Return hex string (not bytes as with hexlify) representation of b."""
return b.hex()
def hexstr(b):
"""Return hex string (not bytes as with hexlify) representation of b."""
return b.hex()
add_ex_tb,
environ,
fsdecode,
add_ex_tb,
environ,
fsdecode,
wrap_main
)
from bup.compat import add_ex_tb, add_ex_ctx, wrap_main
wrap_main
)
from bup.compat import add_ex_tb, add_ex_ctx, wrap_main
- assert all(isinstance(x, int_types) for x in srcs)
+ assert all(isinstance(x, int) for x in srcs)
assert len(srcs) == len(dests)
srcs = tuple(srcs)
dest_for = dict(zip(srcs, dests))
assert len(srcs) == len(dests)
srcs = tuple(srcs)
dest_for = dict(zip(srcs, dests))