/opt/alt/python311/lib64/python3.11/ctypes/macholib
NameSizeModeActions
__pycache__/-0755rm
dyld.py50240644editdlrm
dylib.py9600644editdlrm
fetch_macholib840755editdlrm
framework.py11050644editdlrm
README.ctypes2960644editdlrm
__init__.py1540644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/ctypes/macholib/framework.py (1105B)
""" Generic framework path manipulation """ import re __all__ = ['framework_info'] STRICT_FRAMEWORK_RE = re.compile(r"""(?x) (?P^.*)(?:^|/) (?P (?P\w+).framework/ (?:Versions/(?P[^/]+)/)? (?P=shortname) (?:_(?P[^_]+))? )$ """) def framework_info(filename): """ 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 """ is_framework = STRICT_FRAMEWORK_RE.match(filename) if not is_framework: return None return is_framework.groupdict()