def _selectVerifyImplementation():
 whatsWrong = 'Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.'
 try:
  from service_identity import VerificationError
  from service_identity.pyopenssl import verify_hostname
  return (verify_hostname, VerificationError)
 except ImportError as e:
  warnings.warn_explicit(((("You do not have a working installation of the service_identity module: '" + str(e)) + "'.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  ") + whatsWrong), category=UserWarning, filename='', lineno=0)
 return (simpleVerifyHostname, SimpleVerificationError)

def _selectVerifyImplementation ( ) : whatsWrong = 'Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.' try : from service_identity import VerificationError from service_identity . pyopenssl import verify_hostname return ( verify_hostname , VerificationError ) except ImportError as e : warnings . warn_explicit ( ( ( ( "You do not have a working installation of the service_identity module: '" + str ( e ) ) + "'.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  " ) + whatsWrong ) , category = UserWarning , filename = '' , lineno = 0 ) return ( simpleVerifyHostname , SimpleVerificationError )
determine if c{service_identity} is installed .