Commit 2daccd5c authored by Marius Gedminas's avatar Marius Gedminas

Oops, Python 2.6

parent c9159338
......@@ -961,8 +961,9 @@ def copyTransactionsFromTo(source, destination):
fd, name = tempfile.mkstemp(
suffix='.tmp', dir=destination.fshelper.temp_dir)
os.close(fd)
with open(blobfilename, 'rb') as sf, open(name, 'wb') as df:
utils.cp(sf, df)
with open(blobfilename, 'rb') as sf:
with open(name, 'wb') as df:
utils.cp(sf, df)
destination.restoreBlob(record.oid, record.tid, record.data,
name, record.data_txn, trans)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment