Skip to content

Commit

Permalink
Python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Jul 27, 2020
1 parent 6de6f81 commit 84adfec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Check_Size.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand Down

0 comments on commit 84adfec

Please sign in to comment.