jenkins-bot has submitted this change and it was merged.

Change subject: archivebot.py: accept namespaces in Unicode strings in Python 2
......................................................................


archivebot.py: accept namespaces in Unicode strings in Python 2

Follows up be7fd6c4

Change-Id: Ib2b89d6a2190c20e0aa29bb86a0fb13740af4a25
---
M scripts/archivebot.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  XZise: Looks good to me, approved
  Ladsgroup: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index d98ceca..c76ddde 100644
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -226,7 +226,7 @@
     else:
         title = re.escape(title)
 
-    return re.compile(r'(?:(?:{0}):){1}{2}'.format(u'|'.join(ns), marker, 
title))
+    return re.compile(r'(?:(?:%s):)%s%s' % (u'|'.join(ns), marker, title))
 
 
 class TZoneUTC(datetime.tzinfo):

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib2b89d6a2190c20e0aa29bb86a0fb13740af4a25
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Whym <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: Whym <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to