Skip to content

Commit c4676ad

Browse files
authored
Merge pull request #13565 from LabNConsulting/chopps/munet-update
2 parents cd0956e + 2013c68 commit c4676ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/topotests/munet/cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ async def async_input(prompt, histfile):
281281

282282

283283
def make_help_str(unet):
284-
285284
w = sorted([x if x else "" for x in unet.cli_in_window_cmds])
286285
ww = unet.cli_in_window_cmds
287286
u = sorted([x if x else "" for x in unet.cli_run_cmds])
@@ -516,7 +515,6 @@ def complete(self, text, state):
516515
async def doline(
517516
unet, line, outf, background=False, notty=False
518517
): # pylint: disable=R0911
519-
520518
line = line.strip()
521519
m = re.fullmatch(r"^(\S+)(?:\s+(.*))?$", line)
522520
if not m:
@@ -670,7 +668,7 @@ def bendswith(b, sentinel):
670668
rb = rb[: -len(ENDMARKER)]
671669

672670
# Write the output
673-
sys.stdout.write(rb.decode("utf-8"))
671+
sys.stdout.write(rb.decode("utf-8", "ignore"))
674672

675673

676674
async def local_cli(unet, outf, prompt, histfile, background):
@@ -729,7 +727,7 @@ def __init__(self, writer):
729727
self.writer = writer
730728

731729
def write(self, x):
732-
self.writer.write(x.encode("utf-8"))
730+
self.writer.write(x.encode("utf-8", "ignore"))
733731

734732
def flush(self):
735733
self.writer.flush()

0 commit comments

Comments
 (0)