Revision: 4739 Author: rotem Date: 2007-12-20 17:03:45 +0000 (Thu, 20 Dec 2007)
Log Message: ----------- Spacing.
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2007-12-20 07:19:29 UTC (rev 4738) +++ trunk/pywikipedia/pagegenerators.py 2007-12-20 17:03:45 UTC (rev 4739) @@ -123,7 +123,7 @@ for page in site.allpages(start=title, namespace=namespace, includeredirects = includeredirects): yield page
-def PrefixingPageGenerator(prefix, namespace=None, includeredirects=True, site = None): +def PrefixingPageGenerator(prefix, namespace = None, includeredirects = True, site = None): for page in AllpagesPageGenerator(prefix, namespace, includeredirects, site): if page.titleWithoutNamespace().startswith(prefix): yield page @@ -292,7 +292,7 @@ break yield wikipedia.Page(site, title)
-def LinksearchPageGenerator(link, step=500, site = None): +def LinksearchPageGenerator(link, step=500, site=None): """Yields all pages that include a specified link, according to [[Special:Linksearch]]. Retrieves in chunks of size "step" (default 500). @@ -503,7 +503,7 @@ current_year = date.formatYear(site.lang, i ) yield wikipedia.Page(site, current_year)
-def DayPageGenerator(startMonth=1, endMonth=12, site=None): +def DayPageGenerator(startMonth = 1, endMonth = 12, site = None): if site is None: site = wikipedia.getSite() fd = date.FormatDate(site) @@ -647,7 +647,7 @@ wikipedia.output(unicode(e)) self.queue.put(None) # to signal end of list
-def PreloadingGenerator(generator, pageNumber=60): +def PreloadingGenerator(generator, pageNumber = 60): """ Yields the same pages as generator generator. Retrieves 60 pages (or another number specified by pageNumber), loads them using