From b702a9109ed67b7031e5dbe8fcda098ebe688a66 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 31 Aug 2024 19:40:17 -0400 Subject: [PATCH] Update to use imp.standard. --- discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery.py b/discovery.py index c9edb50..c2b878d 100644 --- a/discovery.py +++ b/discovery.py @@ -157,7 +157,7 @@ def inferred_deps(): (imp.relative_to(best_name()), module) for module in filter(is_python, source_files()) for imp in imports.get_module_imports(module) - if not imp.builtin() + if not imp.standard() and not imp.relative_to(best_name()).startswith(best_name()) ] for name, module in names: