Revision: 4007 Author: valhallasw Date: 2007-08-08 14:38:57 +0000 (Wed, 08 Aug 2007)
Log Message: ----------- updated terminal_interface.py: inputChoice now no longer changes the passed 'options' parameter
Modified Paths: -------------- trunk/pywikipedia/userinterfaces/terminal_interface.py
Modified: trunk/pywikipedia/userinterfaces/terminal_interface.py =================================================================== --- trunk/pywikipedia/userinterfaces/terminal_interface.py 2007-08-08 00:17:07 UTC (rev 4006) +++ trunk/pywikipedia/userinterfaces/terminal_interface.py 2007-08-08 14:38:57 UTC (rev 4007) @@ -1,4 +1,4 @@ - + __version__ = '$Id$'
import config, transliteration @@ -192,6 +192,7 @@ return text
def inputChoice(self, question, options, hotkeys, default = None): + options = options[:] # we don't want to edit the passed parameter for i in range(len(options)): option = options[i] hotkey = hotkeys[i]
pywikipedia-l@lists.wikimedia.org