http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11659
Revision: 11659 Author: legoktm Date: 2013-06-18 06:28:08 +0000 (Tue, 18 Jun 2013) Log Message: ----------- Convert the dim to int since the API provides a string
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2013-06-18 06:25:19 UTC (rev 11658) +++ branches/rewrite/pywikibot/data/api.py 2013-06-18 06:28:08 UTC (rev 11659) @@ -978,7 +978,7 @@ lon=co['lon'], typ=co.get('type', ''), name=co['name'], - dim=co['dim'], + dim=int(co['dim']), globe=co.get('globe', 'earth'), # See [[gerrit:67886]] ) coords.append(coord)
pywikipedia-svn@lists.wikimedia.org