forked from upstream/UXP-mirror
Used to be like C, with 0755 or something, now it's 0o755. Also, long and int are the same type now. 2to3 . --fix numliterals -wpn 2to3 . --fix long -wpn Ref: PEP 3127, PEP 237 https://peps.python.org/pep-3127/ https://peps.python.org/pep-0237/
macholib can be used to analyze and edit Mach-O headers, the executable format used by Mac OS X. It's typically used as a dependency analysis tool, and also to rewrite dylib references in Mach-O headers to be @executable_path relative. Though this tool targets a platform specific file format, it is pure python code that is platform and endian independent.