http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11426
Revision: 11426 Author: drtrigon Date: 2013-04-21 20:16:36 +0000 (Sun, 21 Apr 2013) Log Message: ----------- bug fix; use correct output/logging function
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2013-04-21 19:09:15 UTC (rev 11425) +++ branches/rewrite/pywikibot/bot.py 2013-04-21 20:16:36 UTC (rev 11426) @@ -236,32 +236,32 @@ Save additional version, system and status info to the logfile in use, so that the user can look it up later to track errors or report bugs. """ - logoutput(u'=== Pywikipediabot framework v2.0 -- Logging header ===') + output(u'=== Pywikipediabot framework v2.0 -- Logging header ===')
# script call - logoutput(u'COMMAND: %s' % unicode(sys.argv)) + output(u'COMMAND: %s' % unicode(sys.argv))
# new framework release/revision? site = pywikibot.getSite() - logoutput(u'VERSION: %s' % unicode((version.getversion().strip(' ()'), + output(u'VERSION: %s' % unicode((version.getversion().strip(' ()'), version.getversion_onlinerepo(), site.live_version())))
# system if hasattr(os, 'uname'): - logoutput(u'SYSTEM: %s' % unicode(os.uname())) + output(u'SYSTEM: %s' % unicode(os.uname()))
# imported modules - #logoutput(u'MODULES:') + #output(u'MODULES:') #for item in sys.modules.keys(): # ver = version.getfileversion('%s.py' % item) # if ver and (ver[0] == u'$'): - # logoutput(u' %s' % ver) + # output(u' %s' % ver)
# messages on bot discussion page? - logoutput(u'MESSAGES: %s' % ('unanswered' if site.messages() else 'none')) + output(u'MESSAGES: %s' % ('unanswered' if site.messages() else 'none'))
- logoutput(u'=== ' * 14) + output(u'=== ' * 14)
# User output/logging functions
pywikipedia-svn@lists.wikimedia.org