Merge branch 'jreiser-python3a' into jreiser-python3

This commit is contained in:
John Reiser 2025-10-10 11:50:22 -07:00
commit 533e642945
2 changed files with 1 additions and 2 deletions

View File

@ -65,7 +65,6 @@ def do_file(fn):
raise Exception("%s is not %s" % (fn, opts.bfdname))
write("\x09")
def brand_linux(s):
print ("brand_linux ", s.encode(), "e_ident ", e_ident[4:7])
if e_ident[4:7] != s.encode():
raise Exception("%s is not %s" % (fn, opts.bfdname))
##write("\x00Linux\x00\x00\x00")

View File

@ -93,7 +93,7 @@ def handle_inc_c(state, l, ofp):
elif q1 == '"' and q2 == '"':
dirs = [state[1]] + opts.includes
else:
raise Exception("syntax error: include line " + l)
raise Exception("syntax error: include line " + l.decode())
for dir in dirs:
fn = os.path.join(dir, inc)
if os.path.isfile(fn):