# HG changeset patch # User Steve Losh # Date 1603762071 14400 # Mon Oct 26 21:27:51 2020 -0400 # Node ID 0d3229120aff331970cba4591c1304f7fc59b394 # Parent ae33e6b815cea3d0961668f03e56621732dad972 Fix bytes wrapper to work in Python 2 as well diff --git a/prompt.py b/prompt.py --- a/prompt.py +++ b/prompt.py @@ -70,7 +70,7 @@ return None def b(s): - return bytes(s, 'utf-8') + return bytes(s.encode("utf-8")) @command(b('prompt'), [(b(''), b('angle-brackets'), None, b('use angle brackets (<>) for keywords'))],