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

Oops, Python 2.6

parent c9159338
...@@ -961,7 +961,8 @@ def copyTransactionsFromTo(source, destination): ...@@ -961,7 +961,8 @@ def copyTransactionsFromTo(source, destination):
fd, name = tempfile.mkstemp( fd, name = tempfile.mkstemp(
suffix='.tmp', dir=destination.fshelper.temp_dir) suffix='.tmp', dir=destination.fshelper.temp_dir)
os.close(fd) os.close(fd)
with open(blobfilename, 'rb') as sf, open(name, 'wb') as df: with open(blobfilename, 'rb') as sf:
with open(name, 'wb') as df:
utils.cp(sf, df) utils.cp(sf, df)
destination.restoreBlob(record.oid, record.tid, record.data, destination.restoreBlob(record.oid, record.tid, record.data,
name, record.data_txn, trans) name, record.data_txn, trans)
......
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