jenkins-bot has submitted this change and it was merged.
Change subject: Revert "i18n doctest was missing an import"
......................................................................
Revert "i18n doctest was missing an import"
This reverts commit 45c4c4eb93ea6f60450d3dfe7cc0dcec9b08dcbe.
I do not see the sense of the previous commit.
fyflake does sometimes report nonsense. To test the method you
have to import the module(s) (which is trivial) but in the right
form:
>>> import pwb # if pywikibot is not a side package
>>> import pywikibot
>>> from pywikibot import i18n
(and if really necessary, place it obove the comment line)
Change-Id: Ie3c765f1520c6585f8e22f72c942ca7da0ebae75
---
M pywikibot/i18n.py
1 file changed, 0 insertions(+), 1 deletion(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index 2e50bda..56fb9da 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -409,7 +409,6 @@
},
}
#use a number
- >>> import i18n
>>> i18n.twntranslate('en', 'test-changing', 0) % {'num': 'no'}
Bot: Changing no pages.
#use a string
--
To view, visit https://gerrit.wikimedia.org/r/117649
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie3c765f1520c6585f8e22f72c942ca7da0ebae75
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits