Revision 1dd43130 ncclient/content/__init__.py
b/ncclient/content/__init__.py | ||
---|---|---|
12 | 12 |
# See the License for the specific language governing permissions and |
13 | 13 |
# limitations under the License. |
14 | 14 |
|
15 |
'This module serves as an XML abstraction layer' |
|
16 |
|
|
17 |
class ContentError(Exception): |
|
18 |
pass |
|
19 |
|
|
20 |
def qualify(tag, namespace=None): |
|
21 |
'Returns qualified name of form `{namespace}tag`' |
|
22 |
if namespace is None: |
|
23 |
return tag |
|
24 |
else: |
|
25 |
return '{%s}%s' % (namespace, tag) |
|
26 |
_ = qualify |
|
15 |
'This module serves as an XML abstraction layer' |
Also available in: Unified diff