Skip to content

Commit 4ae24ee

Browse files
committed
compat: Remove str_from_console()
1 parent 2f72861 commit 4ae24ee

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/libtmux/_compat.py

-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ def reraise(
1818
raise value
1919

2020

21-
def str_from_console(s: t.Union[str, bytes]) -> str:
22-
try:
23-
return str(s)
24-
except UnicodeDecodeError:
25-
return str(s, encoding="utf_8") if isinstance(s, bytes) else s
26-
27-
2821
import re
2922
from typing import Iterator, List, Tuple
3023

0 commit comments

Comments
 (0)