Ricordisamoa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/315665

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/translatemplate 
refs/changes/65/315665/1

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: newchange
Gerrit-Change-Id: I53ae836c70a76bb8f59a35c4ffcedca500ec2f65
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/translatemplate
Gerrit-Branch: master
Gerrit-Owner: 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