fix mavlink_shell.py: python3 compat for octal numbers

This commit is contained in:
Beat Küng 2016-10-24 10:18:20 +02:00 committed by Lorenz Meier
parent cbbee30e48
commit 95f5ba9635
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ def main():
erase_last_n_chars(1) erase_last_n_chars(1)
cur_line = cur_line[:-1] cur_line = cur_line[:-1]
sys.stdout.write(ch) sys.stdout.write(ch)
elif ord(ch) == 033: elif ord(ch) == 27:
ch = sys.stdin.read(1) # skip one ch = sys.stdin.read(1) # skip one
ch = sys.stdin.read(1) ch = sys.stdin.read(1)
if ch == 'A': # arrow up if ch == 'A': # arrow up