File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
import sys
10
10
import typing as t
11
11
12
- from libtmux ._compat import console_to_str
13
-
14
12
from . import exc
15
13
16
14
if t .TYPE_CHECKING :
@@ -37,16 +35,17 @@ def run_before_script(
37
35
stderr = subprocess .PIPE ,
38
36
stdout = subprocess .PIPE ,
39
37
cwd = cwd ,
38
+ text = True ,
40
39
)
41
40
if proc .stdout is not None :
42
41
for line in iter (proc .stdout .readline , b"" ):
43
- sys .stdout .write (console_to_str ( line ) )
42
+ sys .stdout .write (line )
44
43
proc .wait ()
45
44
46
45
if proc .returncode and proc .stderr is not None :
47
46
stderr = proc .stderr .read ()
48
47
proc .stderr .close ()
49
- stderr_strlist = console_to_str ( stderr ) .split ("\n " )
48
+ stderr_strlist = stderr .split ("\n " )
50
49
stderr_str = "\n " .join (list (filter (None , stderr_strlist ))) # filter empty
51
50
52
51
raise exc .BeforeLoadScriptError (
You can’t perform that action at this time.
0 commit comments