[dak/master 10/16] Close sourcefile.
Signed-off-by: Chris Lamb <lamby@debian.org>
---
daklib/queue.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index cdf366f..2d371e8 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -1214,6 +1214,7 @@ class Upload(object):
# Parse the yaml file
sourcefile = file(tagfile, 'r')
sourcecontent = sourcefile.read()
+ sourcefile.close()
try:
lintiantags = yaml.load(sourcecontent)
except yaml.YAMLError, msg:
--
1.6.3.3
Reply to: