Skip to content

Commit 630858c

Browse files
committed
Simplify OperationProxy.__doc__
1 parent 16d4bca commit 630858c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/zeep/client.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ class OperationProxy(object):
1313
def __init__(self, service_proxy, operation_name):
1414
self._proxy = service_proxy
1515
self._op_name = operation_name
16-
try:
17-
signature = str(self._proxy._binding._operations[operation_name])
18-
self.__doc__ = signature
19-
except:
20-
self.__doc__ = 'OperationProxy for %s' % operation_name
16+
17+
@property
18+
def __doc__(self):
19+
return str(self._proxy._binding._operations[self._op_name])
2120

2221
def __call__(self, *args, **kwargs):
2322
"""Call the operation with the given args and kwargs.

0 commit comments

Comments
 (0)