Module documentation for c14n.py.
This commit is contained in:
parent
8b3833b443
commit
7c0b1e4ed0
|
@ -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('&', '&').replace('<', '<').replace('>', '>').replace('\r', '
')
|
||||
|
||||
|
||||
# vim: se ts=3:
|
||||
# vim: se ts=3:
|
||||
|
|
Loading…
Reference in New Issue