Viewing File: /opt/alt/python34/lib64/python3.4/ctypes/macholib/__pycache__/framework.cpython-34.pyo

�
i f��@s\dZddlZdgZejd�Zdd�Zdd�ZedkrXe�ndS)	z%
Generic framework path manipulation
�N�framework_infoz�(?x)
(?P<location>^.*)(?:^|/)
(?P<name>
    (?P<shortname>\w+).framework/
    (?:Versions/(?P<version>[^/]+)/)?
    (?P=shortname)
    (?:_(?P<suffix>[^_]+))?
)$
cCs#tj|�}|sdS|j�S)a}
    A framework name can take one of the following four forms:
        Location/Name.framework/Versions/SomeVersion/Name_Suffix
        Location/Name.framework/Versions/SomeVersion/Name
        Location/Name.framework/Name_Suffix
        Location/Name.framework/Name

    returns None if not found, or a mapping equivalent to:
        dict(
            location='Location',
            name='Name.framework/Versions/SomeVersion/Name_Suffix',
            shortname='Name',
            version='SomeVersion',
            suffix='Suffix',
        )

    Note that SomeVersion and Suffix are optional and may be None
    if not present
    N)�STRICT_FRAMEWORK_RE�match�	groupdict)�filenameZis_framework�r�>/opt/alt/python34/lib64/python3.4/ctypes/macholib/framework.pyrscCsddddddd�}dS)NcSs%td|d|d|d|d|�S)N�location�name�	shortname�version�suffix)�dict)r	r
rrr
rrr�d-sztest_framework_info.<locals>.dr)rrrr�test_framework_info,sr�__main__)�__doc__�re�__all__�compilerrr�__name__rrrr�<module>s		
Back to Directory File Manager