(
        self, indent_level=None, encoding=DEFAULT_OUTPUT_ENCODING,
        formatter="minimal")
return contents.encode(encoding)
Renders the contents of this tag as a bytestring.
Renders the contents of this tag as a bytestring.
Renders the contents of this tag as a bytestring .
def encode_contents(
        self, indent_level=None, encoding=DEFAULT_OUTPUT_ENCODING,
        formatter="minimal"):
        """Renders the contents of this tag as a bytestring."""
        contents = self.decode_contents(indent_level, encoding, formatter)
        return contents.encode(encoding)
def encode_contents ( self , indent_level = None , encoding = DEFAULT_OUTPUT_ENCODING , formatter = "minimal" ) : contents = self . decode_contents ( indent_level , encoding , formatter ) return contents . encode ( encoding )