We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
console_to_str()
1 parent 1a5e69a commit 755cf41Copy full SHA for 755cf41
src/libtmux/_compat.py
@@ -7,14 +7,6 @@
7
console_encoding = sys.stdout.encoding
8
9
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
18
# TODO Consider removing, reraise does not seem to be called anywhere
19
def reraise(
20
tp: t.Type[BaseException],
0 commit comments