Skip to content

Commit 624ee01

Browse files
committed
update to static function
1 parent cc31f77 commit 624ee01

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cterasdk/clients/async_requests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ class BaseRequest:
103103
def __init__(self, method, url, **kwargs):
104104
self.method = method
105105
self.url = url
106-
self.kwargs = self._accept(**kwargs)
106+
self.kwargs = BaseRequest.accept(**kwargs)
107107

108-
def _accept(self, **kwargs):
108+
@staticmethod
109+
def accept(**kwargs):
109110
timeout = kwargs.get('timeout', None)
110111
if timeout:
111112
logger.debug('Setting request timeout. %s', timeout)

0 commit comments

Comments
 (0)