MCPcopy Create free account
hub / github.com/scanny/python-pptx / _nsmap

Function _nsmap

lab/cust-elm-classes/main.py:69–78  ·  view source on GitHub ↗

Return a dict containing the subset namespace prefix mappings specified by *prefixes*. Any number of namespace prefixes can be supplied, e.g. namespaces('a', 'r', 'p').

(*prefixes)

Source from the content-addressed store, hash-verified

67 return child
68
69def _nsmap(*prefixes):
70 """
71 Return a dict containing the subset namespace prefix mappings specified by
72 *prefixes*. Any number of namespace prefixes can be supplied, e.g.
73 namespaces('a', 'r', 'p').
74 """
75 namespaces = {}
76 for prefix in prefixes:
77 namespaces[prefix] = nsmap[prefix]
78 return namespaces
79
80def _qtag(tag):
81 prefix, tagroot = tag.split(':')

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…