jenkins-bot has submitted this change and it was merged. ( 
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(+), 2 deletions(-)

Approvals:
  Mpaa: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index bfcc6ac..b9954af 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -34,7 +34,6 @@
 __version__ = '$Id$'
 #
 
-import re
 import signal
 
 willstop = False
@@ -172,7 +171,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 match:
                                     link_text = match.group(1)
                                 else:

-- 
To view, visit https://gerrit.wikimedia.org/r/364119
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic03189f91c66fc2ef1b59fe4bbbd1482fb1f753d
Gerrit-PatchSet: 5
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: Magul <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to