diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2010-11-07 05:25:31 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2010-11-07 05:25:31 +0100 |
commit | dfe1c91f5d6bf09a15f87d2945f6a9b37ffcfac0 (patch) | |
tree | ed61b853da38aa3472835bfef22cae702109fa6a | |
parent | Stop on first regex matching (diff) | |
download | repositories-xml-format-dfe1c91f5d6bf09a15f87d2945f6a9b37ffcfac0.tar.gz repositories-xml-format-dfe1c91f5d6bf09a15f87d2945f6a9b37ffcfac0.tar.bz2 repositories-xml-format-dfe1c91f5d6bf09a15f87d2945f6a9b37ffcfac0.zip |
Close file as early as possible
-rw-r--r-- | layman/dbtools/gitoliteparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/dbtools/gitoliteparser.py b/layman/dbtools/gitoliteparser.py index 65159bd..1a66e86 100644 --- a/layman/dbtools/gitoliteparser.py +++ b/layman/dbtools/gitoliteparser.py @@ -78,12 +78,12 @@ class RepoDatabase: dont_add_reason = m.group(1) break + f.close() self._add(repo, terms_status, is_overlay, dont_add_reason) for desc_repo, (desc_contact, desc_desc) in desc_map.items(): self._describe(desc_repo, desc_contact, desc_desc) - f.close() def _dump(self): for repo, (terms_status, is_overlay, dont_add_reason, contact, desc) in sorted(self._db.items()): |