Skip to content

Commit

Permalink
mesonpy: add comment explaining the meaning of None in wheel file map…
Browse files Browse the repository at this point in the history
…pers

Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Jun 10, 2022
1 parent b51f608 commit f0503c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _map_from_heuristics(self, origin: str, destination: pathlib.Path) -> Option
if sys_paths['purelib'] == sys_paths['platlib'] and not origin.startswith('{moduledir_shared}'):
self._warn_unsure_platlib(origin, destination)
return 'platlib', wheel_path
return None
return None # no match was found

def _map_from_scheme_map(self, destination: str) -> Optional[Tuple[str, pathlib.Path]]:
"""Extracts scheme and relative destination from Meson paths.
Expand All @@ -244,7 +244,7 @@ def _map_from_scheme_map(self, destination: str) -> Optional[Tuple[str, pathlib.
if destination.startswith(placeholder):
relative_destination = pathlib.Path(destination).relative_to(placeholder)
return scheme, relative_destination
return None
return None # no match was found

def _map_to_wheel(
self,
Expand Down

0 comments on commit f0503c9

Please sign in to comment.