def adds(self, string):
        """
        Add a string child.
        """
        if isinstance(string, unicode):
            string = string.encode("utf-8")

        self.children.append((STRING, str(string)))
def adds ( self , string ) : if isinstance ( string , unicode ) : string = string . encode ( "utf-8" ) self . children . append ( ( STRING , str ( string ) ) )
Add a string child.