Module documentation for c14n.py.

This commit is contained in:
Stephan Erb 2008-12-28 01:32:34 +00:00
parent 8b3833b443
commit 7c0b1e4ed0
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
''' XML canonicalisation methods (for XEP-0116) '''
# FIXME: Add licence, copyright
from simplexml import ustr
# XML canonicalisation methods (for XEP-0116)
def c14n(node):
s = "<" + node.name
if node.namespace:
@ -34,4 +36,4 @@ def normalise_text(val):
return val.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('\r', '&#xD;')
# vim: se ts=3:
# vim: se ts=3: