Skip to content

Commit d7bed96

Browse files
committed
Ignore built-in modules during import tracking.
1 parent 2ac7424 commit d7bed96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgfutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def find_spec(self, fullname, path, target=None):
512512
self._avoid_recursion.remove(fullname)
513513

514514
# If it has an origin in one of our tracked dirs, log it.
515-
if spec is not None and spec.origin is not None:
515+
if spec is not None and spec.origin is not None and spec.origin != "built-in":
516516
global _config
517517
if _config.in_tracking_dir("import", spec.origin):
518518
_file_tracker.filenames.add(("r", _relative_if_subdir(spec.origin)))

0 commit comments

Comments
 (0)