migration.py
branchstable
changeset 7879 9aae456abab5
parent 7815 2a164a9cf81c
child 8056 8909800a8c51
child 8107 e5858a4a1244
equal deleted inserted replaced
7874:be04706eacc9 7879:9aae456abab5
   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']