summaryrefslogtreecommitdiffstats
path: root/Lib/email/Parser.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-08-23 18:19:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-08-23 18:19:30 (GMT)
commit280488b9a3b5cc213d01aae794751b89144f8609 (patch)
treeb7f11d73232fe9cd918e2a37ad000adfc8162cd8 /Lib/email/Parser.py
parentfa8dd5f40781d8670824d8ec94e37e4f6e075135 (diff)
downloadcpython-280488b9a3b5cc213d01aae794751b89144f8609.zip
cpython-280488b9a3b5cc213d01aae794751b89144f8609.tar.gz
cpython-280488b9a3b5cc213d01aae794751b89144f8609.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/email/Parser.py')
-rw-r--r--Lib/email/Parser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/email/Parser.py b/Lib/email/Parser.py
index b9d3ed3..a2ac576 100644
--- a/Lib/email/Parser.py
+++ b/Lib/email/Parser.py
@@ -129,7 +129,7 @@ class Parser:
# boundary.
separator = '--' + boundary
payload = fp.read()
- # We use an RE here because boundaries can have trailing
+ # We use an RE here because boundaries can have trailing
# whitespace.
mo = re.search(
r'(?P<sep>' + re.escape(separator) + r')(?P<ws>[ \t]*)',
@@ -176,15 +176,15 @@ class Parser:
terminator = len(payload)
# We split the textual payload on the boundary separator, which
# includes the trailing newline. If the container is a
- # multipart/digest then the subparts are by default message/rfc822
- # instead of text/plain. In that case, they'll have a optional
- # block of MIME headers, then an empty line followed by the
+ # multipart/digest then the subparts are by default message/rfc822
+ # instead of text/plain. In that case, they'll have a optional
+ # block of MIME headers, then an empty line followed by the
# message headers.
parts = re.split(
linesep + re.escape(separator) + r'[ \t]*' + linesep,
payload[start:terminator])
for part in parts:
- if isdigest:
+ if isdigest:
if part[0] == linesep:
# There's no header block so create an empty message
# object as the container, and lop off the newline so