mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
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:
|
except OSError:
|
||||||
DistributedLargeBlobSender.notify.error(
|
DistributedLargeBlobSender.notify.error(
|
||||||
'could not access %s' % bPath)
|
'could not access %s' % bPath)
|
||||||
f = file(filename, 'rb')
|
f = open(filename, 'rb')
|
||||||
self.blob = f.read()
|
self.blob = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
os.unlink(filename)
|
os.unlink(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user