Skip to content

Commit 7366942

Browse files
committed
Correctly assign variable
* Correctly assign path_ref when partitioning path_ref in PythonInstalledWheelMetadataFile.assign_package_to_resources Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent c8cdca3 commit 7366942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packagedcode/pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def assign_package_to_resources(cls, package, resource, codebase, package_adder)
342342
cannot_resolve = False
343343
ref_resource = None
344344
while path_ref.startswith('..'):
345-
_, _, path_ref.partition('../')
345+
_, _, path_ref = path_ref.partition('../')
346346
ref_resource = site_packages.parent(codebase)
347347
if not ref_resource:
348348
cannot_resolve = True

0 commit comments

Comments
 (0)