import errno, os, subprocess, sys, tempfile
from bup import helpers
-from bup.compat import fsencode, str_type
+from bup.compat import fsencode
from bup.io import byte_stream
def logcmd(cmd):
s = helpers.shstr(cmd)
- if isinstance(cmd, str_type):
+ if isinstance(cmd, str):
print(s, file=sys.stderr)
else:
# bytes - for now just escape it