aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/modulefinder.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2024-03-19 20:36:19 +0800
committerGitHub <noreply@github.com>2024-03-19 08:36:19 -0400
commit408e127159e54d87bb3464fd8bd60219dc527fac (patch)
tree055bc39042521f314a7d225a22b3ca8ce403d453 /Lib/modulefinder.py
parenta5574789876987b2b9aa19294c735fe795a5b5c4 (diff)
downloadcpython-408e127159e54d87bb3464fd8bd60219dc527fac.tar.gz
cpython-408e127159e54d87bb3464fd8bd60219dc527fac.zip
gh-114099 - Add iOS framework loading machinery. (GH-116454)
Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Lib/modulefinder.py')
-rw-r--r--Lib/modulefinder.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py
index a0a020f9eeb..ac478ee7f51 100644
--- a/Lib/modulefinder.py
+++ b/Lib/modulefinder.py
@@ -72,7 +72,12 @@ def _find_module(name, path=None):
if isinstance(spec.loader, importlib.machinery.SourceFileLoader):
kind = _PY_SOURCE
- elif isinstance(spec.loader, importlib.machinery.ExtensionFileLoader):
+ elif isinstance(
+ spec.loader, (
+ importlib.machinery.ExtensionFileLoader,
+ importlib.machinery.AppleFrameworkLoader,
+ )
+ ):
kind = _C_EXTENSION
elif isinstance(spec.loader, importlib.machinery.SourcelessFileLoader):