http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9289
Revision: 9289 Author: huji Date: 2011-06-05 23:50:50 +0000 (Sun, 05 Jun 2011) Log Message: ----------- When a list is returned for the namespace, the first element of the list is the actual namespace name. Before this change, bot threw error messages when used on a wiki with custom namespaces
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-06-05 20:12:25 UTC (rev 9288) +++ trunk/pywikipedia/wikipedia.py 2011-06-05 23:50:50 UTC (rev 9289) @@ -7049,7 +7049,7 @@ value = namespace.get('_default', None) if value: if isinstance(value, list): - defaults += value + defaults += value[0] else: defaults.append(value)