Fix bytes wrapper to work in Python 2 as well
    
        | author | Steve Losh <steve@stevelosh.com> | 
    
        | date | Mon, 26 Oct 2020 21:27:51 -0400 | 
    
    
        | parents | ae33e6b815ce | 
    
        | children | 16aa2def1d5b | 
    
        | branches/tags | (none) | 
    
        | files | prompt.py | 
Changes
    
--- 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'))],