]> git.decadent.org.uk Git - dak.git/commitdiff
visually fix daklib.utils.parse_wnpp_bug_file
authorHelmut Grohne <helmut@subdivi.de>
Thu, 15 May 2014 18:34:25 +0000 (20:34 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 15 May 2014 19:43:55 +0000 (21:43 +0200)
The file asks Vim to set tabstop=4. So the "lines = []" line formerly
being indented with a tab appears to be executed unconditionally whereas
it really only is executed in the exception handler.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
Signed-off-by: Helmut Grohne <helmut@subdivi.de>
daklib/utils.py

index f2a790414e1b5028534f06acd851c4823bedc907..3175e9875046f3a405bec1e9d4718be70377c4e0 100644 (file)
@@ -1567,7 +1567,7 @@ def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/w
         lines = f.readlines()
     except IOError as e:
         print "Warning:  Couldn't open %s; don't know about WNPP bugs, so won't close any." % file
-       lines = []
+        lines = []
     wnpp = {}
 
     for line in lines: