1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

lint: move regex closer to usage

This commit is contained in:
Daniel Martí 2015-09-11 22:07:51 -07:00
parent 223db1588b
commit b9b4880b49

View File

@ -121,8 +121,6 @@ def check_regexes(app):
if m.match(l):
yield "%s at line '%s': %s" % (f, l, r)
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
def get_lastbuild(builds):
lowest_vercode = -1
@ -255,6 +253,9 @@ def check_duplicates(app):
seenlines.add(l)
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
def check_mediawiki_links(app):
for l in app['Description']:
for um in desc_url.finditer(l):