http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11398
Revision: 11398 Author: drtrigon Date: 2013-04-20 13:14:43 +0000 (Sat, 20 Apr 2013) Log Message: ----------- bug fix; follow-up to r11397 in order to allow single parameter usage of debug
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-04-20 12:20:45 UTC (rev 11397) +++ trunk/pywikipedia/wikipedia.py 2013-04-20 13:14:43 UTC (rev 11398) @@ -9291,7 +9291,7 @@ """Output a debug record to the log file.""" logoutput(text, decoder, newline, CRITICAL, **kwargs)
-def debug(text, layer, decoder=None, newline=True, **kwargs): +def debug(text, layer="", decoder=None, newline=True, **kwargs): """Output a debug record to the log file.""" logoutput(text, decoder, newline, DEBUG, layer, **kwargs)