MCPcopy Create free account
hub / github.com/ActiveState/code / __set_text

Method __set_text

recipes/Python/576445_ElementTree_Wrapper/recipe-576445.py:132–135  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

130 return self.__content.text
131 return ''
132 def __set_text(self, value):
133 if not is_text(value):
134 raise ValueError("xmlwrapper: cannot set text of element to object of type %s" % str(type(value)))
135 self.__content.text = value
136 text = property(__get_text,__set_text)
137 def __get_tag(self):
138 return self.__strip_key(self.__content.tag)

Callers

nothing calls this directly

Calls 2

is_textFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected