Revision: 4974 Author: rotem Date: 2008-02-04 12:38:35 +0000 (Mon, 04 Feb 2008)
Log Message: ----------- (bug 1885032) Variable name error in unlink.py, I guess it should be 'match'.
Modified Paths: -------------- trunk/pywikipedia/unlink.py
Modified: trunk/pywikipedia/unlink.py =================================================================== --- trunk/pywikipedia/unlink.py 2008-02-04 12:36:17 UTC (rev 4973) +++ trunk/pywikipedia/unlink.py 2008-02-04 12:38:35 UTC (rev 4974) @@ -76,7 +76,7 @@ else: # at the beginning of the link, start red color. # at the end of the link, reset the color to default - wikipedia.output(text[max(0, m.start() - context) : m.start()] + '\03{lightred}' + text[m.start() : m.end()] + '\03{default}' + text[m.end() : m.end() + context]) + wikipedia.output(text[max(0, match.start() - context) : match.start()] + '\03{lightred}' + text[match.start() : match.end()] + '\03{default}' + text[match.end() : match.end() + context]) choice = wikipedia.inputChoice(u'\nWhat shall be done with this link?', ['unlink', 'skip', 'edit', 'more context'], ['U', 's', 'e', 'm'], 'u') wikipedia.output(u'')
pywikipedia-l@lists.wikimedia.org