def _responseFromMessage(responseConstructor, message, **kwargs):
 response = responseConstructor(id=message.id, answer=True, **kwargs)
 response.queries = message.queries[:]
 return response

def _responseFromMessage ( responseConstructor , message , ** kwargs ) : response = responseConstructor ( id = message . id , answer = True , ** kwargs ) response . queries = message . queries [ : ] return response
generate a l{message} like instance suitable for use as the response to c{message} .