Skip to content

Commit

Permalink
Ignore built-in modules during import tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbnz committed Jan 26, 2025
1 parent 2ac7424 commit d7bed96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgfutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def find_spec(self, fullname, path, target=None):
self._avoid_recursion.remove(fullname)

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

0 comments on commit d7bed96

Please sign in to comment.