def validate_thrift_transport(confvar):
 transport = confvar.get()
 error_res = [(confvar, ('Thrift transport %s not supported. Please choose a supported transport: %s' % (transport, ', '.join(SUPPORTED_THRIFT_TRANSPORTS))))]
 if (transport not in SUPPORTED_THRIFT_TRANSPORTS):
  return error_res
 return []

def validate_thrift_transport ( confvar ) : transport = confvar . get ( ) error_res = [ ( confvar , ( 'Thrift transport %s not supported. Please choose a supported transport: %s' % ( transport , ', ' . join ( SUPPORTED_THRIFT_TRANSPORTS ) ) ) ) ] if ( transport not in SUPPORTED_THRIFT_TRANSPORTS ) : return error_res return [ ]
validate that the provided thrift transport is supported .