[Pywikipedia-svn] SVN: [7220] trunk/pywikipedia/pagegenerators.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Tue Sep 8 09:19:44 UTC 2009
Revision: 7220
Author: filnik
Date: 2009-09-08 09:19:44 +0000 (Tue, 08 Sep 2009)
Log Message:
-----------
Bugfix by xqt to 2373831 BUG
Modified Paths:
--------------
trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py
===================================================================
--- trunk/pywikipedia/pagegenerators.py 2009-09-07 18:12:56 UTC (rev 7219)
+++ trunk/pywikipedia/pagegenerators.py 2009-09-08 09:19:44 UTC (rev 7220)
@@ -1120,10 +1120,10 @@
elif arg.startswith('-google'):
gen = GoogleSearchPageGenerator(arg[8:])
elif arg.startswith('-titleregex'):
- if len(arg) == 6:
+ if len(arg) == 11:
regex = wikipedia.input(u'What page names are you looking for?')
else:
- regex = arg[7:]
+ regex = arg[12:]
gen = RegexFilterPageGenerator(site.allpages(), regex)
elif arg.startswith('-yahoo'):
gen = YahooSearchPageGenerator(arg[7:])
More information about the Pywikipedia-svn
mailing list