python3 last change

master
inpos 2017-03-01 21:54:38 +03:00
parent f45bc1f1c5
commit 6a6ab1beb2
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ class AGI:
elif code == 520:
usage = [line]
line = self.stdin.readline().strip()
if PY3:
if type(line) is bytes: line = line.decode('utf8')
while line[:3] != '520':
usage.append(line)
line = self.stdin.readline().strip()