Skip to content

Commit a855ba8

Browse files
Use to_bytes
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
1 parent 9519208 commit a855ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/base_eventqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def push(self, char: int | bytes) -> None:
7575
"""
7676
assert isinstance(char, (int, bytes))
7777
ord_char = char if isinstance(char, int) else ord(char)
78-
char = bytes((ord_char,))
78+
char = ord_char.to_bytes()
7979
self.buf.append(ord_char)
8080

8181
if char in self.keymap:

0 commit comments

Comments
 (0)