(cls, value)
return unicode.__new__(cls, value, DEFAULT_OUTPUT_ENCODING)
Create a new NavigableString.

        When unpickling a NavigableString, this method is called with
        the string in DEFAULT_OUTPUT_ENCODING. That encoding needs to be
        passed in to the superclass's __new__ or the superclass won't know
        how to handle non-ASCII characters.
Create a new NavigableString.
Create a new NavigableString .
def __new__(cls, value):
        """Create a new NavigableString.

        When unpickling a NavigableString, this method is called with
        the string in DEFAULT_OUTPUT_ENCODING. That encoding needs to be
        passed in to the superclass's __new__ or the superclass won't know
        how to handle non-ASCII characters.
        """
        if isinstance(value, unicode):
            return unicode.__new__(cls, value)
        return unicode.__new__(cls, value, DEFAULT_OUTPUT_ENCODING)
def __new__ ( cls , value ) : if isinstance ( value , unicode ) : return unicode . __new__ ( cls , value ) return unicode . __new__ ( cls , value , DEFAULT_OUTPUT_ENCODING )