##// END OF EJS Templates
Removed self from methods that are nto class members
Jonathan Frederic -
Show More
@@ -18,7 +18,7 b' import sys'
18 18 # Classes and functions
19 19 #-----------------------------------------------------------------------------
20 20
21 def input(self, prompt_text):
21 def input(prompt_text):
22 22 """
23 23 Prompt the user for input.
24 24
@@ -48,7 +48,7 b' def input(self, prompt_text):'
48 48 return raw_input(prompt_text)
49 49
50 50
51 def prompt_boolean(self, prompt, default=False):
51 def prompt_boolean(prompt, default=False):
52 52 """
53 53 Prompt the user for a boolean response.
54 54
@@ -60,7 +60,7 b' def prompt_boolean(self, prompt, default=False):'
60 60 response to return if none is given by the user
61 61 """
62 62
63 response = self._input(prompt)
63 response = input(prompt)
64 64 response = response.strip().lower()
65 65
66 66 #Catch 1, true, yes as True
@@ -75,7 +75,7 b' def prompt_boolean(self, prompt, default=False):'
75 75 return default
76 76
77 77
78 def prompt_dictionary(self, choices, default_style=1, menu_comments={}):
78 def prompt_dictionary(choices, default_style=1, menu_comments={}):
79 79 """
80 80 Prompt the user to chose one of many selections from a menu.
81 81
@@ -108,7 +108,7 b' def prompt_dictionary(self, choices, default_style=1, menu_comments={}):'
108 108 response = -1
109 109 while (not response in choices):
110 110 try:
111 text_response = self._input(prompt)
111 text_response = input(prompt)
112 112
113 113 # Use default option if no input.
114 114 if len(text_response.strip()) == 0:
General Comments 0
You need to be logged in to leave comments. Login now