Revision: 4373
Author: a_engels
Date: 2007-09-28 11:38:13 +0000 (Fri, 28 Sep 2007)
Log Message:
-----------
make 'N' ('do not change') the default choice
Modified Paths:
--------------
trunk/pywikipedia/disambredir.py
Modified: trunk/pywikipedia/disambredir.py
===================================================================
--- trunk/pywikipedia/disambredir.py 2007-09-27 18:18:15 UTC (rev 4372)
+++ trunk/pywikipedia/disambredir.py 2007-09-28 11:38:13 UTC (rev 4373)
@@ -48,11 +48,11 @@
# 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])
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())
+ 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:
choice = choice[0]
except:
- continue
+ choice = 'N'
if choice in 'nNyYrRuU':
break
if choice in "nN":
Show replies by date