From a178d2ec62e2af7afab05a9807cc24102ff51a19 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Sat, 8 Jun 2024 22:27:33 +0200 Subject: [PATCH] refactor: `extred` -> `extref` (#753) Signed-off-by: Jan Kowalleck --- cyclonedx_py/_internal/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cyclonedx_py/_internal/environment.py b/cyclonedx_py/_internal/environment.py index 6f39db41..71bfe83c 100644 --- a/cyclonedx_py/_internal/environment.py +++ b/cyclonedx_py/_internal/environment.py @@ -168,7 +168,7 @@ def __add_components(self, bom: 'Bom', # path of dist-package on disc? naaa... a package may have multiple files/folders on disc ) del dist_meta, dist_name, dist_version - self.__component_add_extred_and_purl(component, packagesource4dist(dist)) + self.__component_add_extref_and_purl(component, packagesource4dist(dist)) all_components[normalize_packagename(component.name)] = ( component, tuple(map(Requirement, dist.requires or ())) @@ -210,7 +210,7 @@ def __finalize_dependencies(self, bom: 'Bom', all_components: 'T_AllComponents') ) bom.register_dependency(component, component_deps) - def __component_add_extred_and_purl(self, component: 'Component', + def __component_add_extref_and_purl(self, component: 'Component', packagesource: Optional['PackageSource']) -> None: purl_qs = {} # https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst purl_subpath = None