summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorMathieu Bridon <[email protected]>2018-08-17 09:16:00 -0600
committerBrian Paul <[email protected]>2018-08-17 09:34:49 -0600
commit459ec5265c18d1aa3623e1a21e31cf46c6a942e1 (patch)
treea4dd15f2f5981f5580f0aa8a7af8acd220b29163 /src/intel
parentf9415d760af0bfd00b579c96e5ac866db43e38fe (diff)
python: Open the template as text, with an explicit encoding
In commit bd27203f4d808763ac24ac94eb677cacf3e7cb99 we changed this to open in binary mode, to then explicitly decode the lines with the right encoding. Unfortunately, that broke the build on Windows, where the template file can have '\r\n' as line terminators: opening in binary mode would keep those terminators and break the regexp. We need to go back to text mode, where the "universal newlines" mode takes care of this. However, to fix the initial issue, let's specify the encoding explicitly when opening the file, and make sure it is open in text mode, so we only get unicode strings. Reviewed-by: Jose Fonseca <jfonseca@vmware>
Diffstat (limited to 'src/intel')
0 files changed, 0 insertions, 0 deletions