directutil: Fix use of removed file()

This commit is contained in:
rdb 2020-12-30 14:22:50 +01:00
parent f7bd54b9ee
commit b7124da4aa

View File

@ -56,7 +56,7 @@ class DistributedLargeBlobSender(DistributedObject.DistributedObject):
except OSError:
DistributedLargeBlobSender.notify.error(
'could not access %s' % bPath)
f = file(filename, 'rb')
f = open(filename, 'rb')
self.blob = f.read()
f.close()
os.unlink(filename)