Skip to content
Snippets Groups Projects
Unverified Commit a3c767da authored by Erik Montnemery's avatar Erik Montnemery Committed by GitHub
Browse files

Correct normalize_package_name (#115750)

parent ba4731ec
Branches
Tags
No related merge requests found
...@@ -261,8 +261,8 @@ def normalize_package_name(requirement: str) -> str: ...@@ -261,8 +261,8 @@ def normalize_package_name(requirement: str) -> str:
if not match: if not match:
return "" return ""
# pipdeptree needs lowercase and dash instead of underscore as separator # pipdeptree needs lowercase and dash instead of underscore or period as separator
return match.group(1).lower().replace("_", "-") return match.group(1).lower().replace("_", "-").replace(".", "-")
def comment_requirement(req: str) -> bool: def comment_requirement(req: str) -> bool:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment