"""
# end of bup preamble
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
import os, sys
from bup import git, options
if not extra:
for t in tags:
- print t
+ print(t)
sys.exit(0)
elif len(extra) < 2:
o.fatal('no commit ref or hash given.')
tag_file = git.repo('refs/tags/%s' % tag_name)
try:
- tag = file(tag_file, 'w')
+ tag = open(tag_file, 'w')
except OSError as e:
log("bup: error: could not create tag '%s': %s" % (tag_name, e))
sys.exit(3)