python: Use the unicode_escape codec
authorMathieu Bridon <bochecha@daitauha.fr>
Thu, 7 Jun 2018 10:26:20 +0000 (12:26 +0200)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 1 Aug 2018 13:26:19 +0000 (14:26 +0100)
commit91939255a7c556a5d85a57fb6a191e0c8cfd29ce
tree16516add106064ecc4f39cec18bdb080b30faf83
parentad363913e6766280f53838126d67370f9e97aa12
python: Use the unicode_escape codec

Python 2 had string_escape and unicode_escape codecs. Python 3 only has
the latter. These work the same as far as we're concerned, so let's use
the future-proof one.

However, the reste of the code expects unicode strings, so we need to
decode them again.

Signed-off-by: Mathieu Bridon <bochecha@daitauha.fr>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/amd/common/sid_tables.py
src/gallium/drivers/r600/egd_tables.py