Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9677675 commit dbdbbc8Copy full SHA for dbdbbc8
zerorpc/decorators.py
@@ -33,7 +33,7 @@ class DecoratorBase(object):
33
def __init__(self, functor):
34
self._functor = functor
35
self.__doc__ = functor.__doc__
36
- self.__name__ = functor.__name__
+ self.__name__ = getattr(functor, "__name__", str(functor))
37
38
def __get__(self, instance, type_instance=None):
39
if instance is None:
0 commit comments