comparison hgext/patchbomb.py @ 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 8ff1ecfadcd1
children 3460eee570f7
comparison
equal deleted inserted replaced
43117:8ff1ecfadcd1 43118:57efd5bd2ca2