Skip to content

Commit 027aa0a

Browse files
authored
Add a comment describing the purpose of the regexes.
1 parent 5723107 commit 027aa0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/email/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
CRLF = '\r\n'
4646
TICK = "'"
4747

48+
# These are used by formataddr() to understand what characters require a name
49+
# field to be quoted and what characters within that must be \escaped.
4850
specialsre = re.compile(r'[][\\()<>@,:;". ]')
4951
escapesre = re.compile(r'[\\"]')
5052

0 commit comments

Comments
 (0)