Esempio n. 1
0
 def __new__(cls, value, tag, attributes, key=None):
     self = unicode.__new__(cls, value)
     self.tag = tag
     if key is None:
         self.key = tag
     else:
         self.key = key
     self.attributes = attributes
     return self
Esempio n. 2
0
 def __new__(cls, value, tag, attributes, key=None):
     """Create a UnicodeElement."""
     self = unicode.__new__(cls, value)
     self.tag = tag
     if key is None:
         self.key = tag
     else:
         self.key = key
     self.attributes = attributes
     return self
Esempio n. 3
0
 def __new__(cls, value, tag, attributes, key=None):
     """Create a UnicodeElement."""
     self = unicode.__new__(cls, value)
     self.tag = tag
     if key is None:
         self.key = tag
     else:
         self.key = key
     self.attributes = attributes
     return self