Fixes for WindowsOutputStream
This commit is contained in:
@@ -18,7 +18,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
from io import BytesIO
|
from io import StringIO
|
||||||
|
|
||||||
# Some cool code for colored logging:
|
# Some cool code for colored logging:
|
||||||
# For background, add 40. For foreground, add 30
|
# For background, add 40. For foreground, add 30
|
||||||
@@ -88,7 +88,7 @@ class WindowsOutputStream(object):
|
|||||||
|
|
||||||
def write(self, s):
|
def write(self, s):
|
||||||
|
|
||||||
msg_strm = BytesIO(s)
|
msg_strm = StringIO(s)
|
||||||
|
|
||||||
while (True):
|
while (True):
|
||||||
c = msg_strm.read(1)
|
c = msg_strm.read(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user