#NEWLINE# def make_deny_response( self ) : #NEWLINE# #INDENT# 'Create "deny" response for the "subscribe" / "subscribed" /\n        "unsubscribe" / "unsubscribed" presence stanza.\n\n        :return: new presence stanza.\n        :returntype: `Presence`\n        ' #NEWLINE# if ( stanza . stanza_type not in ( 'subscribe' , 'subscribed' , 'unsubscribe' , 'unsubscribed' ) ) : #NEWLINE# #INDENT# raise ValueError ( "Results may only be generated for 'subscribe','subscribed','unsubscribe' or 'unsubscribed' presence" ) #NEWLINE# #UNINDENT# stanza = Presence ( stanza_type = DENY_RESPONSES [ self . stanza_type ] , from_jid = self . to_jid , to_jid = self . from_jid , stanza_id = self . stanza_id ) #NEWLINE# return stanza