From 33ba44709b74add1a1aff16c09c707b57c97acb3 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Sat, 26 Jan 2019 10:52:26 +0000 Subject: [PATCH] python: Use __name__ instead of func_name for Py3 compat Change-Id: I62a9685b4bce7e9012bc65309fcafe26135fde6d Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/15997 Reviewed-by: Nikos Nikoleris --- src/python/m5/SimObject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 20bb5faec..990480720 100644 --- 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) -- 2.30.2