Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unescape method to xml.sax.saxutils #37208

Closed
mboedick mannequin opened this issue Sep 23, 2002 · 4 comments
Closed

add unescape method to xml.sax.saxutils #37208

mboedick mannequin opened this issue Sep 23, 2002 · 4 comments
Assignees

Comments

@mboedick
Copy link
Mannequin

mboedick mannequin commented Sep 23, 2002

BPO 613256
Nosy @loewis
Files
  • saxutils_escape_patch: patch to add unescape method to xml.sax.saxutils
  • saxutils.diff: add unescape() method for saxutils
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/loewis'
    closed_at = <Date 2002-10-26.14:52:19.000>
    created_at = <Date 2002-09-23.15:47:16.000>
    labels = ['expert-XML']
    title = 'add unescape method to xml.sax.saxutils'
    updated_at = <Date 2002-10-26.14:52:19.000>
    user = 'https://bugs.python.org/mboedick'

    bugs.python.org fields:

    activity = <Date 2002-10-26.14:52:19.000>
    actor = 'loewis'
    assignee = 'loewis'
    closed = True
    closed_date = None
    closer = None
    components = ['XML']
    creation = <Date 2002-09-23.15:47:16.000>
    creator = 'mboedick'
    dependencies = []
    files = ['4584', '4585']
    hgrepos = []
    issue_num = 613256
    keywords = ['patch']
    message_count = 4.0
    messages = ['41210', '41211', '41212', '41213']
    nosy_count = 2.0
    nosy_names = ['loewis', 'mboedick']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue613256'
    versions = ['Python 2.3']

    @mboedick
    Copy link
    Mannequin Author

    mboedick mannequin commented Sep 23, 2002

    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.

    @mboedick mboedick mannequin closed this as completed Sep 23, 2002
    @mboedick mboedick mannequin closed this as completed Sep 23, 2002
    @mboedick mboedick mannequin assigned loewis Sep 23, 2002
    @mboedick mboedick mannequin added topic-XML labels Sep 23, 2002
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 13, 2002

    Logged In: YES
    user_id=21627

    Can you please provide documentation and test cases?

    @mboedick
    Copy link
    Mannequin Author

    mboedick mannequin commented Oct 15, 2002

    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

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 26, 2002

    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;

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants