summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-06 12:16:13 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-06 12:16:13 (GMT)
commita0b1c77a19ecfe58d34d10ba4b60f9bb4ad217f0 (patch)
tree7b80b7cdfed5c23f809e30664cf1f8262bf736eb /Lib/email
parent736975a77168aa90ab4b5bb1e56c31fd3ab26934 (diff)
parentc5c147289556d9941876bb4b209412ad52731eb0 (diff)
downloadcpython-a0b1c77a19ecfe58d34d10ba4b60f9bb4ad217f0.zip
cpython-a0b1c77a19ecfe58d34d10ba4b60f9bb4ad217f0.tar.gz
cpython-a0b1c77a19ecfe58d34d10ba4b60f9bb4ad217f0.tar.bz2
Merge #11605: don't use set/get_payload in feedparser; they do conversions.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/feedparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/feedparser.py b/Lib/email/feedparser.py
index de8750d..60a8325 100644
--- a/Lib/email/feedparser.py
+++ b/Lib/email/feedparser.py
@@ -368,12 +368,12 @@ class FeedParser:
end = len(mo.group(0))
self._last.epilogue = epilogue[:-end]
else:
- payload = self._last.get_payload()
+ payload = self._last._payload
if isinstance(payload, str):
mo = NLCRE_eol.search(payload)
if mo:
payload = payload[:-len(mo.group(0))]
- self._last.set_payload(payload)
+ self._last._payload = payload
self._input.pop_eof_matcher()
self._pop_message()
# Set the multipart up for newline cleansing, which will