From 293f1eb503a6e38dc7b5a533a7bb9bd384f6e69f Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 27 Apr 2018 19:05:31 +0100 Subject: python: Fixup incorrect syntax in PyBind argument handler Change-Id: Ie81104d89b554795ec1020d5ce4edcf28795eda8 Signed-off-by: Andreas Sandberg Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/11511 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/python/m5/util/pybind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3