projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fa56fe
)
python: Use __name__ instead of func_name for Py3 compat
author
Andreas Sandberg
<andreas.sandberg@arm.com>
Sat, 26 Jan 2019 10:52:26 +0000
(10:52 +0000)
committer
Andreas Sandberg
<andreas.sandberg@arm.com>
Wed, 20 Feb 2019 18:27:10 +0000
(18:27 +0000)
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>
src/python/m5/SimObject.py
patch
|
blob
|
history
diff --git
a/src/python/m5/SimObject.py
b/src/python/m5/SimObject.py
index 20bb5faec06e02cebd3d27f3c6a9e670e76d3d37..990480720db65aeffc8a7aaaaa85c778b6da8f92 100644
(file)
--- a/
src/python/m5/SimObject.py
+++ b/
src/python/m5/SimObject.py
@@
-875,7
+875,7
@@
def cxxMethod(*args, **kwargs):
"""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)