Terry J. Reedy added the comment: On #12037, David suggests instead the equivalent of this:
with open(TEST_XMLFILE_OUT) as f: xml_test_out = f.read().encode('ascii') ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18889> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com