]> arthur.barton.de Git - bup.git/blobdiff - cmd/import-duplicity-cmd.py
cmd/bup: adapt for python 3
[bup.git] / cmd / import-duplicity-cmd.py
index 0d4f5593ac2aa635451579dfad17b8c5ec07cdf0..565aca629c8cbca365152a4badddb1d11a794942 100755 (executable)
@@ -5,6 +5,7 @@ exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
+from __future__ import absolute_import
 from calendar import timegm
 from pipes import quote
 from subprocess import check_call
@@ -12,7 +13,7 @@ from time import strftime, strptime
 import sys
 import tempfile
 
-from bup import git, options, vfs
+from bup import git, options
 from bup.helpers import handle_ctrl_c, log, readpipe, saved_errors, unlink
 import bup.path
 
@@ -61,7 +62,6 @@ source_url, save_name = extra
 bup = bup.path.exe()
 
 git.check_repo_or_die()
-top = vfs.RefList(None)
 
 tmpdir = tempfile.mkdtemp(prefix='bup-import-dup-')
 try: