Skip to content

Commit 5d88189

Browse files
committed
Remove a redundant elif condition handled in the previous elif block
1 parent f3eaf10 commit 5d88189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

email_validator/syntax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def check_unsafe_chars(s, allow_space=False):
264264
# as far as I can tell, but they violate the spirit of the non-internationalized
265265
# specification that email addresses do not contain line breaks when not quoted.
266266
bad_chars.add(c)
267-
elif category[0] in ("C", "Z"):
267+
elif category[0] == "C":
268268
# Control, format, surrogate, private use, and unassigned code points (C)
269269
# are all unsafe in various ways. Control and format characters can affect
270270
# text rendering if the email address is concatenated with other text.

0 commit comments

Comments
 (0)