Anthony Sottile <asott...@umich.edu> added the comment:

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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40260>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to