Skip to content

Commit

Permalink
Fix the function name
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Dec 17, 2024
1 parent 075a44a commit d1b07c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/email/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Compat32,
compat32,
Policy,
validate_header
validate_header_name
)
from email.utils import _has_surrogates
from email.headerregistry import HeaderRegistry as HeaderRegistry
Expand Down Expand Up @@ -146,7 +146,7 @@ def header_store_parse(self, name, value):
"""
if hasattr(value, 'name') and value.name.lower() == name.lower():
return (name, value)
validate_header(name)
validate_header_name(name)
if isinstance(value, str) and len(value.splitlines())>1:
# XXX this error message isn't quite right when we use splitlines
# (see issue 22233), but I'm not sure what should happen here.
Expand Down

0 comments on commit d1b07c5

Please sign in to comment.