diff options
-rw-r--r-- | src/python/m5/SimObject.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index f553fd664..20bb5faec 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -681,7 +681,7 @@ class MetaSimObject(type): # the object itself, not including inherited params (which # will also be inherited from the base class's param struct # here). Sort the params based on their key - params = map(lambda (k, v): v, sorted(cls._params.local.items())) + params = map(lambda k_v: k_v[1], sorted(cls._params.local.items())) ports = cls._ports.local code('''#include "pybind11/pybind11.h" @@ -777,7 +777,7 @@ module_init(py::module &m_internal) # the object itself, not including inherited params (which # will also be inherited from the base class's param struct # here). Sort the params based on their key - params = map(lambda (k, v): v, sorted(cls._params.local.items())) + params = map(lambda k_v: k_v[1], sorted(cls._params.local.items())) ports = cls._ports.local try: ptypes = [p.ptype for p in params] |