summaryrefslogtreecommitdiffstats
path: root/Lib/email/feedparser.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-06 12:13:02 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-06 12:13:02 (GMT)
commitc5c147289556d9941876bb4b209412ad52731eb0 (patch)
treef0fa8df167f2096f200c081858bf90496b3bb563 /Lib/email/feedparser.py
parentae664fb528c86da44fbb9350cca05659c206bfc2 (diff)
downloadcpython-c5c147289556d9941876bb4b209412ad52731eb0.zip
cpython-c5c147289556d9941876bb4b209412ad52731eb0.tar.gz
cpython-c5c147289556d9941876bb4b209412ad52731eb0.tar.bz2
#11605: don't use set/get_payload in feedparser; they do conversions.
Really the whole API needs to be gone over to restore the separation of concerns; but that's what email6 is about.
Diffstat (limited to 'Lib/email/feedparser.py')
-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