diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-04-27 19:05:31 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-06-28 17:39:36 +0000 |
commit | 293f1eb503a6e38dc7b5a533a7bb9bd384f6e69f (patch) | |
tree | 057994e6ed73d7bf224c525ddcee66157de01d87 /src/python/m5/util | |
parent | 0f33b2c1d5875aae036a9e2779f6e9c764e0f85e (diff) | |
download | gem5-293f1eb503a6e38dc7b5a533a7bb9bd384f6e69f.tar.xz |
python: Fixup incorrect syntax in PyBind argument handler
Change-Id: Ie81104d89b554795ec1020d5ce4edcf28795eda8
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11511
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/python/m5/util')
-rw-r--r-- | src/python/m5/util/pybind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/util/pybind.py b/src/python/m5/util/pybind.py index 003c233b1..f66654786 100644 --- a/src/python/m5/util/pybind.py +++ b/src/python/m5/util/pybind.py @@ -63,7 +63,7 @@ class PyBindMethod(PyBindExport): def _conv_arg(self, value): if isinstance(value, bool): return "true" if value else "false" - elif isinstance(value, float, int): + elif isinstance(value, (float, int)): return repr(value) else: raise TypeError("Unsupported PyBind default value type") |