--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- lddtree.py +++ lddtree.py @@ -186,7 +186,7 @@ for ldpath in ldpaths: path = os.path.join(ldpath, lib) if os.path.exists(path): - with open(path) as f: + with open(path, "rb") as f: libelf = ELFFile(f) if CompatibleELFs(elf, libelf): return path @@ -231,7 +231,7 @@ 'libs': _all_libs, } - with open(path) as f: + with open(path, "rb") as f: elf = ELFFile(f) # If this is the first ELF, extract the interpreter.