Show More
@@ -439,7 +439,10 b' class ui(object):' | |||||
439 |
|
439 | |||
440 | def getpass(self, prompt=None, default=None): |
|
440 | def getpass(self, prompt=None, default=None): | |
441 | if not self.interactive: return default |
|
441 | if not self.interactive: return default | |
|
442 | try: | |||
442 | return getpass.getpass(prompt or _('password: ')) |
|
443 | return getpass.getpass(prompt or _('password: ')) | |
|
444 | except EOFError: | |||
|
445 | raise util.Abort(_('response expected')) | |||
443 | def status(self, *msg): |
|
446 | def status(self, *msg): | |
444 | if not self.quiet: self.write(*msg) |
|
447 | if not self.quiet: self.write(*msg) | |
445 | def warn(self, *msg): |
|
448 | def warn(self, *msg): |
General Comments 0
You need to be logged in to leave comments.
Login now