This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MeiK
Recipients MeiK, blueyed, martin.panter, xtreak
Date 2019-04-23.02:19:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555985962.33.0.17219270518.issue35824@roundup.psfhosted.org>
In-reply-to
Content
You are right, I saw the agreed way of parsing in RFC6265[1], it seems that you should not use regular expressions.

I used http.cookiejar to update the code, but it failed to pass the test: https://github.com/python/cpython/blob/master/Lib/test/test_http_cookies.py#L19. However, other languages and libraries (JavaScript, Requests, http.cookiejar, etc.) cannot parse it. It seems that the contents of the brackets should be escaped. Is this a wrong test case?

I updated the code[2] using http.cookiejar. Is this a good idea?

English is not my native language; please excuse typing errors.

[1] https://tools.ietf.org/html/rfc6265
[2] https://github.com/python/cpython/pull/11665/commits/a03bc75348a4041c7411da3175689c087a98789f
History
Date User Action Args
2019-04-23 02:19:22MeiKsetrecipients: + MeiK, blueyed, martin.panter, xtreak
2019-04-23 02:19:22MeiKsetmessageid: <1555985962.33.0.17219270518.issue35824@roundup.psfhosted.org>
2019-04-23 02:19:22MeiKlinkissue35824 messages
2019-04-23 02:19:22MeiKcreate