python3: <function>#func_name is renamed to __name__

Signed-off-by: Satoshi KOBAYASHI <satoshi-k@iij.ad.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Satoshi KOBAYASHI 2015-11-10 12:33:27 +09:00 committed by FUJITA Tomonori
parent 3a0ea9e2bb
commit 6c85fc9c70

View File

@ -73,7 +73,7 @@ def register(**kwargs):
Does not do any check or validation.
"""
def decorator(func):
_CALL_REGISTRY[kwargs.get(API_SYM, func.func_name)] = func
_CALL_REGISTRY[kwargs.get(API_SYM, func.__name__)] = func
return func
return decorator