Revision: 6439 Author: purodha Date: 2009-02-24 21:48:26 +0000 (Tue, 24 Feb 2009)
Log Message: ----------- Typos in randomredirectpage()
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-02-24 20:44:32 UTC (rev 6438) +++ trunk/pywikipedia/wikipedia.py 2009-02-24 21:48:26 UTC (rev 6439) @@ -5418,10 +5418,11 @@ if title not in seen: seen.add(title) yield Page(self, title) - + if not repeat: + break
- def randomredirectpages(self, number=1, repeat=False, randmoredirect=True): - """Yield irandom pages via Special:Random, or Special:RandmRedirect.""" + def randomredirectpages(self, number=1, repeat=False, randomredirect=True): + """Yield random pages via Special:Random, or Special:RandomRedirect.""" seen = set() if randomredirect: path = self.randomredirect_address()