]> arthur.barton.de Git - bup.git/blobdiff - cmd/init-cmd.py
pwdgrp: check for bytes with isinstance everywhere
[bup.git] / cmd / init-cmd.py
index fabd98c2d1711affba816b7742f3ff3ca30c93db..ad2ed82877ab2bc643ee070f0ad7c75b5e5e959b 100755 (executable)
@@ -4,10 +4,13 @@ bup_python="$(dirname "$0")/bup-python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
+
+from __future__ import absolute_import
 import sys
 
 from bup import git, options, client
-from bup.helpers import *
+from bup.helpers import log, saved_errors
+from bup.compat import argv_bytes
 
 
 optspec = """
@@ -30,5 +33,5 @@ except git.GitError as e:
 
 if opt.remote:
     git.check_repo_or_die()
-    cli = client.Client(opt.remote, create=True)
+    cli = client.Client(argv_bytes(opt.remote), create=True)
     cli.close()