equal
deleted
inserted
replaced
199 else: |
199 else: |
200 ask_confirm = True |
200 ask_confirm = True |
201 if not ask_confirm or self.confirm(msg): |
201 if not ask_confirm or self.confirm(msg): |
202 return meth(*args, **kwargs) |
202 return meth(*args, **kwargs) |
203 |
203 |
204 def confirm(self, question, shell=True, abort=True, retry=False, pdb=False, |
204 def confirm(self, question, # pylint: disable=E0202 |
205 default='y'): |
205 shell=True, abort=True, retry=False, pdb=False, default='y'): |
206 """ask for confirmation and return true on positive answer |
206 """ask for confirmation and return true on positive answer |
207 |
207 |
208 if `retry` is true the r[etry] answer may return 2 |
208 if `retry` is true the r[etry] answer may return 2 |
209 """ |
209 """ |
210 possibleanswers = ['y', 'n'] |
210 possibleanswers = ['y', 'n'] |