From eeee01f3c3988104d2c495882bb75959255fa55d Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 27 Oct 2009 19:42:02 +0000 Subject: [PATCH 1/1] Close sourcefile. Signed-off-by: Chris Lamb --- daklib/queue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/daklib/queue.py b/daklib/queue.py index cdf366f8..2d371e8d 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: -- 2.39.2