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

Function _good_enough

Lib/xml/dom/domreg.py:32–37  ·  view source on GitHub ↗

_good_enough(dom, features) -> Return 1 if the dom offers the features

(dom, features)

Source from the content-addressed store, hash-verified

30 registered[name] = factory
31
32def _good_enough(dom, features):
33 "_good_enough(dom, features) -> Return 1 if the dom offers the features"
34 for f,v in features:
35 if not dom.hasFeature(f,v):
36 return 0
37 return 1
38
39def getDOMImplementation(name=None, features=()):
40 """getDOMImplementation(name = None, features = ()) -> DOM implementation.

Callers 1

getDOMImplementationFunction · 0.85

Calls 1

hasFeatureMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…