equal
deleted
inserted
replaced
191 def confirm(self, question, shell=True, abort=True, retry=False, default='y'): |
191 def confirm(self, question, shell=True, abort=True, retry=False, default='y'): |
192 """ask for confirmation and return true on positive answer |
192 """ask for confirmation and return true on positive answer |
193 |
193 |
194 if `retry` is true the r[etry] answer may return 2 |
194 if `retry` is true the r[etry] answer may return 2 |
195 """ |
195 """ |
196 possibleanswers = ['y','n'] |
196 possibleanswers = ['y', 'n'] |
197 if abort: |
197 if abort: |
198 possibleanswers.append('abort') |
198 possibleanswers.append('abort') |
199 if shell: |
199 if shell: |
200 possibleanswers.append('shell') |
200 possibleanswers.append('shell') |
201 if retry: |
201 if retry: |