Ignore author's broken email in a package manifest

This commit is contained in:
Ivan Kravets committed 2020-07-06 14:22:35 +03:00
1 parent ef53bcf601
commit a79e933c37
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -185,6 +185,8 @@ class BaseManifestParser(object):
assert isinstance(author, dict)
if author.get("email"):
author["email"] = re.sub(r"\s+[aA][tT]\s+", "@", author["email"])
if "@" not in author["email"]:
author["email"] = None
for key in list(author.keys()):
if author[key] is None:
del author[key]