Skip to content

Commit e792a57

Browse files
committed
docs: describe the fullwidth example in domain() instead of embedding it
The _relies_on_idna_mapping docstring contained a literal fullwidth "example.com", which reads as plain ASCII in the source.
1 parent f6b27f2 commit e792a57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/validators/domain.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def _relies_on_idna_mapping(value: str):
4646
(RFC 3491) drops invisible characters (RFC 3454, table B.1), folds
4747
compatibility characters such as fullwidth letters to ASCII, and treats
4848
U+3002 and similar dots as label separators. A value that needs any of
49-
these only looks like the name it encodes to, e.g. "example.com".
49+
these only looks like the name it encodes to, e.g. "example.com" written
50+
with fullwidth letters.
5051
"""
5152
return not value.isascii() and (
5253
normalize("NFKC", value) != value

0 commit comments

Comments
 (0)