Hello Nikos Nikoleris,
I'd like you to do a code review. Please visit
https://gem5-review.googlesource.com/11511
to review the following change.
Change subject: python: Fixup incorrect syntax in PyBind argument handler
......................................................................
python: Fixup incorrect syntax in PyBind argument handler
Change-Id: Ie81104d89b554795ec1020d5ce4edcf28795eda8
Signed-off-by: Andreas Sandberg <[email protected]>
Reviewed-by: Nikos Nikoleris <[email protected]>
---
M src/python/m5/util/pybind.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/python/m5/util/pybind.py b/src/python/m5/util/pybind.py
index 003c233..f666547 100644
--- a/src/python/m5/util/pybind.py
+++ b/src/python/m5/util/pybind.py
@@ -63,7 +63,7 @@
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")
--
To view, visit https://gem5-review.googlesource.com/11511
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ie81104d89b554795ec1020d5ce4edcf28795eda8
Gerrit-Change-Number: 11511
Gerrit-PatchSet: 1
Gerrit-Owner: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev