From 8fd480df3fc0665c90ed9e9c18d0ca4eeab349bd Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 14 Feb 2011 02:09:09 -0500 Subject: [PATCH] Fix NameError in example --- README.rst | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/README.rst b/README.rst index b80187a429..1f093b12e3 100644 --- a/README.rst +++ b/README.rst @@ -1,22 +1,6 @@ Requests: The Simple (e.g. usable) HTTP Module ============================================== -:: - - ::::::::: :::::::::: :::::::: ::: ::: :::::::::: :::::::: ::::::::::: :::::::: - :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: - +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ - +#++:++#: +#++:++# +#+ +:+ +#+ +:+ +#++:++# +#++:++#++ +#+ +#++:++#++ - +#+ +#+ +#+ +#+ # +#+ +#+ +#+ +#+ +#+ +#+ +#+ - #+# #+# #+# #+# +#+ #+# #+# #+# #+# #+# #+# #+# #+# - ### ### ########## ###### ### ######## ########## ######## ### ######## - - - - -Overview --------- - Most 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). But this one's different. This one's going to be awesome. And simple. @@ -52,7 +36,7 @@ HTTPS? Basic Authentication? :: Uh oh, we're not authorized! Let's add authentication. :: >>> conv_auth = requests.AuthObject('requeststest', 'requeststest') - >>> r = requests.get('https://convore.com/api/account/verify.json', conv_auth=auth) + >>> r = requests.get('https://convore.com/api/account/verify.json', auth=conv_auth) >>> r.status_code 200