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

Fixed XML comment handling in remove_namespace() #448

Merged
merged 1 commit into from
Nov 13, 2015
Merged

Fixed XML comment handling in remove_namespace() #448

merged 1 commit into from
Nov 13, 2015

Conversation

jeffbrl
Copy link
Contributor

@jeffbrl jeffbrl commented Oct 20, 2015

Added a check for elem.tag being an XML comment which previously raised an AttributeError. Included unit test. Refactored test_remove_namespaces to allow comments in the test XML text (ElementTree's fromstring method seemed to suppress comments during parsing).

This PR fixes #446.

vnitinv added a commit that referenced this pull request Nov 13, 2015
Fixed XML comment handling in remove_namespace()
@vnitinv vnitinv merged commit afb7017 into Juniper:master Nov 13, 2015
@jeffbrl jeffbrl deleted the issue-446-fix branch November 13, 2015 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove_namespaces() in jxml.py raises AttributeError for XML comments
2 participants