From: Daniel Martí Date: Mon, 31 Aug 2015 22:39:07 +0000 (-0700) Subject: lint: fixed list false positives, no need for utf X-Git-Tag: 0.5.0~143 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3bc0d43786226d45eca93b87ff01a33480904aab;p=fdroidserver.git lint: fixed list false positives, no need for utf --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 45991064..123ed688 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -284,14 +284,13 @@ def main(): lcount = 0 continue - ld = l.decode('utf-8') - if ld[0] == lchar and ld[1] == ' ': + if l[0] == lchar and l[1] == ' ': lcount += 1 if lcount > 2 and lchar not in validchars: warn("Description has a list (%s) but it isn't bulleted (*) nor numbered (#)" % lchar) break else: - lchar = ld[0] + lchar = l[0] lcount = 1 # Regex checks in all kinds of fields