mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-24 21:17:02 +03:00
Minor cleanups.
This commit is contained in:
parent
111fd56e67
commit
dc714892c9
|
@ -320,5 +320,5 @@ int main(int argc, char* argv[])
|
||||||
try:
|
try:
|
||||||
os.remove("embed_pil.c")
|
os.remove("embed_pil.c")
|
||||||
except FileNotFoundError:
|
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
|
pass
|
||||||
|
|
|
@ -10,10 +10,10 @@ pyroma = pytest.importorskip("pyroma", reason="Pyroma not installed")
|
||||||
|
|
||||||
|
|
||||||
def map_metadata_keys(metadata):
|
def map_metadata_keys(metadata):
|
||||||
"Convert installed wheel metadata into canonical Core Metadata 2.4 format."
|
# 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 was a utility method in pyroma 4.3.3; it was removed in 5.0.
|
||||||
# This implementation is constructed from the relevant logic from
|
# This implementation is constructed from the relevant logic from
|
||||||
# PyRoma 5.0's `build_metadata()` implementation.
|
# Pyroma 5.0's `build_metadata()` implementation.
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
for key in set(metadata.keys()):
|
for key in set(metadata.keys()):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user