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

Function nsdecls

tests/unitutil/cxml.py:57–65  ·  view source on GitHub ↗

Return a string containing a namespace declaration for each of *nspfxs*, in the order they are specified.

(*nspfxs)

Source from the content-addressed store, hash-verified

55
56
57def nsdecls(*nspfxs):
58 """
59 Return a string containing a namespace declaration for each of *nspfxs*,
60 in the order they are specified.
61 """
62 nsdecls = ""
63 for nspfx in nspfxs:
64 nsdecls += ' xmlns:%s="%s"' % (nspfx, nsmap[nspfx])
65 return nsdecls
66
67
68class Element(object):

Callers 1

_start_tagMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…