(cls, txt)
Unescapes the str *txt*.

        >>> TS3Escape.unescape('Hello\\sWorld')
        'Hello World'

        :arg txt: The string to escape.
        :type txt: string

        :raises TypeError: If *txt* is not a string.
Unescapes the str *txt*.
Unescapes the str * txt * .
def unescape(cls, txt):
        """
        Unescapes the str *txt*.

        >>> TS3Escape.unescape('Hello\\sWorld')
        'Hello World'

        :arg txt: The string to escape.
        :type txt: string

        :raises TypeError: If *txt* is not a string.
        """
        if isinstance(txt, str):
            # Again, the order of the replacement is not trivial.
            for repl_char, char in reversed(cls._MAP):
                txt = txt.replace(char, repl_char)
            return txt
        else:
            raise TypeError("*txt* has to be a string.")
def unescape ( cls , txt ) : if isinstance ( txt , str ) : # Again, the order of the replacement is not trivial. for repl_char , char in reversed ( cls . _MAP ) : txt = txt . replace ( char , repl_char ) return txt else : raise TypeError ( "*txt* has to be a string." )