chiark / gitweb /
Fix type issue
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 18 Aug 2015 05:04:20 +0000 (22:04 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 18 Aug 2015 05:04:20 +0000 (22:04 -0700)
fdroidserver/common.py

index 2f18f7f504325faa2196c8dfb4bb5943dea65ebb..ec82561342f3c6f4e772733141eed60ec65aa4d3 100644 (file)
@@ -1601,8 +1601,9 @@ def scan_source(build_dir, root_dir, thisbuild):
                 if not os.path.isfile(fp):
                     continue
                 for i, line in enumerate(file(fp)):
+                    i = i + 1
                     if any(suspect.match(line) for suspect in usual_suspects):
-                        count += handleproblem('usual suspect at line %d' % i+1, fd, fp)
+                        count += handleproblem('usual suspect at line %d' % i, fd, fp)
                         break
 
     for p in scanignore: