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
71608476
Commit
71608476
authored
Jul 19, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parser.__init__(): The consensus on the mimelib-devel list is that
non-strict parsing should be the default. Make it so.
parent
c001ee3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/email/Parser.py
Lib/email/Parser.py
+2
-2
No files found.
Lib/email/Parser.py
View file @
71608476
...
...
@@ -16,7 +16,7 @@ NL = '\n'
class
Parser
:
def
__init__
(
self
,
_class
=
Message
.
Message
,
strict
=
1
):
def
__init__
(
self
,
_class
=
Message
.
Message
,
strict
=
0
):
"""Parser of RFC 2822 and MIME email messages.
Creates an in-memory object tree representing the email message, which
...
...
@@ -36,7 +36,7 @@ class Parser:
more forgiving in parsing of ill-formatted MIME documents. When
non-strict mode is used, the parser will try to make up for missing or
erroneous boundaries and other peculiarities seen in the wild.
Default
s to
strict parsing.
Default
is non-
strict parsing.
"""
self
.
_class
=
_class
self
.
_strict
=
strict
...
...
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