python: Stop using basestring to test for strings
authorAndreas Sandberg <andreas.sandberg@arm.com>
Sat, 26 Jan 2019 14:08:20 +0000 (14:08 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 25 Feb 2019 14:25:24 +0000 (14:25 +0000)
commita347a1a68b8a6e370334be3a1d2d66675891e0f1
tree36a2ace396538bae15a1652328cfec6b93462fc5
parentb5b19d247024022a93df320158a2aea2a772e54f
python: Stop using basestring to test for strings

The base class basestring doesn't exist in Python 3. Use string_types
from six instead.

Change-Id: I7e84903fb7dd4a0af7ae4e9f4ec2e54338f212bb
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15998
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Juha Jäykkä <juha.jaykka@arm.com>
src/mem/qos/QoSPolicy.py
src/mem/slicc/util.py
src/python/m5/util/grammar.py