Mercurial > p > roundup > code
view roundup/anypy/cookie_.py @ 6825:b04e44db7d8d
Modify unique token to use url safe characters.
Looks like the merge of the methods I chose cause url unsafe / to be
emitted sometimes. This causes poe post to fail as the url includes
the key and the / messes up the rest route url parsing code.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 07 Aug 2022 03:33:35 -0400 |
| parents | 4cb860c33b37 |
| children | 07ce4e4110f5 |
line wrap: on
line source
try: # Python 3+ from http import cookies as Cookie from http.cookies import CookieError, BaseCookie, SimpleCookie from http.cookies import _getdate as get_cookie_date except ImportError: # Python 2.5-2.7 from Cookie import CookieError, BaseCookie, SimpleCookie from Cookie import _getdate as get_cookie_date
