Ricordisamoa has submitted this change and it was merged.

Change subject: All text is Unicode by default in Python 3
......................................................................


All text is Unicode by default in Python 3

Change-Id: I53ae836c70a76bb8f59a35c4ffcedca500ec2f65
---
M mappings.py
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Ricordisamoa: Verified; Looks good to me, approved



diff --git a/mappings.py b/mappings.py
index 3ed4f47..a6b3265 100644
--- a/mappings.py
+++ b/mappings.py
@@ -22,7 +22,7 @@
 
 import mwparserfromhell
 
-MARKER = u'\ue0ff'
+MARKER = '\ue0ff'
 WIKIPEDIA_API = 'https://{}.wikipedia.org/w/api.php'
 DBPEDIA_API = 'http://mappings.dbpedia.org/api.php'
 
@@ -34,7 +34,7 @@
     for template in wikitext.ifilter_templates():
         templates.append(template.name.strip())
 
-    prefixed_titles = [u'Template:{}'.format(title) for title in templates]
+    prefixed_titles = ['Template:{}'.format(title) for title in templates]
 
     old_langlinks = get_langlinks(prefixed_titles, lang_from, lang_to)
     langlinks = {}
@@ -186,7 +186,7 @@
     titles = {}
     for lang, templates in cnf.items():
         for template in templates:
-            titles[u'Mapping {lang}:{title}'.format(lang=lang, 
title=template)] = (lang, template)
+            titles['Mapping {lang}:{title}'.format(lang=lang, title=template)] 
= (lang, template)
     pages = get_page_contents(DBPEDIA_API, titles.keys())
     templates = {
         lang_from: {},

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I53ae836c70a76bb8f59a35c4ffcedca500ec2f65
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/translatemplate
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org>
Gerrit-Reviewer: Ricordisamoa <ricordisa...@openmailbox.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to