diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-04-06 12:16:13 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-04-06 12:16:13 (GMT) |
commit | a0b1c77a19ecfe58d34d10ba4b60f9bb4ad217f0 (patch) | |
tree | 7b80b7cdfed5c23f809e30664cf1f8262bf736eb /Lib/email | |
parent | 736975a77168aa90ab4b5bb1e56c31fd3ab26934 (diff) | |
parent | c5c147289556d9941876bb4b209412ad52731eb0 (diff) | |
download | cpython-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.py | 4 |
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 |