5c6ca5b6e0
The JSONRPCClient class now support the with statement. From now on the __del__() method is changed to close() and user need to call it manually at object disposal or use the 'with' Python statement. Change-Id: I74afd93d411b9596ab8f9523c54a4a7523eec5e5 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/444686 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com>