close fd in RecordCollection.__init__()

This commit is contained in:
randomuser 2021-11-22 18:40:27 -06:00
parent 205674f2f2
commit f66776c9bb
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ class RecordCollection():
self._fromFile(fd)
self._parent()
fd.close()
def _fromFile(self, fd):
lines = [i.rstrip() for i in fd.readlines()]
self.objects = {}