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

Function getDOMImplementation

Lib/xml/dom/minidom.py:2017–2024  ·  view source on GitHub ↗
(features=None)

Source from the content-addressed store, hash-verified

2015 {'parser': parser})
2016
2017def getDOMImplementation(features=None):
2018 if features:
2019 if isinstance(features, str):
2020 features = domreg._parse_feature_string(features)
2021 for f, v in features:
2022 if not Document.implementation.hasFeature(f, v):
2023 return None
2024 return Document.implementation

Calls 1

hasFeatureMethod · 0.80

Tested by 3

create_nonempty_doctypeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…