Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/11511 )
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]>
Reviewed-on: https://gem5-review.googlesource.com/11511
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
---
M src/python/m5/util/pybind.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
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: 2
Gerrit-Owner: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev