python: Use a real parser for email addresses.

Now that we can assume Python 3.6+, we can use the
email.headerregistry module to replace hacky manual email address
parsing.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-07-27 14:33:49 -07:00
committed by Tim Abbott
parent 8c2d478e6a
commit b945aa3443
31 changed files with 165 additions and 139 deletions

View File

@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 133
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = (195, 0)
PROVISION_VERSION = (195, 1)