(cls, line)
Backslash escape line.value.
Backslash escape line.value.
Backslash escape line . value .
def encode(cls, line):
        """
        Backslash escape line.value.
        """
        if not line.encoded:
            encoding = getattr(line, 'encoding_param', None)
            if encoding and encoding.upper() == cls.base64string:
                line.value = codecs.encode(self.value.encode(encoding), "base64").decode("utf-8")
            else:
                line.value = backslashEscape(str_(line.value))
            line.encoded=True
def encode ( cls , line ) : if not line . encoded : encoding = getattr ( line , 'encoding_param' , None ) if encoding and encoding . upper ( ) == cls . base64string : line . value = codecs . encode ( self . value . encode ( encoding ) , "base64" ) . decode ( "utf-8" ) else : line . value = backslashEscape ( str_ ( line . value ) ) line . encoded = True