http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10932
Revision: 10932 Author: drtrigon Date: 2013-01-15 18:04:46 +0000 (Tue, 15 Jan 2013) Log Message: ----------- follow-up; bug fix for r10931
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-01-15 18:00:15 UTC (rev 10931) +++ trunk/pywikipedia/wikipedia.py 2013-01-15 18:04:46 UTC (rev 10932) @@ -8724,13 +8724,13 @@ else: ver = int( '%02i%02i' % (sys.version_info.major, sys.version_info.minor) ) - kwargs = { when='midnight', - #encoding='bz2-codec') - encoding='utf-8' } + kwargs = { 'when': 'midnight', + #'encoding': 'bz2-codec') + 'encoding': 'utf-8' } if ver > int('0205'): # For Python > 2.5 (added in version 2.6) kwargs['utc'] = True - fh = logging.handlers.TimedRotatingFileHandler(logfn, kwargs) + fh = logging.handlers.TimedRotatingFileHandler(logfn, **kwargs) # patch for "Issue 8117: TimedRotatingFileHandler doesn't rotate log # file at startup." # applies to python2.6 only, solution filched from python2.7 source:
pywikipedia-svn@lists.wikimedia.org