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.
1 parent 9390782 commit a168656Copy full SHA for a168656
libtmux/_compat.py
@@ -24,4 +24,4 @@ def str_from_console(s: t.Union[str, bytes]) -> str:
24
try:
25
return str(s)
26
except UnicodeDecodeError:
27
- return str(s, encoding="utf_8")
+ return str(s, encoding="utf_8") if isinstance(s, bytes) else s
0 commit comments