Revision: 6714 Author: nicdumz Date: 2009-04-25 14:43:14 +0000 (Sat, 25 Apr 2009)
Log Message: ----------- new already is a Site->Page dict. No need to iterate on its values to get the Page's sites...
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-04-25 14:34:52 UTC (rev 6713) +++ trunk/pywikipedia/interwiki.py 2009-04-25 14:43:14 UTC (rev 6714) @@ -1423,8 +1423,8 @@
""" # use sets because searching an element is faster than in lists - expectedPages = set(new.values()) - expectedSites = set([page.site() for page in expectedPages]) + expectedPages = set(new.itervalues()) + expectedSites = set(new) try: for site, page in new.iteritems(): if site not in updatedSites and not page.section():