copy.copy() of a tag doesn't preserve XML namespace.

Bug #1685172 reported by Vikas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

When an XML tag object is copied using copy.copy(), the resulting object does not have the namespace prefix set.

I have fixed this bug and will attach a patch with a test case shortly.

Revision history for this message
Vikas (vikasgorur) wrote :

Attaching a patch to fix this bug as well as a test case. Please let me know if you would prefer this change as a pull request instead.

Thanks!

Revision history for this message
Leonard Richardson (leonardr) wrote :

Fixed in revision 449. Thanks for the patch.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.