python/kubernetes/client
Fabian von Feilitzsch 18d21df367 Cleanup ThreadPool with atexit rather than __del__
This removes the __del__ function from the generated Python client,
and replaces it with a cleanup function. When a ThreadPool is created,
the cleanup function is registered with the atexit module.

This PR also allows the client to be used as a context manager, which
will automatically clean up after itself rather than having to wait til
process exit.

This fixes issue #1037, where the API client could hang indefinitely at
garbage collection.
2020-02-06 12:08:51 -05:00
..
api hotfix for patching custom objects issue#866 2019-11-11 12:02:41 -08:00
apis turn on warning filter to print deprecation warning by default 2019-11-12 12:51:22 -08:00
models generated client change for 11.0.0-snapshot 2019-11-11 12:02:41 -08:00
__init__.py generated client change for 11.0.0-snapshot 2019-11-11 12:02:41 -08:00
api_client.py Cleanup ThreadPool with atexit rather than __del__ 2020-02-06 12:08:51 -05:00
configuration.py generated client change for 11.0.0-snapshot 2019-11-11 12:02:41 -08:00
rest.py generated client change for 11.0.0-snapshot 2019-11-11 12:02:41 -08:00