blob: 864bbb4d7bd766f5e0390a85fae6b2eaa8249fea [file] [log] [blame]
Scott Baker7adfcb62018-05-23 08:35:05 -07001--- api_client.py 2018-05-29 17:59:49.000000000 +0000
2+++ api_client.py.new 2018-05-29 17:56:27.000000000 +0000
3@@ -64,7 +64,7 @@
4 configuration = Configuration()
5 self.configuration = configuration
6
7- self.pool = ThreadPool()
8+ self.pool = None # NOTE(smbaker): disabled threadpool
9 self.rest_client = RESTClientObject(configuration)
10 self.default_headers = {}
11 if header_name is not None:
12@@ -73,9 +73,10 @@
13 # Set default User-Agent.
14 self.user_agent = 'Swagger-Codegen/6.0.0/python'
15
16- def __del__(self):
17- self.pool.close()
18- self.pool.join()
19+# NOTE(smbaker): disabled threadpool
20+# def __del__(self):
21+# self.pool.close()
22+# self.pool.join()
23
24 @property
25 def user_agent(self):
26@@ -320,6 +321,7 @@
27 response_type, auth_settings,
28 _return_http_data_only, collection_formats, _preload_content, _request_timeout)
29 else:
30+ raise Exception("Async is not supported") # NOTE(smbaker): disabled thread pool
31 thread = self.pool.apply_async(self.__call_api, (resource_path, method,
32 path_params, query_params,
33 header_params, body,