##// END OF EJS Templates
ui: split the `default` arg out of **kwargs for the internal prompt method...
Matt Harbison -
r50693:a51328ba default
parent child Browse files
Show More
@@ -1786,8 +1786,8 b' class ui:'
1786 """
1786 """
1787 return self._prompt(msg, default=default)
1787 return self._prompt(msg, default=default)
1788
1788
1789 def _prompt(self, msg, **opts):
1789 def _prompt(self, msg, default=b'y', **opts):
1790 default = opts['default']
1790 opts = {**opts, 'default': default}
1791 if not self.interactive():
1791 if not self.interactive():
1792 self._writemsg(self._fmsgout, msg, b' ', type=b'prompt', **opts)
1792 self._writemsg(self._fmsgout, msg, b' ', type=b'prompt', **opts)
1793 self._writemsg(
1793 self._writemsg(
General Comments 0
You need to be logged in to leave comments. Login now