Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sz = '64-bit'
else:
sz = '32-bit'
print >>fp, ' [%s endian=%r size=%r arch=%r]' % (header.__class__.__name__,
header.endian, sz, ARCH_MAP[(header.endian, sz)])
for idx, name, other in header.walkRelocatables():
if other not in seen:
seen.add(other)
print >>fp, '\t' + other
if __name__ == '__main__':
try:
sys.exit(main(print_file))
except KeyboardInterrupt:
pass
#!/usr/bin/env python
from macholib._cmdline import main
def print_file(fp, path):
print >>fp, path
if __name__ == '__main__':
try:
main(print_file)
except KeyboardInterrupt:
pass
def main():
print("WARNING: 'macho_find' is deprecated, use 'python -mmacholib dump' instead")
_main(print_file)
def main():
_main(print_file)
def main():
_main(print_file)
def main():
print("WARNING: 'macho_dump' is deprecated, use 'python -mmacholib dump' instead")
_main(print_file)
def main():
print("WARNING: 'macho_find' is deprecated, use 'python -mmacholib dump' instead")
_main(print_file)