Show More
@@ -407,6 +407,7 b' class ui(object):' | |||||
407 |
|
407 | |||
408 | def prompt(self, msg, pat=None, default="y", matchflags=0): |
|
408 | def prompt(self, msg, pat=None, default="y", matchflags=0): | |
409 | if not self.interactive: return default |
|
409 | if not self.interactive: return default | |
|
410 | while True: | |||
410 | try: |
|
411 | try: | |
411 | r = self._readline(msg + ' ') |
|
412 | r = self._readline(msg + ' ') | |
412 | if not pat or re.match(pat, r, matchflags): |
|
413 | if not pat or re.match(pat, r, matchflags): |
General Comments 0
You need to be logged in to leave comments.
Login now