From d258a6813aa26b94b160374823f5498370e3358d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 26 Sep 2019 23:22:32 +0100 Subject: Fix the freestyle_hid_console to use Python 3.5 compatible formatting. --- reversing_tools/abbott/freestyle_hid_console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reversing_tools/abbott/freestyle_hid_console.py b/reversing_tools/abbott/freestyle_hid_console.py index 908fb4e..4697da9 100755 --- a/reversing_tools/abbott/freestyle_hid_console.py +++ b/reversing_tools/abbott/freestyle_hid_console.py @@ -41,12 +41,12 @@ def main(): command = input('>>> ') else: command = input() - print(f'>>> {command}') + print('>>> {command}'.format(command=command)) try: print(device._send_text_command(bytes(command, 'ascii'))) except exceptions.InvalidResponse as error: - print(f'! {error}') + print('! {error}'.format(error=error)) if __name__ == "__main__": main() -- cgit v1.2.3