From 3bc0d43786226d45eca93b87ff01a33480904aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 31 Aug 2015 15:39:07 -0700 Subject: [PATCH] lint: fixed list false positives, no need for utf --- fdroidserver/lint.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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