[Pywikipedia-l] SVN: [4633] trunk/pywikipedia/add_text.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Mon Dec 3 16:03:30 UTC 2007


Revision: 4633
Author:   filnik
Date:     2007-12-03 16:03:29 +0000 (Mon, 03 Dec 2007)

Log Message:
-----------
-always had a little bug (choice doesn't exist if used)

Modified Paths:
--------------
    trunk/pywikipedia/add_text.py

Modified: trunk/pywikipedia/add_text.py
===================================================================
--- trunk/pywikipedia/add_text.py	2007-12-03 15:58:01 UTC (rev 4632)
+++ trunk/pywikipedia/add_text.py	2007-12-03 16:03:29 UTC (rev 4633)
@@ -251,6 +251,7 @@
             newtext = addText + '\n' + text
         wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title())
         wikipedia.showDiff(text, newtext)
+        choice = ''
         while 1:
             if not always:
                 choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')





More information about the Pywikipedia-l mailing list