summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/python/m5/util/pybind.py2
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")