]> git.decadent.org.uk Git - dak.git/commitdiff
Close sourcefile.
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 19:42:02 +0000 (19:42 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 19:45:02 +0000 (19:45 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index cdf366f8754cee004e06d92662c533372757f073..2d371e8d8b77deecd6a47f5202b6dadefe2ea596 100755 (executable)
@@ -1214,6 +1214,7 @@ class Upload(object):
         # Parse the yaml file
         sourcefile = file(tagfile, 'r')
         sourcecontent = sourcefile.read()
         # Parse the yaml file
         sourcefile = file(tagfile, 'r')
         sourcecontent = sourcefile.read()
+        sourcefile.close()
         try:
             lintiantags = yaml.load(sourcecontent)
         except yaml.YAMLError, msg:
         try:
             lintiantags = yaml.load(sourcecontent)
         except yaml.YAMLError, msg: