Skip to content
Snippets Groups Projects
Commit 7c0b1e4e authored by steve-e's avatar steve-e
Browse files

Module documentation for c14n.py.

parent 8b3833b4
No related branches found
No related tags found
No related merge requests found
''' 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:
\ No newline at end of file
# vim: se ts=3:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment