Revision: 7731 Author: xqt Date: 2009-12-03 18:28:57 +0000 (Thu, 03 Dec 2009)
Log Message: ----------- Bugfix for #2908221
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-12-03 09:57:03 UTC (rev 7730) +++ trunk/pywikipedia/interwiki.py 2009-12-03 18:28:57 UTC (rev 7731) @@ -2079,7 +2079,6 @@ hintlessPageGen = None optContinue = False optRestore = False - restoreAll = False restoredFiles = [] File2Restore = [] dumpFileName = '' @@ -2197,7 +2196,8 @@ # This is an ugly workaround. nextPage = "!" namespace = 0 - for page in hintlessPageGen: + searchGen = pagegenerators.TextfilePageGenerator(dumpfn, site) + for page in searchGen: lastPage = page.titleWithoutNamespace() if lastPage > nextPage: nextPage = lastPage