mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
Fix an inaccuracy in the comment
This commit is contained in:
parent
454602f0f7
commit
da5628f286
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ class UnixMailbox(_Mailbox):
|
||||||
# _search_end() may not be completely correct, because it doesn't check
|
# _search_end() may not be completely correct, because it doesn't check
|
||||||
# that the two characters preceding "From " are \n\n or the beginning of
|
# that the two characters preceding "From " are \n\n or the beginning of
|
||||||
# the file. Fixing this would require a more extensive rewrite than is
|
# the file. Fixing this would require a more extensive rewrite than is
|
||||||
# necessary. For convenience, we've added a StrictUnixMailbox class which
|
# necessary. For convenience, we've added a PortableUnixMailbox class
|
||||||
# uses the older, more strict _fromlinepattern regular expression.
|
# which uses the more lenient _fromlinepattern regular expression.
|
||||||
|
|
||||||
_fromlinepattern = r"From \s*[^\s]+\s+\w\w\w\s+\w\w\w\s+\d?\d\s+" \
|
_fromlinepattern = r"From \s*[^\s]+\s+\w\w\w\s+\w\w\w\s+\d?\d\s+" \
|
||||||
r"\d?\d:\d\d(:\d\d)?(\s+[^\s]+)?\s+\d\d\d\d\s*$"
|
r"\d?\d:\d\d(:\d\d)?(\s+[^\s]+)?\s+\d\d\d\d\s*$"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue