directutil: Fix use of removed file()
This commit is contained in:
parent
f7bd54b9ee
commit
b7124da4aa
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue