[BUG][PATCH] fileid_involved fails to unescape xml characters

John Arbash Meinel john at arbash-meinel.com
Thu Jan 19 21:29:03 GMT 2006


I tracked down the problem to the fileid function.
Basically, it is parsing the xml directly, and forgetting that some
characters (like <>) get escaped.

So I'm using xml.sax.saxutils.unescape to get them back into normal strings.
Unfortunately, this also means I had to move xml.py out of the way,
since it conflicts with the python system package 'xml'. (fortunately,
only xml4.py and xml5.py actually referenced the xml.py, so it was a
very localized move).
Long term, they all should probably be called something different.

The branch is available at:
http://bzr.arbash-meinel.com/branches/bzr/0.7-bugfix/

I also fixed the stub_server issue with paramiko > 1.5.2 (it now always
has attribute st_mode, just set to 0).

Attached is a combined patch
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-fileid-involved.patch
Type: text/x-patch
Size: 5643 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060119/317467f2/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060119/317467f2/attachment.pgp 


More information about the bazaar mailing list