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

Function qn

lab/parse_xsd/objectify_lab.py:38–45  ·  view source on GitHub ↗

qn is short for *qualified name*. Return fully qualified (Clark notation) tagname corresponding to short-form prefixed tagname *tag*.

(tag)

Source from the content-addressed store, hash-verified

36 return '%s:%s' % (prefix, tagroot)
37
38def qn(tag):
39 """
40 qn is short for *qualified name*. Return fully qualified (Clark notation)
41 tagname corresponding to short-form prefixed tagname *tag*.
42 """
43 prefix, tagroot = tag.split(':')
44 uri = nsmap[prefix]
45 return '{%s}%s' % (uri, tagroot)
46
47def new(tag, **extra):
48 return Element(qn(tag), **extra)

Callers 3

newFunction · 0.70
sub_elmFunction · 0.70
objectify_lab.pyFile · 0.70

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected