Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies top-level function does not exist, but shows up in docs #67

Closed
cdunklau opened this issue Jul 29, 2014 · 2 comments
Closed

Cookies top-level function does not exist, but shows up in docs #67

cdunklau opened this issue Jul 29, 2014 · 2 comments

Comments

@cdunklau
Copy link

http://treq.readthedocs.org/en/latest/howto.html#cookies

The example here does not work on current master, since treq does not have "cookies" as a top level name. The closest thing I found was the treq.response._Response.cookies method.

@jonathanj
Copy link
Contributor

I suspect this example is supposed to read:

    # ...
    def _get_jar(resp):
        jar = resp.cookies()
        # ...

@dreid
Copy link
Contributor

dreid commented Aug 29, 2014

I've replaced it with the response method.

@dreid dreid closed this as completed Aug 29, 2014
pawelmhm pushed a commit to pawelmhm/treq that referenced this issue Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants