jenkins-bot has submitted this change and it was merged.
Change subject: replace print statements with pywikibot.output() (like in core) ......................................................................
replace print statements with pywikibot.output() (like in core)
Change-Id: Ia42a9ea7e4b728b4777fd5e918ec03ffb012f6b0 --- M version.py 1 file changed, 12 insertions(+), 11 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/version.py b/version.py index f3fc3a1..37816f2 100644 --- a/version.py +++ b/version.py @@ -3,26 +3,27 @@ """ Script to determine the pywikipedia version (tag, revision and date) """ # # (C) Merlijn 'valhallasw' van Deen, 2007-2008 -# (C) xqt, 2010-2013 -# (C) Pywikipedia bot team, 2007-2013 +# (C) xqt, 2010-2014 +# (C) Pywikibot team, 2007-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' +#
import sys import pywikibot -from pywikibot.version import * +from pywikibot.version import getversion import config
if __name__ == '__main__': - print 'Pywikibot: %s' % getversion() - print 'Release version: %s' % pywikibot.__release__ - print 'Python: %s' % sys.version - print 'config-settings:' - print 'use_api =', config.use_api - print 'use_api_login =', config.use_api_login + pywikibot.output('Pywikibot: %s' % getversion()) + pywikibot.output('Release version: %s' % pywikibot.__release__) + pywikibot.output('Python: %s' % sys.version) + pywikibot.output('config-settings:') + pywikibot.output('use_api = ' + str(config.use_api)) + pywikibot.output('use_api_login = ' + str(config.use_api_login)) if not __import__('unicodedata').normalize('NFC', u'\u092e\u093e\u0930\u094d\u0915 \u091c\u093c\u0941\u0915\u0947\u0930\u092c\u0930\u094d\u0917') == u'\u092e\u093e\u0930\u094d\u0915 \u091c\u093c\u0941\u0915\u0947\u0930\u092c\u0930\u094d\u0917': - print u'unicode test: triggers problem #3081100' + pywikibot.output(u'unicode test: triggers problem #3081100') else: - print u'unicode test: ok' + pywikibot.output(u'unicode test: ok')
pywikibot-commits@lists.wikimedia.org