jenkins-bot has submitted this change and it was merged.
Change subject: pep8-ified pywikibot/i18n.py
......................................................................
pep8-ified pywikibot/i18n.py
Change-Id: Ieea20eefadd8d3933621bc31ca47585ad8bd396b
---
M pywikibot/i18n.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index bc9f480..4a96bbe 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -25,7 +25,7 @@
@param code The language code
@type code string
@return a list of strings as language codes
-
+
If no translation is available to a specified language, translate() will
try each of the specified fallback languages, in order, until it finds
one with a translation, with 'en' and '_default' as a last resort.
@@ -502,7 +502,6 @@
default is os locale setting
"""
- code = config.userinterface_lang or \
- locale.getdefaultlocale()[0].split('_')[0]
+ code = config.userinterface_lang or
locale.getdefaultlocale()[0].split('_')[0]
trans = twtranslate(code, twtitle, parameters)
return pywikibot.input(trans, password)
--
To view, visit https://gerrit.wikimedia.org/r/79592
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieea20eefadd8d3933621bc31ca47585ad8bd396b
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits