def sendIq(self, entity):
        """
        :type entity: IqProtocolEntity
        """
        if entity.getType() == IqProtocolEntity.TYPE_SET and entity.getXmlns() == "w:m":
            #media upload!
            self._sendIq(entity, self.onRequestUploadSuccess, self.onRequestUploadError)
def sendIq ( self , entity ) : if entity . getType ( ) == IqProtocolEntity . TYPE_SET and entity . getXmlns ( ) == "w:m" : self . _sendIq ( entity , self . onRequestUploadSuccess , self . onRequestUploadError )
:type entity: IqProtocolEntity