Skip to content

Commit

Permalink
Merge pull request vcatalano#34 from tcosprojects/master
Browse files Browse the repository at this point in the history
This looks good! I've been meaning to setup some test for Python 3.4 for a while so I will add those as well. Thanks for the contribution.
  • Loading branch information
vcatalano committed Feb 2, 2015
2 parents 08a84ed + 4803578 commit 890c483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions authorize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

# Monkeypatch the ElementTree module so that we can use CDATA element types
E._original_serialize_xml = E._serialize_xml
def _serialize_xml(write, elem, *args):
def _serialize_xml(write, elem, *args, **kwargs):
if elem.tag == '![CDATA[':
write('<![CDATA[%s]]>' % elem.text)
return
return E._original_serialize_xml(write, elem, *args)
E._serialize_xml = E._serialize['xml'] = _serialize_xml
return E._original_serialize_xml(write, elem, *args, **kwargs)
E._serialize_xml = E._serialize['xml'] = _serialize_xml

0 comments on commit 890c483

Please sign in to comment.