Skip to content

Commit 59ba779

Browse files
committed
refactor!(_compat): Remove console_to_str
Use libtmux._compat.console_to_str instead
1 parent 954ef41 commit 59ba779

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tmuxp/_compat.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,3 @@
1818
console_encoding = sys.__stdout__.encoding
1919

2020
implements_to_string = _identity
21-
22-
23-
def console_to_str(s):
24-
"""From pypa/pip project, pip.backwardwardcompat. License MIT."""
25-
try:
26-
return s.decode(console_encoding)
27-
except UnicodeDecodeError:
28-
return s.decode("utf_8")

0 commit comments

Comments
 (0)