close fd in RecordCollection.__init__()
This commit is contained in:
parent
205674f2f2
commit
f66776c9bb
|
@ -33,6 +33,8 @@ class RecordCollection():
|
||||||
self._fromFile(fd)
|
self._fromFile(fd)
|
||||||
self._parent()
|
self._parent()
|
||||||
|
|
||||||
|
fd.close()
|
||||||
|
|
||||||
def _fromFile(self, fd):
|
def _fromFile(self, fd):
|
||||||
lines = [i.rstrip() for i in fd.readlines()]
|
lines = [i.rstrip() for i in fd.readlines()]
|
||||||
self.objects = {}
|
self.objects = {}
|
||||||
|
|
Loading…
Reference in New Issue