This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Python 3 support: fix text/binary confusion in importreport
ClosedPublic

Authored by thopre on Sep 30 2019, 6:57 AM.

Details

Summary

lnt importreport currently fails in Python 3 because it opens the input
and output file in binary mode. Yet, as per documentation, this tools
converts "*text based* key value pairs into a LNT json report file".
The JSON file is output using the json module which expects a file
opened in text mode so this commit changes the mode of both the input
and output file to text.

Diff Detail

Repository
rL LLVM