mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Correct normalize_package_name (#115750)
This commit is contained in:
parent
ba4731ecb4
commit
a3c767da2d
@ -261,8 +261,8 @@ def normalize_package_name(requirement: str) -> str:
|
||||
if not match:
|
||||
return ""
|
||||
|
||||
# pipdeptree needs lowercase and dash instead of underscore as separator
|
||||
return match.group(1).lower().replace("_", "-")
|
||||
# pipdeptree needs lowercase and dash instead of underscore or period as separator
|
||||
return match.group(1).lower().replace("_", "-").replace(".", "-")
|
||||
|
||||
|
||||
def comment_requirement(req: str) -> bool:
|
||||
|
Loading…
x
Reference in New Issue
Block a user