PATH:
opt
/
alt
/
python35
/
lib64
/
python3.5
/
ctypes
/
macholib
/
__pycache__
��Yf$ � @ sY d Z d d l Z d g Z e j d � Z d d � Z d d � Z e d k rU e � d S) z! Generic dylib path manipulation � N� dylib_infoz�(?x) (?P<location>^.*)(?:^|/) (?P<name> (?P<shortname>\w+?) (?:\.(?P<version>[^._]+))? (?:_(?P<suffix>[^._]+))? \.dylib$ ) c C s# t j | � } | s d S| j � S)a1 A dylib name can take one of the following four forms: Location/Name.SomeVersion_Suffix.dylib Location/Name.SomeVersion.dylib Location/Name_Suffix.dylib Location/Name.dylib returns None if not found or a mapping equivalent to: dict( location='Location', name='Name.SomeVersion_Suffix.dylib', shortname='Name', version='SomeVersion', suffix='Suffix', ) Note that SomeVersion and Suffix are optional and may be None if not present. N)�DYLIB_RE�match� groupdict)�filenameZis_dylib� r �:/opt/alt/python35/lib64/python3.5/ctypes/macholib/dylib.pyr s c C s d d d d d d d � } t d � d k s3 t � t d � d k sK t � t d � | d d d � k so t � t d � | d d d d d �k s� t � t d � | d d d d � k s� t � t d � | d d d d � k s� t � t d � | d d d d d � k st � d S)Nc S s% t d | d | d | d | d | � S)N�location�name� shortname�version�suffix)�dict)r r r r r r r r �d. s ztest_dylib_info.<locals>.dzcompletely/invalidzcompletely/invalide_debugzP/Foo.dylib�Pz Foo.dylibZFoozP/Foo_debug.dylibzFoo_debug.dylibr �debugz P/Foo.A.dylibzFoo.A.dylib�AzP/Foo_debug.A.dylibzFoo_debug.A.dylibZ Foo_debugzP/Foo.A_debug.dylibzFoo.A_debug.dylib)r �AssertionError)r r r r �test_dylib_info- s $*''r �__main__)�__doc__�re�__all__�compiler r r �__name__r r r r �<module> s
[-] framework.cpython-35.pyc
[edit]
[-] __init__.cpython-35.opt-2.pyc
[edit]
[-] framework.cpython-35.opt-1.pyc
[edit]
[+]
..
[-] __init__.cpython-35.opt-1.pyc
[edit]
[-] dylib.cpython-35.pyc
[edit]
[-] dyld.cpython-35.opt-2.pyc
[edit]
[-] __init__.cpython-35.pyc
[edit]
[-] dyld.cpython-35.pyc
[edit]
[-] framework.cpython-35.opt-2.pyc
[edit]
[-] dylib.cpython-35.opt-1.pyc
[edit]
[-] dyld.cpython-35.opt-1.pyc
[edit]
[-] dylib.cpython-35.opt-2.pyc
[edit]