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

Method canSetFeature

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

Source from the content-addressed store, hash-verified

90 return hasattr(self._options, _name_xform(name))
91
92 def canSetFeature(self, name, state):
93 key = (_name_xform(name), state and 1 or 0)
94 return key in self._settings
95
96 # This dictionary maps from (feature,value) to a list of
97 # (option,value) pairs that should be set on the Options object.

Callers

nothing calls this directly

Calls 1

_name_xformFunction · 0.85

Tested by

no test coverage detected