Skip to content

Commit 2f72861

Browse files
committed
tmux_cmd: Remove console_from_str()
With `text=True` being used we can now wrap in `str()` for bytes to be handled as `str`.
1 parent 755cf41 commit 2f72861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtmux/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import typing as t
1616

1717
from . import exc
18-
from ._compat import LooseVersion, str_from_console
18+
from ._compat import LooseVersion
1919

2020
if t.TYPE_CHECKING:
2121
from collections.abc import Callable
@@ -226,7 +226,7 @@ def __init__(self, *args: t.Any) -> None:
226226

227227
cmd = [tmux_bin]
228228
cmd += args # add the command arguments to cmd
229-
cmd = [str_from_console(c) for c in cmd]
229+
cmd = [str(c) for c in cmd]
230230

231231
self.cmd = cmd
232232

0 commit comments

Comments
 (0)