Revision: 4006 Author: wikipedian Date: 2007-08-08 00:17:07 +0000 (Wed, 08 Aug 2007)
Log Message: ----------- fixed indentation
Modified Paths: -------------- trunk/pywikipedia/disambredir.py
Modified: trunk/pywikipedia/disambredir.py =================================================================== --- trunk/pywikipedia/disambredir.py 2007-08-07 23:28:47 UTC (rev 4005) +++ trunk/pywikipedia/disambredir.py 2007-08-08 00:17:07 UTC (rev 4006) @@ -44,9 +44,9 @@
# how many bytes should be displayed around the current link context = 30 - # at the beginning of the link, start red color. - # at the end of the link, reset the color to default - wikipedia.output(text[m.start() - context : m.start()] + '\03{lightred}' + text[m.start() : m.end()] + '\03{default}' + text[m.end() : m.end() + context]) + # at the beginning of the link, start red color. + # at the end of the link, reset the color to default + wikipedia.output(text[m.start() - context : m.start()] + '\03{lightred}' + text[m.start() : m.end()] + '\03{default}' + text[m.end() : m.end() + context]) while True: choice = wikipedia.input(u"Option (n=do not change, y=change link to \03{lightpurple}%s\03{default}, r=change and replace text, u=unlink)"%targetPage.title()) try: