Show More
@@ -724,7 +724,7 b' def ellipsis(text: bytes, maxlength: int' | |||
|
724 | 724 | |
|
725 | 725 | def escapestr(s: bytes) -> bytes: |
|
726 | 726 | # "bytes" is also a typing shortcut for bytes, bytearray, and memoryview |
|
727 | if isinstance(s, memoryview): | |
|
727 | if isinstance(s, (memoryview, bytearray)): | |
|
728 | 728 | s = bytes(s) |
|
729 | 729 | # call underlying function of s.encode('string_escape') directly for |
|
730 | 730 | # Python 3 compatibility |
General Comments 0
You need to be logged in to leave comments.
Login now