Skip to content
Myr

Fix NameError in example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent d6e7e19 · Browse files · 1 file+1 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−17 removed

  • other:+1 added−17 removed

1 file+1 added−17 removed

modified:README.rst+1 added-17 removed
1Requests: The Simple (e.g. usable) HTTP Module2==============================================34::56 ::::::::: :::::::::: :::::::: ::: ::: :::::::::: :::::::: ::::::::::: :::::::: 7 :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: 8 +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ 9 +#++:++#: +#++:++# +#+ +:+ +#+ +:+ +#++:++# +#++:++#++ +#+ +#++:++#++ 10 +#+ +#+ +#+ +#+ # +#+ +#+ +#+ +#+ +#+ +#+ +#+ 11 #+# #+# #+# #+# +#+ #+# #+# #+# #+# #+# #+# #+# #+# 12 ### ### ########## ###### ### ######## ########## ######## ### ######## 1314 151617Overview18--------194Most existing Python modules for dealing HTTP requests are insane. I have to look up *everything* that I want to do. Most of my worst Python experiences are a result of the various built-in HTTP libraries (yes, even worse than Logging). 56But this one's different. This one's going to be awesome. And simple.7
27 unmodified lines
35 36Uh oh, we're not authorized! Let's add authentication. ::37 38 >>> conv_auth = requests.AuthObject('requeststest', 'requeststest')55 >>> r = requests.get('https://convore.com/api/account/verify.json', conv_auth=auth)39 >>> r = requests.get('https://convore.com/api/account/verify.json', auth=conv_auth)40 41 >>> r.status_code42 200 43
88 unmodified lines