python: difflib prefers unicode strings
authorMathieu Bridon <bochecha@daitauha.fr>
Fri, 17 Aug 2018 19:32:16 +0000 (21:32 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 22 Aug 2018 15:41:01 +0000 (08:41 -0700)
commitfc708069f74063428e90595f494de6c79515f64e
treed50db388c97405d78caf4641e3ba3d6cb0610487
parent477d4b9960ae8b7524806a9dff1d91b0546ec0f2
python: difflib prefers unicode strings

Python 3 does not automatically convert from bytes to unicode strings
like Python 2 used to do.

This commit makes sure we pass unicode strings to difflib.unified_diff,
so that the script works on both Python 2 and 3.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/glsl/glcpp/tests/glcpp_test.py