Skip to content

Commit 755cf41

Browse files
committed
compat: Remove console_to_str() function
1 parent 1a5e69a commit 755cf41

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libtmux/_compat.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
console_encoding = sys.stdout.encoding
88

99

10-
def console_to_str(s: bytes) -> str:
11-
"""From pypa/pip project, pip.backwardwardcompat. License MIT."""
12-
try:
13-
return s.decode(console_encoding, "ignore")
14-
except UnicodeDecodeError:
15-
return s.decode("utf_8", "ignore")
16-
17-
1810
# TODO Consider removing, reraise does not seem to be called anywhere
1911
def reraise(
2012
tp: t.Type[BaseException],

0 commit comments

Comments
 (0)