Skip to content

Commit d1b07c5

Browse files
committed
Fix the function name
1 parent 075a44a commit d1b07c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/email/policy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Compat32,
1010
compat32,
1111
Policy,
12-
validate_header
12+
validate_header_name
1313
)
1414
from email.utils import _has_surrogates
1515
from email.headerregistry import HeaderRegistry as HeaderRegistry
@@ -146,7 +146,7 @@ def header_store_parse(self, name, value):
146146
"""
147147
if hasattr(value, 'name') and value.name.lower() == name.lower():
148148
return (name, value)
149-
validate_header(name)
149+
validate_header_name(name)
150150
if isinstance(value, str) and len(value.splitlines())>1:
151151
# XXX this error message isn't quite right when we use splitlines
152152
# (see issue 22233), but I'm not sure what should happen here.

0 commit comments

Comments
 (0)