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)
| 67 | return child |
| 68 | |
| 69 | def _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 | |
| 80 | def _qtag(tag): |
| 81 | prefix, tagroot = tag.split(':') |
no outgoing calls
no test coverage detected
searching dependent graphs…