commit | 33ba44709b74add1a1aff16c09c707b57c97acb3 | [log] [tgz] |
---|---|---|
author | Andreas Sandberg <andreas.sandberg@arm.com> | Sat Jan 26 10:52:26 2019 +0000 |
committer | Andreas Sandberg <andreas.sandberg@arm.com> | Wed Feb 20 18:27:10 2019 +0000 |
tree | 9df5feac3e0a7e0ff442e02f3eb5b37593717270 | |
parent | 4fa56fe2f8618f5fbc47ec21ac033d5e7ac2790d [diff] |
python: Use __name__ instead of func_name for Py3 compat Change-Id: I62a9685b4bce7e9012bc65309fcafe26135fde6d Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15997 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 20bb5fa..9904807 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py
@@ -875,7 +875,7 @@ """Decorator to export C++ functions to Python""" def decorate(func): - name = func.func_name + name = func.__name__ override = kwargs.get("override", False) cxx_name = kwargs.get("cxx_name", name)