Skip to content

Commit a168656

Browse files
committed
chore(str_from_console): Typing fix
1 parent 9390782 commit a168656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libtmux/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def str_from_console(s: t.Union[str, bytes]) -> str:
2424
try:
2525
return str(s)
2626
except UnicodeDecodeError:
27-
return str(s, encoding="utf_8")
27+
return str(s, encoding="utf_8") if isinstance(s, bytes) else s

0 commit comments

Comments
 (0)