(cj, domain, name, value, path='/', exp=time.time() + 180 * 24 * 3600)
| 829 | |
| 830 | #@TODO: Remove in 0.4.10 and fix exp in CookieJar.setCookie |
| 831 | def set_cookie(cj, domain, name, value, path='/', exp=time.time() + 180 * 24 * 3600): |
| 832 | args = map(encode, [domain, name, value, path]) + [int(exp)] |
| 833 | return cj.setCookie(*args) |
| 834 | |
| 835 | |
| 836 | def set_cookies(cj, cookies): |
no test coverage detected