Esempio n. 1
0
def is_obj(path):
    assert sys.platform != 'win32'
    return bool((sys.platform.startswith('linux') and elf.is_elf(path))
                or (sys.platform == 'darwin' and macho.is_macho(path)))
Esempio n. 2
0
def is_obj(path):
    assert sys.platform != 'win32'
    return bool((sys.platform.startswith('linux') and elf.is_elf(path)) or
                (sys.platform == 'darwin' and macho.is_macho(path)))
Esempio n. 3
0
def is_obj(path):
    assert sys.platform != "win32"
    return bool(
        (sys.platform.startswith("linux") and elf.is_elf(path)) or (sys.platform == "darwin" and macho.is_macho(path))
    )