mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-11 07:16:10 +02:00
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:
parent
3a0ea9e2bb
commit
6c85fc9c70
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user