Skip to content

Commit 61826e6

Browse files
Merge pull request #12 from mnordsletten/master
Python3: A couple fixes after running integration tests
2 parents bd0f682 + b95599f commit 61826e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
from __future__ import print_function
33

44
import os

vmrunner/vmrunner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def read_until_EOT(self):
639639
chars = ""
640640

641641
while (not self._proc.poll()):
642-
char = self._proc.stdout.read(1)
642+
char = self._proc.stdout.read(1).decode("utf-8")
643643
if char == chr(4):
644644
return chars
645645
chars += char
@@ -799,7 +799,7 @@ def on_exit(self, callback):
799799

800800
# Read a line from the VM's standard out
801801
def readline(self):
802-
return self._hyper.readline().decode("utf-8")
802+
return self._hyper.readline()
803803

804804
# Write a line to VM stdout
805805
def writeline(self, line):

0 commit comments

Comments
 (0)