# HG changeset patch # User Steve Losh # Date 1603762071 14400 # Node ID 0d3229120aff331970cba4591c1304f7fc59b394 # Parent ae33e6b815cea3d0961668f03e56621732dad972 Fix bytes wrapper to work in Python 2 as well diff -r ae33e6b815ce -r 0d3229120aff prompt.py --- a/prompt.py Thu Jul 30 14:47:16 2020 -0700 +++ b/prompt.py Mon Oct 26 21:27:51 2020 -0400 @@ -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'))],