From 84adfec3278f9e5e7a0d7b80f8724c71a4451f29 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 27 Jul 2020 22:30:57 +0200 Subject: [PATCH] Python3 fix --- Check_Size.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Check_Size.py b/Check_Size.py index 20bba58..19eff75 100644 --- a/Check_Size.py +++ b/Check_Size.py @@ -20,11 +20,11 @@ def parse_file(fn): const = data[4].split('=')[1] code = data[5].split('=')[1] if (int(const, 10) + int(code, 10)) > options.size: - print 'Check_Size: Error!' - print 'Check_Size: Data of ' + str(int(const, 10) + int(code, 10)) + ' will not fit into ' + str(options.size) + ' byte' + print ('Check_Size: Error!') + print ('Check_Size: Data of ' + str(int(const, 10) + int(code, 10)) + ' will not fit into ' + str(options.size) + ' byte') exit(1) - print 'Check_Size: Data of ' + str(int(const, 10) + int(code, 10)) + ' will fit into ' + str(options.size) + ' byte' - print 'Check_Size: ' + str(options.size - (int(const, 10) + int(code, 10))) + ' bytes are left' + print ('Check_Size: Data of ' + str(int(const, 10) + int(code, 10)) + ' will fit into ' + str(options.size) + ' byte') + print ('Check_Size: ' + str(options.size - (int(const, 10) + int(code, 10))) + ' bytes are left') exit(0) usage = "usage: %prog [options]"