This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, barry-scott, brandtbucher, miss-islington, paul.moore, python-dev, steve.dower, tim.golden, zach.ware
Date 2020-04-22.01:55:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587520522.22.0.615860335178.issue40260@roundup.psfhosted.org>
In-reply-to
Content
The failure above is `fp` is now a text file but before it was a binary file.  this causes `fp.read()` + `b'\n'` to fail

I can send a patch -- I don't think the `b'\n'` is necessary any more (as far as I can tell it used to be there for an old version of python where `compile(...)` errored if the file did not end in a newline, that's now handled in the parser internally though)
History
Date User Action Args
2020-04-22 01:55:22Anthony Sottilesetrecipients: + Anthony Sottile, barry-scott, paul.moore, tim.golden, python-dev, zach.ware, steve.dower, miss-islington, brandtbucher
2020-04-22 01:55:22Anthony Sottilesetmessageid: <1587520522.22.0.615860335178.issue40260@roundup.psfhosted.org>
2020-04-22 01:55:22Anthony Sottilelinkissue40260 messages
2020-04-22 01:55:22Anthony Sottilecreate