Accept non utf-8 characters with python3
If input file contains non-utf-8 characters, running GetResourceAllowlistFileList in python3 fails with a variation of: "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 24: invalid start byte" This change makes python3 treat data as bytes, while leaving python2 behavior unchanged. Change-Id: Idb6f4cf8fe3a98551df91b1249a1b74ba2916acc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560505Reviewed-by:Andrew Grieve <agrieve@chromium.org> Commit-Queue: Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#831015}
Showing
Please register or sign in to comment