[Python-bugs-list] [Bug #110645] XMLLIB, JPython and re (PR#328)
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 8 Aug 2000 04:22:50 -0700
Bug #110645, was updated on 2000-Jul-31 14:10
Here is a current snapshot of the bug.
Project: Python
Category: Modules
Status: Closed
Resolution: Fixed
Bug Group: Platform-specific
Priority: 5
Summary: XMLLIB, JPython and re (PR#328)
Details: Jitterbug-Id: 328
Submitted-By: peter@verecomm.com
Date: Mon, 15 May 2000 15:21:33 -0400 (EDT)
Version: 1.52
OS: Linux
There's a problem with the xmllib module when used with JPython. Specifically,
the JPython re module has trouble with the () characters in strings passed into
re.compile. Until the JPython folks fix the re module, I'd like to ask that the
xmllib module be modified to escape the () characters. Here's the output from
diff:
$ diff xmllib.py /usr/lib/python1.5/
29c29
< '(?P<value>'+_QStr+'|[-a-zA-Z0-9.:+*%?!\(\)_#=~]+))?')
---
> '(?P<value>'+_QStr+'|[-a-zA-Z0-9.:+*%?!()_#=~]+))?')
45,46c45,46
< _PublicLiteral = '(?P<%s>"[-\'\(\)+,./:=?;!*#@$_%% \n\ra-zA-Z0-9]*"|' \
< "'[-\(\)+,./:=?;!*#@$_%% \n\ra-zA-Z0-9]*')"
---
> _PublicLiteral = '(?P<%s>"[-\'()+,./:=?;!*#@$_%% \n\ra-zA-Z0-9]*"|' \
> "'[-()+,./:=?;!*#@$_%% \n\ra-zA-Z0-9]*')"
Thanks!
====================================================================
Audit trail:
Mon May 22 17:29:00 2000 guido changed notes
Tue Jul 11 08:29:18 2000 guido moved from incoming to open
Follow-Ups:
Date: 2000-Aug-08 04:22
By: sjoerd
Comment:
This bug was fixed in revision 1.18.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110645&group_id=5470