Skip to content

Commit 0620daf

Browse files
committed
Renamed variable to not shadow import
1 parent 98d6c3b commit 0620daf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/test_pyroma.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
pyroma = pytest.importorskip("pyroma", reason="Pyroma not installed")
1010

1111

12-
def map_metadata_keys(metadata):
12+
def map_metadata_keys(md):
1313
# Convert installed wheel metadata into canonical Core Metadata 2.4 format.
1414
# This was a utility method in pyroma 4.3.3; it was removed in 5.0.
1515
# This implementation is constructed from the relevant logic from
1616
# Pyroma 5.0's `build_metadata()` implementation. This has been submitted
1717
# upstream to Pyroma as https://github.com/regebro/pyroma/pull/116,
1818
# so it may be possible to simplify this test in future.
1919
data = {}
20-
for key in set(metadata.keys()):
21-
value = metadata.get_all(key)
20+
for key in set(md.keys()):
21+
value = md.get_all(key)
2222
key = pyroma.projectdata.normalize(key)
2323

2424
if len(value) == 1:

0 commit comments

Comments
 (0)