Mercurial > hg > index.fcgi > www > www-1
comparison pinlib/pinlib.py @ 144:90f3021e3137
myrss2: FEEDS: Remove longform.org; add propublic.org
author | paulo |
---|---|
date | Tue, 28 May 2024 06:23:58 +0000 |
parents | d7d67887102f |
children |
comparison
equal
deleted
inserted
replaced
0:4bcbd4e5a550 | 1:5b6865da29c4 |
---|---|
1 import urlparse | 1 import urlparse |
2 | 2 |
3 | 3 |
4 def parse_cookies(environ): | 4 def parse_cookies(environ): |
5 return urlparse.parse_qs(environ.get("HTTP_COOKIE", "")) | 5 return urlparse.parse_qs(environ.get("HTTP_COOKIE", "").replace("; ", "&")) |
6 | 6 |
7 | 7 |
8 class PinFailError(Exception): | 8 class PinFailError(Exception): |
9 pass | 9 pass |
10 | 10 |