Minor cleanups.

This commit is contained in:
Russell Keith-Magee 2025-07-31 05:29:22 +08:00
parent 111fd56e67
commit dc714892c9
No known key found for this signature in database
GPG Key ID: 3D2DAB6A37BB5BC3
2 changed files with 4 additions and 4 deletions

View File

@ -320,5 +320,5 @@ int main(int argc, char* argv[])
try:
os.remove("embed_pil.c")
except FileNotFoundError:
# If the test was skipped or failed, the file won't exist,
# If the test was skipped or failed, the file won't exist
pass

View File

@ -10,10 +10,10 @@ pyroma = pytest.importorskip("pyroma", reason="Pyroma not installed")
def map_metadata_keys(metadata):
"Convert installed wheel metadata into canonical Core Metadata 2.4 format."
# This was a utility method in pyroma 4.3.3; it was removed in 5.0
# Convert installed wheel metadata into canonical Core Metadata 2.4 format.
# This was a utility method in pyroma 4.3.3; it was removed in 5.0.
# This implementation is constructed from the relevant logic from
# PyRoma 5.0's `build_metadata()` implementation.
# Pyroma 5.0's `build_metadata()` implementation.
data = {}
for key in set(metadata.keys()):