[Patches] [ python-Patches-613256 ] add unescape method to xml.sax.saxutils

noreply@sourceforge.net noreply@sourceforge.net
Sat, 26 Oct 2002 07:52:19 -0700


Patches item #613256, was opened at 2002-09-23 17:47
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=613256&group_id=5470

Category: XML
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Matthew Boedicker (mboedick)
Assigned to: Martin v. Löwis (loewis)
Summary: add unescape method to xml.sax.saxutils

Initial Comment:
This patch adds an unescape() method to saxutils to
convert an xml-escaped string back to its original form

It also modifies the escape() method so that the core
escaping takes places after any additional escaping
passed in via the dictionary.  This will guarantee that
returned string is properly escaped for xml no matter
what is passed in via the dictionary.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-10-26 16:52

Message:
Logged In: YES 
user_id=21627

Thanks for the patch, committed as

xmlsaxutils.tex 1.4;
test_sax.py 1.23; 
output/test_sax 1.11; 
saxutils.py 1.17; 
ACKS 1.213; 
NEWS 1.504;


----------------------------------------------------------------------

Comment By: Matthew Boedicker (mboedick)
Date: 2002-10-15 21:43

Message:
Logged In: YES 
user_id=119895

added documentation and test cases

no longer changes the order in which escape() modifies the
string with core and passed-in replacements

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-13 14:53

Message:
Logged In: YES 
user_id=21627

Can you please provide documentation and test cases?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=613256&group_id=5470