Signed-off-by: Julien Goodwin <jgoodwin@studio442.com.au>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
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)
with test_tempdir('bup-tindex-') as tmpdir:
# Makes 'foo' exist
foopath = tmpdir + '/foo'
- f = file(foopath, 'wb')
+ f = open(foopath, 'wb')
f.close()
# Dec 31, 1969