Revision: 8448 Author: xqt Date: 2010-08-24 08:25:57 +0000 (Tue, 24 Aug 2010)
Log Message: ----------- Displays the matches for pages skipped due to an -except regex. Patch by Ian Foote (quintic). (Bug #3051296) Thanks
Modified Paths: -------------- trunk/pywikipedia/add_text.py
Modified: trunk/pywikipedia/add_text.py =================================================================== --- trunk/pywikipedia/add_text.py 2010-08-24 08:15:05 UTC (rev 8447) +++ trunk/pywikipedia/add_text.py 2010-08-24 08:25:57 UTC (rev 8448) @@ -221,13 +221,15 @@ result = re.findall(regexSkipUrl, site.getUrl(url)) if result != []: pywikibot.output( -u'Exception! regex (or word) used with -exceptUrl is in the page. Skip!') +u'''Exception! regex (or word) used with -exceptUrl is in the page. Skip! +Match was: %s''' % result) return (False, False, always) # continue if regexSkip != None: result = re.findall(regexSkip, text) if result != []: pywikibot.output( -u'Exception! regex (or word) used with -except is in the page. Skip!') +u'''Exception! regex (or word) used with -except is in the page. Skip! +Match was: %s''' % result) return (False, False, always) # continue # If not up, text put below if not up:
pywikipedia-svn@lists.wikimedia.org