jenkins-bot has submitted this change and it was merged.
Change subject: Revise doctest to avoid print
......................................................................
Revise doctest to avoid print
pyflakes 0.7.3 complains about print in the doctest.
pywikibot/tools.py:148:1: F999 syntax error in doctest
Change-Id: Ica39edcc2fe7c5959a7305cf2ad7adc668f1c373
---
M pywikibot/tools.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Nullzero: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/tools.py b/pywikibot/tools.py
index c4d8dbf..9254200 100644
--- a/pywikibot/tools.py
+++ b/pywikibot/tools.py
@@ -144,11 +144,11 @@
>> gen = ThreadedGenerator(target=range,
args=(20,))
>> try:
- ... for data in gen:
- ... print(data, end=',')
+ ... data = list(gen)
... finally:
... gen.stop()
- 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,
+ >>> data
+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
"""
--
To view, visit
https://gerrit.wikimedia.org/r/170575
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ica39edcc2fe7c5959a7305cf2ad7adc668f1c373
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Nullzero <nullzero.free(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>