Skip to content

Commit 4e810c2

Browse files
committed
decode
1 parent 0f8fa71 commit 4e810c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

async_std.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import subprocess as sp
77
from threading import Thread
88
from io import BytesIO
9-
from time import sleep
109

1110
class Reader(Thread):
1211
def __init__(self, pipe: BytesIO) -> None:
@@ -40,9 +39,9 @@ def __init__(self, *args, **kw):
4039

4140
def reportCollectedOutErr(self):
4241
print(self, 'out:')
43-
print(self.outReader.get().read())
42+
print(self.outReader.get().read().decode())
4443
print(self, 'err:')
45-
print(self.errReader.get().read())
44+
print(self.errReader.get().read().decode())
4645

4746
def test():
4847
with PopenAsyncStd(['python']) as p:

0 commit comments

Comments
 (0)