[Pywikipedia-l] SVN: [6078] trunk/pywikipedia/commonsdelinker/checkusage.py
btongminh at svn.wikimedia.org
btongminh at svn.wikimedia.org
Fri Nov 7 22:43:45 UTC 2008
Revision: 6078
Author: btongminh
Date: 2008-11-07 22:43:45 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
Proper fix this time.
Modified Paths:
--------------
trunk/pywikipedia/commonsdelinker/checkusage.py
Modified: trunk/pywikipedia/commonsdelinker/checkusage.py
===================================================================
--- trunk/pywikipedia/commonsdelinker/checkusage.py 2008-11-07 22:36:51 UTC (rev 6077)
+++ trunk/pywikipedia/commonsdelinker/checkusage.py 2008-11-07 22:43:45 UTC (rev 6078)
@@ -354,9 +354,9 @@
# Apparently this someday changed from dict to list?
if type(usages) is dict:
- uages = usages.values()
+ usages = usages.values()
- for usage in usages.itervalues():
+ for usage in usages:
title = usage['title'].replace(' ', '_')
namespace = usage['ns']
if namespace != 0:
More information about the Pywikipedia-l
mailing list