python,util: Fixed string decoding in include verifier
authorBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 16 Jun 2020 18:00:19 +0000 (11:00 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 25 Jun 2020 23:48:10 +0000 (23:48 +0000)
commit25b5f5dfa1ac2527bf1346aaca8eefd6634885b8
treebcefa53e40d33fb2473ed8209ab77c457e4a3a8b
parent2edcd3dbc82b68658a2e68070a92d053a2001c61
python,util: Fixed string decoding in include verifier

The Python2 <-> Python3 port included a decode on a string as part of
the include statement git-hook verifier. This results in a failure. To
fix this issue, the file to be checked is opened in binary mode.

This issue was highlighted by Gabe Black here:
https://gem5-review.googlesource.com/c/public/gem5/+/28588

Change-Id: I9a30ecc24d4741853ed1c2d0c03addf57c3e5b6c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30336
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/style/verifiers.py