mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
lint: fixed list false positives, no need for utf
This commit is contained in:
parent
19a281d7cb
commit
3bc0d43786
1 changed files with 2 additions and 3 deletions
|
|
@ -284,14 +284,13 @@ def main():
|
||||||
lcount = 0
|
lcount = 0
|
||||||
continue
|
continue
|
||||||
|
|
||||||
ld = l.decode('utf-8')
|
if l[0] == lchar and l[1] == ' ':
|
||||||
if ld[0] == lchar and ld[1] == ' ':
|
|
||||||
lcount += 1
|
lcount += 1
|
||||||
if lcount > 2 and lchar not in validchars:
|
if lcount > 2 and lchar not in validchars:
|
||||||
warn("Description has a list (%s) but it isn't bulleted (*) nor numbered (#)" % lchar)
|
warn("Description has a list (%s) but it isn't bulleted (*) nor numbered (#)" % lchar)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
lchar = ld[0]
|
lchar = l[0]
|
||||||
lcount = 1
|
lcount = 1
|
||||||
|
|
||||||
# Regex checks in all kinds of fields
|
# Regex checks in all kinds of fields
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue