@@ -222,7 +222,7 @@ def __call_api(
222
222
223
223
self .last_response = response_data
224
224
225
- return_data = None # assuming derialization is not needed
225
+ return_data = None # assuming deserialization is not needed
226
226
# data needs deserialization or returns HTTP data (deserialized) only
227
227
if _preload_content or _return_http_data_only :
228
228
response_type = response_types_map .get (str (response_data .status ), None )
@@ -405,27 +405,28 @@ def call_api(self, resource_path, method,
405
405
If parameter async_req is False or missing,
406
406
then the method will return the response directly.
407
407
"""
408
+ args = (
409
+ resource_path ,
410
+ method ,
411
+ path_params ,
412
+ query_params ,
413
+ header_params ,
414
+ body ,
415
+ post_params ,
416
+ files ,
417
+ response_types_map ,
418
+ auth_settings ,
419
+ _return_http_data_only ,
420
+ collection_formats ,
421
+ _preload_content ,
422
+ _request_timeout ,
423
+ _host ,
424
+ _request_auth ,
425
+ )
408
426
if not async_req :
409
- return self .__call_api (resource_path , method ,
410
- path_params , query_params , header_params ,
411
- body , post_params , files ,
412
- response_types_map , auth_settings ,
413
- _return_http_data_only , collection_formats ,
414
- _preload_content , _request_timeout , _host ,
415
- _request_auth )
416
-
417
- return self .pool .apply_async (self .__call_api , (resource_path ,
418
- method , path_params ,
419
- query_params ,
420
- header_params , body ,
421
- post_params , files ,
422
- response_types_map ,
423
- auth_settings ,
424
- _return_http_data_only ,
425
- collection_formats ,
426
- _preload_content ,
427
- _request_timeout ,
428
- _host , _request_auth ))
427
+ return self .__call_api (* args )
428
+
429
+ return self .pool .apply_async (self .__call_api , args )
429
430
430
431
def request (self , method , url , query_params = None , headers = None ,
431
432
post_params = None , body = None , _preload_content = True ,
0 commit comments