(self)
return url_encoded
Retrieves the message in encoded form
Retrieves the message in encoded form
Retrieves the message in encoded form
def get_encoded_message(self):
        """Retrieves the message in encoded form"""
        if self.compression:
            message = zlib.compress(self.raw_message)[2:-4]
        else:
            message = self.raw_message

        base64_encoded = message.encode('base64')
        url_encoded = urllib.quote(base64_encoded)

        return url_encoded
def get_encoded_message ( self ) : if self . compression : message = zlib . compress ( self . raw_message ) [ 2 : - 4 ] else : message = self . raw_message base64_encoded = message . encode ( 'base64' ) url_encoded = urllib . quote ( base64_encoded ) return url_encoded