From: Daniel Martí Date: Tue, 18 Aug 2015 05:04:20 +0000 (-0700) Subject: Fix type issue X-Git-Tag: 0.5.0~199 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c813ad059490ae02e80b7e0c3bee6299af9f1b51;p=fdroidserver.git Fix type issue --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 2f18f7f5..ec825613 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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: