1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-14 13:00:08 +02:00

Fix type issue

This commit is contained in:
Daniel Martí 2015-08-17 22:04:20 -07:00
parent ab6d6a3d0b
commit c813ad0594

View 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: