3 F\N@sBddlZddlmZddlmZejdeddGdddZ dS) N)RLock)SSLz/OpenSSL.tsafe is deprecated and will be removed) stacklevelc!@s2eZdZddZxd&D]Zed$eefqWd%S)' ConnectioncGstj||_t|_dS)N)_sslrZ _ssl_conn_RLock_lock)selfargsr /usr/lib/python3.6/tsafe.py__init__s zConnection.__init__ get_contextpendingsendwriterecvread renegotiatebindlistenconnectaccept setblockingfilenoshutdowncloseget_cipher_list getpeername getsockname getsockopt setsockoptmakefile get_app_data set_app_data state_string sock_shutdownget_peer_certificateget_peer_cert_chain want_read want_writeset_connect_stateset_accept_state connect_exsendallzdef %s(self, *args): self._lock.acquire() try: return self._ssl_conn.%s(*args) finally: self._lock.release() N)!rrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/)__name__ __module__ __qualname__rfexecr r r r r sr) warningsZ threadingrrZOpenSSLrrwarnDeprecationWarningrr r r r s