python3 last change
parent
f45bc1f1c5
commit
6a6ab1beb2
|
@ -200,6 +200,8 @@ class AGI:
|
||||||
elif code == 520:
|
elif code == 520:
|
||||||
usage = [line]
|
usage = [line]
|
||||||
line = self.stdin.readline().strip()
|
line = self.stdin.readline().strip()
|
||||||
|
if PY3:
|
||||||
|
if type(line) is bytes: line = line.decode('utf8')
|
||||||
while line[:3] != '520':
|
while line[:3] != '520':
|
||||||
usage.append(line)
|
usage.append(line)
|
||||||
line = self.stdin.readline().strip()
|
line = self.stdin.readline().strip()
|
||||||
|
|
Loading…
Reference in New Issue