##// END OF EJS Templates
ui: fix echo back of ui.prompt() to not concatenate None as bytes...
Yuya Nishihara -
r46380:14ac6a74 stable
parent child Browse files
Show More
@@ -1659,7 +1659,9 b' class ui(object):'
1659 1659 if not r:
1660 1660 r = default
1661 1661 if self.configbool(b'ui', b'promptecho'):
1662 self._writemsg(self._fmsgout, r, b"\n", type=b'promptecho')
1662 self._writemsg(
1663 self._fmsgout, r or b'', b"\n", type=b'promptecho'
1664 )
1663 1665 return r
1664 1666 except EOFError:
1665 1667 raise error.ResponseExpected()
General Comments 0
You need to be logged in to leave comments. Login now