| 313 | |
| 314 | |
| 315 | class FakeResponse: |
| 316 | def __init__(self, headers=[], url=None): |
| 317 | """ |
| 318 | headers: list of RFC822-style 'Key: value' strings |
| 319 | """ |
| 320 | import email |
| 321 | self._headers = email.message_from_string("\n".join(headers)) |
| 322 | self._url = url |
| 323 | def info(self): return self._headers |
| 324 | |
| 325 | def interact_2965(cookiejar, url, *set_cookie_hdrs): |
| 326 | return _interact(cookiejar, url, set_cookie_hdrs, "Set-Cookie2") |
no outgoing calls
searching dependent graphs…