Matěj Suchánek has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/364119 )
Change subject: Do not try to compile a regex object in harvest_template.py
......................................................................
Do not try to compile a regex object in harvest_template.py
Change-Id: Ic03189f91c66fc2ef1b59fe4bbbd1482fb1f753d
---
M scripts/harvest_template.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/19/364119/1
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 93ff8a3..68f5b4c 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -174,7 +174,7 @@
else:
if claim.type == 'wikibase-item':
# Try to extract a valid page
- match = re.search(pywikibot.link_regex, value)
+ match = pywikibot.link_regex.search(value)
if not match:
pywikibot.output(
'%s field %s value %s is not a '
--
To view, visit https://gerrit.wikimedia.org/r/364119
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic03189f91c66fc2ef1b59fe4bbbd1482fb1f753d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits