Re: [PATCH] scripts/spdxcheck.py: improve Python 3 compat

2018-09-17 Thread Jeremy Cline
On 09/16/2018 05:12 PM, Thomas Weißschuh wrote: > When reading lines from a text-mode fd strings are returned. > These can not be decoded again into strings, breaking the logic in > parser. > Just make sure all files are opened in binary mode on Python 3, so the > current logic keeps working. > >

[PATCH] scripts/spdxcheck.py: improve Python 3 compat

2018-09-16 Thread Thomas Weißschuh
When reading lines from a text-mode fd strings are returned. These can not be decoded again into strings, breaking the logic in parser. Just make sure all files are opened in binary mode on Python 3, so the current logic keeps working. This remains compatible with Python 2 and should have no funct