[python-client] Thread pool fix (#6396)

* [python-client] Added close() and join() for threadpool at ApiClient destructor.

* Updated stuff for CI
This commit is contained in:
Darshana Sanjeewan Adikari
2017-09-01 12:18:03 +02:00
committed by wing328
parent 0f1a61d9c2
commit a28ce0b604
10 changed files with 61 additions and 59 deletions

View File

@@ -94,7 +94,7 @@ This endpoint does not need any parameter.
### Return type
[**dict(str, int)**](dict.md)
**dict(str, int)**
### Authorization

View File

@@ -72,6 +72,10 @@ class ApiClient(object):
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/1.0.0/python'
def __del__(self):
self.pool.close()
self.pool.join()
@property
def user_agent(self):