diff --git a/record.py b/record.py index b5df8d3..8f4f054 100644 --- a/record.py +++ b/record.py @@ -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 = {}