Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
da5628f2
Commit
da5628f2
authored
Aug 26, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an inaccuracy in the comment
parent
454602f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/mailbox.py
Lib/mailbox.py
+2
-2
No files found.
Lib/mailbox.py
View file @
da5628f2
...
@@ -137,8 +137,8 @@ class UnixMailbox(_Mailbox):
...
@@ -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 stric
t _fromlinepattern regular expression.
#
which uses the more lenien
t _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*$"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment