Show More
@@ -415,6 +415,8 b' class ui(object):' | |||||
415 | while True: |
|
415 | while True: | |
416 | try: |
|
416 | try: | |
417 | r = self._readline(msg + ' ') |
|
417 | r = self._readline(msg + ' ') | |
|
418 | if not r: | |||
|
419 | return default | |||
418 | if not pat or re.match(pat, r, matchflags): |
|
420 | if not pat or re.match(pat, r, matchflags): | |
419 | return r |
|
421 | return r | |
420 | else: |
|
422 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now