Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-31361 : Update feedparser.py to prevent theano compiling fail in python3 #3336

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/email/feedparser.py
Expand Up @@ -100,7 +100,7 @@ def unreadline(self, line):

def push(self, data):
"""Push some new data into this object."""
self._partial.write(data)
self._partial.write(str(data))
if '\n' not in data and '\r' not in data:
# No new complete lines, wait for more.
return
Expand Down Expand Up @@ -172,7 +172,7 @@ def _set_headersonly(self):

def feed(self, data):
"""Push more data into the parser."""
self._input.push(data)
self._input.push(str(data))
self._call_parse()

def _call_parse(self):
Expand Down