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

Method getFeature

Lib/xml/dom/xmlbuilder.py:162–178  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

160 }
161
162 def getFeature(self, name):
163 xname = _name_xform(name)
164 try:
165 return getattr(self._options, xname)
166 except AttributeError:
167 if name == "infoset":
168 options = self._options
169 return (options.datatype_normalization
170 and options.whitespace_in_element_content
171 and options.comments
172 and options.charset_overrides_xml_encoding
173 and not (options.namespace_declarations
174 or options.validate_if_schema
175 or options.create_entity_ref_nodes
176 or options.entities
177 or options.cdata_sections))
178 raise xml.dom.NotFoundErr("feature %s not known" % repr(name))
179
180 def parseURI(self, uri):
181 if self.entityResolver:

Callers

nothing calls this directly

Calls 1

_name_xformFunction · 0.85

Tested by

no test coverage detected