(self, name)
| 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: |
nothing calls this directly
no test coverage detected