Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7cce42

Browse files
aluzzardibombela
authored andcommitted
call procedure chaining: Make sure that at each step of the chain, __name__ and __doc__ are accurate
1 parent 53e8e65 commit f7cce42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zerorpc/context.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525

2626
import uuid
27+
import functools
2728

2829
import gevent_zmq as zmq
2930

@@ -75,6 +76,7 @@ def middleware_raise_error(self, event):
7576
def middleware_call_procedure(self, procedure, *args, **kwargs):
7677
class chain(object):
7778
def __init__(self, fct, next):
79+
functools.update_wrapper(self, next)
7880
self.fct = fct
7981
self.next = next
8082

0 commit comments

Comments
 (0)