(self, encoding=None)
return ParseResultBytes(
            uri_ref=self.reference,
            encoding=encoding,
            **attrs
        )
Convert to an instance of ParseResultBytes.
Convert to an instance of ParseResultBytes.
Convert to an instance of ParseResultBytes .
def encode(self, encoding=None):
        """Convert to an instance of ParseResultBytes."""
        encoding = encoding or self.encoding
        attrs = dict(
            zip(PARSED_COMPONENTS,
                (attr.encode(encoding) if hasattr(attr, 'encode') else attr
                 for attr in self)))
        return ParseResultBytes(
            uri_ref=self.reference,
            encoding=encoding,
            **attrs
        )
def encode ( self , encoding = None ) : encoding = encoding or self . encoding attrs = dict ( zip ( PARSED_COMPONENTS , ( attr . encode ( encoding ) if hasattr ( attr , 'encode' ) else attr for attr in self ) ) ) return ParseResultBytes ( uri_ref = self . reference , encoding = encoding , * * attrs )