MCPcopy Create free account
hub / github.com/RustPython/RustPython / getProperty

Method getProperty

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

hasattrFunction · 0.85

Tested by

no test coverage detected