Mercurial > hg
diff .editorconfig @ 43118:57efd5bd2ca2
py3: decode prompt string before calling rawinput
Calling input() (aka pycompat.rawinput() on python3) with a byte string
displays a byte string in the console. E.g. in interactive commit, we
get: b"examine changes to '<file>'?\n(enter ? for help) [Ynesfdaq?]".
Similarly, "hg email" prompts are messed up.
We thus decode the prompt string before running rawinput().
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 09 Oct 2019 15:28:16 +0200 |
parents | 1d6066336d7b |
children | c25efc468a49 |