So, I'm thinking we should put this fixed version of Cookie.py directly 
into Webware and force it to use its own fixed private copy for any Python 
version prior to 2.2.  Does anyone disagree?

I suppose before we do that, we should make sure that the fixed version is 
still compatible with Python 1.5.2, 2.0, and 2.1.

At 10:39 AM 10/1/01 -0400, Jeff Johnson wrote:
>I checked Python 2.2.a4 Cookie.py before reporting the bug.  It looks
>like they fixed it already.  Here's their version:
>
>_LegalCharsPatt  = r"[\w\d!#%&'~_`><@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=]"
>_CookiePattern = re.compile(
>     r"(?x)"                       # This is a Verbose pattern
>     r"(?P<key>"                   # Start of group 'key'
>     ""+ _LegalCharsPatt +"+?"     # Any word of at least one letter,
>nongreedy
>     r")"                          # End of group 'key'
>     r"\s*=\s*"                    # Equal Sign
>     r"(?P<val>"                   # Start of group 'val'
>     r'"(?:[^\\"]|\\.)*"'            # Any doublequoted string
>     r"|"                            # or
>     ""+ _LegalCharsPatt +"*"        # Any word or empty string
>     r")"                          # End of group 'val'
>     r"\s*;?"                      # Probably ending in a semi-colon
>     )

--

- Geoff Talvola
   [EMAIL PROTECTED]

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to