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

Change subject: i18n doctest was missing an import
......................................................................


i18n doctest was missing an import

The doctest examples were missing an import to let one run the tests.
Detected by flake8: F821 undefined name 'i18n'

Change-Id: I5a3811be35cc52b0897384749bdffd33a40bbfc2
---
M pywikibot/i18n.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index 56fb9da..2e50bda 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -409,6 +409,7 @@
         },
     }
     #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/116295
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5a3811be35cc52b0897384749bdffd33a40bbfc2
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Hashar <[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

Reply via email to