@@ -281,7 +281,6 @@ async def async_input(prompt, histfile):
281
281
282
282
283
283
def make_help_str (unet ):
284
-
285
284
w = sorted ([x if x else "" for x in unet .cli_in_window_cmds ])
286
285
ww = unet .cli_in_window_cmds
287
286
u = sorted ([x if x else "" for x in unet .cli_run_cmds ])
@@ -516,7 +515,6 @@ def complete(self, text, state):
516
515
async def doline (
517
516
unet , line , outf , background = False , notty = False
518
517
): # pylint: disable=R0911
519
-
520
518
line = line .strip ()
521
519
m = re .fullmatch (r"^(\S+)(?:\s+(.*))?$" , line )
522
520
if not m :
@@ -670,7 +668,7 @@ def bendswith(b, sentinel):
670
668
rb = rb [: - len (ENDMARKER )]
671
669
672
670
# Write the output
673
- sys .stdout .write (rb .decode ("utf-8" ))
671
+ sys .stdout .write (rb .decode ("utf-8" , "ignore" ))
674
672
675
673
676
674
async def local_cli (unet , outf , prompt , histfile , background ):
@@ -729,7 +727,7 @@ def __init__(self, writer):
729
727
self .writer = writer
730
728
731
729
def write (self , x ):
732
- self .writer .write (x .encode ("utf-8" ))
730
+ self .writer .write (x .encode ("utf-8" , "ignore" ))
733
731
734
732
def flush (self ):
735
733
self .writer .flush ()
0 commit comments