MCPcopy Index your code
hub / github.com/python/cpython / getProperty

Method getProperty

Lib/xml/sax/expatreader.py:164–180  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

162 "Feature '%s' not recognized" % name)
163
164 def getProperty(self, name):
165 if name == handler.property_lexical_handler:
166 return self._lex_handler_prop
167 elif name == property_interning_dict:
168 return self._interning
169 elif name == property_xml_string:
170 if self._parser:
171 if hasattr(self._parser, "GetInputContext"):
172 return self._parser.GetInputContext()
173 else:
174 raise SAXNotRecognizedException(
175 "This version of expat does not support getting"
176 " the XML string")
177 else:
178 raise SAXNotSupportedException(
179 "XML string cannot be returned when not parsing")
180 raise SAXNotRecognizedException("Property '%s' not recognized" % name)
181
182 def setProperty(self, name, value):
183 if name == handler.property_lexical_handler:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected