services/python-requests.git
10 years agoFix a couple more malformed :meth: and :class: links
David Pursehouse [Fri, 18 Jul 2014 06:03:29 +0000 (15:03 +0900)]
Fix a couple more malformed :meth: and :class: links

Change-Id: Ie38844a40ec7a483e6ce5e56077be344242bcd99

10 years agoAdd authentication classes to the API document
David Pursehouse [Fri, 18 Jul 2014 06:15:41 +0000 (15:15 +0900)]
Add authentication classes to the API document

Change-Id: Ic1464f246602b809f3c29fbafd6f36b747d5d5df

10 years agoMerge pull request #2136 from dpursehouse/greenfeld-not-greenfield
Ian Cordasco [Wed, 16 Jul 2014 12:14:36 +0000 (07:14 -0500)]
Merge pull request #2136 from dpursehouse/greenfeld-not-greenfield

Fix name misspelling

10 years agoFix name misspelling
David Pursehouse [Wed, 16 Jul 2014 06:13:11 +0000 (15:13 +0900)]
Fix name misspelling

Change-Id: Ied3e600e5673eff48558b634b3c2616d13a3337b

10 years agoMerge pull request #2135 from dpursehouse/fix-meth-and-class-directives
Cory Benfield [Wed, 16 Jul 2014 05:36:40 +0000 (06:36 +0100)]
Merge pull request #2135 from dpursehouse/fix-meth-and-class-directives

Docs: Fix :class: and :meth: directives

10 years agoDocs: Fix :class: and :meth: directives
David Pursehouse [Wed, 16 Jul 2014 01:40:16 +0000 (10:40 +0900)]
Docs: Fix :class: and :meth: directives

A few instances of the directives were malformed and did not
result in hyperlinks in the generated HTML.

Change-Id: I94d93de928ee4ff24a48797baf2ac77598a20704

10 years agoMerge pull request #2134 from nonZero/patch-1
Ian Cordasco [Tue, 15 Jul 2014 17:13:09 +0000 (12:13 -0500)]
Merge pull request #2134 from nonZero/patch-1

removed unneeded parentheses from if clause

10 years agoMerge pull request #2133 from esparta/master
Ian Cordasco [Tue, 15 Jul 2014 17:12:49 +0000 (12:12 -0500)]
Merge pull request #2133 from esparta/master

Update link to pip site on docs/user/install.rst

10 years agoremoved unneeded parentheses from if clause
Udi Oron [Tue, 15 Jul 2014 16:56:47 +0000 (19:56 +0300)]
removed unneeded parentheses from if clause

10 years agoMerge pull request #2131 from dpursehouse/quickstart-doc-updates
Cory Benfield [Tue, 15 Jul 2014 10:40:28 +0000 (11:40 +0100)]
Merge pull request #2131 from dpursehouse/quickstart-doc-updates

Quickstart doc updates

10 years agoRestructure "Redirection and History" section in quickstart documentation
David Pursehouse [Tue, 15 Jul 2014 09:26:51 +0000 (18:26 +0900)]
Restructure "Redirection and History" section in quickstart documentation

Change-Id: Ida38d551e8cd0edaeb92d09de411a6f4a3d0578b

10 years agoMinor tidy-ups in quickstart documentation
David Pursehouse [Tue, 15 Jul 2014 09:26:30 +0000 (18:26 +0900)]
Minor tidy-ups in quickstart documentation

Change-Id: Ia862c17707a2a76182c549db88821636e8402729

10 years agoAdd Timeout exception in API documentation
David Pursehouse [Tue, 15 Jul 2014 09:23:52 +0000 (18:23 +0900)]
Add Timeout exception in API documentation

The Timeout exception is referenced from quickstart.rst but does
not get hyperlinked.

Change-Id: I69ad881bf9d2475c6239ac7b17f68ddbce0d03cd

10 years agoMerge pull request #2130 from dpursehouse/doc-index-updates
Cory Benfield [Tue, 15 Jul 2014 08:57:47 +0000 (09:57 +0100)]
Merge pull request #2130 from dpursehouse/doc-index-updates

Doc index updates

10 years agoDocumentation: Add Sony to list of users
David Pursehouse [Tue, 15 Jul 2014 08:48:23 +0000 (17:48 +0900)]
Documentation: Add Sony to list of users

Change-Id: I0568f27562e5d12f7e5e528b216ca1b1e9cd8256

10 years agoDocumentation: Wrap lines in index.rst
David Pursehouse [Tue, 15 Jul 2014 08:45:09 +0000 (17:45 +0900)]
Documentation: Wrap lines in index.rst

Wrap lines at 80 characters where possible.

Change-Id: Ib254734a7a18b62f965577c368929058258b489f

10 years agoMerge pull request #2128 from tshepang/patch-1
Ian Cordasco [Mon, 14 Jul 2014 14:39:19 +0000 (09:39 -0500)]
Merge pull request #2128 from tshepang/patch-1

Fix broken link

10 years agoFix broken link
Tshepang Lekhonkhobe [Mon, 14 Jul 2014 14:13:23 +0000 (16:13 +0200)]
Fix broken link

10 years agoMerge pull request #2124 from Lukasa/certifi
Kenneth Reitz [Fri, 11 Jul 2014 17:30:07 +0000 (13:30 -0400)]
Merge pull request #2124 from Lukasa/certifi

Depend on certifi

10 years agoInstall certifi with requests.
Cory Benfield [Thu, 10 Jul 2014 20:49:31 +0000 (21:49 +0100)]
Install certifi with requests.

10 years agoPreferentially use certifi to requests.
Cory Benfield [Thu, 10 Jul 2014 20:49:16 +0000 (21:49 +0100)]
Preferentially use certifi to requests.

10 years agoUpdate link to pip site on docs/user/install.rst
Espartaco Palma [Fri, 4 Jul 2014 16:42:56 +0000 (11:42 -0500)]
Update link to pip site on docs/user/install.rst

10 years agoMerge pull request #2115 from sigmavirus24/fix-2092
Kenneth Reitz [Thu, 3 Jul 2014 13:35:55 +0000 (09:35 -0400)]
Merge pull request #2115 from sigmavirus24/fix-2092

Update how we check verify when inspecting env variables

10 years agoFix silly check
Ian Cordasco [Wed, 2 Jul 2014 15:42:00 +0000 (10:42 -0500)]
Fix silly check

10 years agoMerge pull request #2116 from sigmavirus24/fix-2107
Cory Benfield [Wed, 2 Jul 2014 15:41:14 +0000 (16:41 +0100)]
Merge pull request #2116 from sigmavirus24/fix-2107

Replace dead link with StackOverflow answer

10 years agoReplace dead link with StackOverflow answer
Ian Cordasco [Wed, 2 Jul 2014 15:34:25 +0000 (10:34 -0500)]
Replace dead link with StackOverflow answer

10 years agoUpdate how we check verify when inspecting env variables
Ian Cordasco [Wed, 2 Jul 2014 15:26:15 +0000 (10:26 -0500)]
Update how we check verify when inspecting env variables

10 years agoMerge pull request #2112 from np-csu/patch-1
Ian Cordasco [Sun, 29 Jun 2014 13:31:23 +0000 (08:31 -0500)]
Merge pull request #2112 from np-csu/patch-1

Update quickstart.rst

10 years agoUpdate quickstart.rst
np-csu [Sun, 29 Jun 2014 13:05:04 +0000 (21:05 +0800)]
Update quickstart.rst

line 394: correct an input error.

10 years agoMerge pull request #2049 from codedstructure/adapter-proxy_manager_for
Kenneth Reitz [Mon, 23 Jun 2014 19:11:13 +0000 (12:11 -0700)]
Merge pull request #2049 from codedstructure/adapter-proxy_manager_for

Separated out proxy_manager_for to fix #2048

11 years agoMerge pull request #2097 from bkerensa/patch-1
Cory Benfield [Sun, 15 Jun 2014 08:19:34 +0000 (09:19 +0100)]
Merge pull request #2097 from bkerensa/patch-1

Update out-there.rst

11 years agoUpdate out-there.rst
Benjamin Kerensa [Sun, 15 Jun 2014 07:10:09 +0000 (00:10 -0700)]
Update out-there.rst

Remove french blog post which is now a deadlink.

11 years agoMerge pull request #2095 from ericfrederich/redirect_cache
Kenneth Reitz [Thu, 12 Jun 2014 18:42:41 +0000 (14:42 -0400)]
Merge pull request #2095 from ericfrederich/redirect_cache

Redirect cache

11 years agoMerge branch 'master' into redirect_cache
Eric L Frederich [Thu, 12 Jun 2014 12:25:33 +0000 (08:25 -0400)]
Merge branch 'master' into redirect_cache

11 years agodon't make duplicate requests for permanent redirects
Eric L Frederich [Thu, 12 Jun 2014 12:25:21 +0000 (08:25 -0400)]
don't make duplicate requests for permanent redirects

11 years agoMerge pull request #2090 from ericfrederich/fix_308
Kenneth Reitz [Thu, 12 Jun 2014 04:19:44 +0000 (00:19 -0400)]
Merge pull request #2090 from ericfrederich/fix_308

handle 308 redirection the same as 301 and 302

11 years agoUpdate index.rst
Kenneth Reitz [Wed, 11 Jun 2014 20:40:23 +0000 (16:40 -0400)]
Update index.rst

11 years agoRe-add resume to not break existing apps
Eric L Frederich [Wed, 11 Jun 2014 17:27:36 +0000 (13:27 -0400)]
Re-add resume to not break existing apps
as requested by Cory Benfield

11 years agorename resume/resume_incomplete to permanent_redirect according to rfc7238
Eric L Frederich [Wed, 11 Jun 2014 15:08:10 +0000 (11:08 -0400)]
rename resume/resume_incomplete to permanent_redirect according to rfc7238

Use temporary_redirect intead of temporary_moved to make the words
line up nicely ;-)

11 years agohandle 308 redirection the same as 301 and 302
Eric L Frederich [Tue, 10 Jun 2014 20:30:17 +0000 (16:30 -0400)]
handle 308 redirection the same as 301 and 302

11 years agoMerge pull request #2088 from jeffknupp/master
Kenneth Reitz [Tue, 10 Jun 2014 16:02:21 +0000 (12:02 -0400)]
Merge pull request #2088 from jeffknupp/master

various pep-8 cleanups; remove unsused imports; remove unused variables

11 years agoUpdate with style considerations by @kennethreitz
Jeff Knupp [Tue, 10 Jun 2014 15:16:24 +0000 (11:16 -0400)]
Update with style considerations by @kennethreitz

11 years agovarious pep-8 cleanups; remove unsused imports; remove unused variables
Jeff Knupp [Tue, 10 Jun 2014 13:06:22 +0000 (09:06 -0400)]
various pep-8 cleanups; remove unsused imports; remove unused variables

11 years agoMerge pull request #2076 from Lukasa/basic
Kenneth Reitz [Mon, 9 Jun 2014 14:53:23 +0000 (10:53 -0400)]
Merge pull request #2076 from Lukasa/basic

Basic Auth handler sets unicode header value on Python 2

11 years agoMerge pull request #2087 from Lukasa/2616
Ian Cordasco [Sun, 8 Jun 2014 14:44:26 +0000 (09:44 -0500)]
Merge pull request #2087 from Lukasa/2616

Update trivial mentions to RFC 2616.

11 years agoindentation change for code review
Ben Bass [Sun, 8 Jun 2014 14:23:37 +0000 (15:23 +0100)]
indentation change for code review

11 years agoAvoid unnecessary encode/decode cycles.
Cory Benfield [Sun, 8 Jun 2014 09:28:26 +0000 (10:28 +0100)]
Avoid unnecessary encode/decode cycles.

11 years agoForce basic auth strings to native string type
Cory Benfield [Sun, 8 Jun 2014 09:20:32 +0000 (10:20 +0100)]
Force basic auth strings to native string type

11 years agoUpdate trivial mentions to RFC 2616.
Cory Benfield [Sat, 7 Jun 2014 08:53:12 +0000 (09:53 +0100)]
Update trivial mentions to RFC 2616.

11 years agov2.3.1 changelog
Kenneth Reitz [Fri, 30 May 2014 17:36:18 +0000 (13:36 -0400)]
v2.3.1 changelog

11 years agoMerge pull request #2078 from dgouldin/2077
Kenneth Reitz [Fri, 30 May 2014 17:33:29 +0000 (13:33 -0400)]
Merge pull request #2078 from dgouldin/2077

Allow copying of PreparedRequests without headers/cookies

11 years agoAllow copying of PreparedRequests without headers/cookies
David Gouldin [Fri, 30 May 2014 17:11:53 +0000 (10:11 -0700)]
Allow copying of PreparedRequests without headers/cookies

11 years agoMerge pull request #2072 from sigmavirus24/fix-urlencoded-bytes
Kenneth Reitz [Thu, 29 May 2014 14:39:42 +0000 (10:39 -0400)]
Merge pull request #2072 from sigmavirus24/fix-urlencoded-bytes

Check for basestring, not just str

11 years agoMerge pull request #2074 from Lukasa/filedoc
Cory Benfield [Wed, 28 May 2014 16:01:10 +0000 (17:01 +0100)]
Merge pull request #2074 from Lukasa/filedoc

Ensure that we open files in binary mode in the docs.

11 years agoEnsure that we open files in binary mode.
Cory Benfield [Wed, 28 May 2014 15:59:57 +0000 (16:59 +0100)]
Ensure that we open files in binary mode.

11 years agoRemove unnecessary check for builtin_str
Ian Cordasco [Wed, 28 May 2014 13:17:18 +0000 (08:17 -0500)]
Remove unnecessary check for builtin_str

11 years agoCheck for basestring, not just str
Ian Cordasco [Wed, 28 May 2014 01:29:44 +0000 (20:29 -0500)]
Check for basestring, not just str

Fixes #2071

11 years agoMerge pull request #2059 from jschneier/master
Kenneth Reitz [Tue, 27 May 2014 15:28:11 +0000 (11:28 -0400)]
Merge pull request #2059 from jschneier/master

remove unused IteratorProxy

11 years agoMerge pull request #2064 from mgeisler/simplejson-syntax-error-import
Kenneth Reitz [Tue, 27 May 2014 15:25:54 +0000 (11:25 -0400)]
Merge pull request #2064 from mgeisler/simplejson-syntax-error-import

compat: handle SyntaxError when importing simplejson

11 years agoMerge pull request #2065 from mgeisler/tox
Kenneth Reitz [Tue, 27 May 2014 15:24:47 +0000 (11:24 -0400)]
Merge pull request #2065 from mgeisler/tox

Fix Python 3.2 compatibility in tests

11 years agoMerge pull request #2069 from Lukasa/request
Kenneth Reitz [Tue, 27 May 2014 15:11:21 +0000 (11:11 -0400)]
Merge pull request #2069 from Lukasa/request

Document and initialise Response.request

11 years agoDocument and initialise Response.request
Cory Benfield [Mon, 26 May 2014 15:40:45 +0000 (16:40 +0100)]
Document and initialise Response.request

11 years agotest: restore Python 3.2 compatibility
Martin Geisler [Sun, 25 May 2014 22:31:10 +0000 (00:31 +0200)]
test: restore Python 3.2 compatibility

The tests were broken because they used the u'...' Unicode literal
syntax which disappeared in Python 3.0 to 3.2.

We can work around this by conditionally defining a "u" function which
will produce a Unicode literal on Python 2.x. This is basically the
same approach as taken by the six library often used for writing
cross-version compatible code.

11 years agofaq: add Python 3.4 to list of supported Python versions
Martin Geisler [Sun, 25 May 2014 22:23:21 +0000 (00:23 +0200)]
faq: add Python 3.4 to list of supported Python versions

No code changes were necessary for this.

11 years agofaq: mention that PyPy 2.2 works too
Martin Geisler [Sun, 25 May 2014 22:18:14 +0000 (00:18 +0200)]
faq: mention that PyPy 2.2 works too

The FAQ says that PyPy 1.9 is supported. On my Debian Unstable, I can
install PyPy 2.2.1 and the tests work with that version too.

11 years agocompat: handle SyntaxError when importing simplejson
Martin Geisler [Sun, 25 May 2014 22:44:09 +0000 (00:44 +0200)]
compat: handle SyntaxError when importing simplejson

We officially support Python 2.6 to 3.3, but simplejson does not
support Python 3.1 or 3.2:

  https://github.com/simplejson/simplejson/issues/66

Importing simplejson on Python 3.2 results in a SyntaxError because
simplejson uses the u'...' syntax (the syntax was not supported in
Python 3.0 to 3.2).

Support for loading simplejson instead of the stdlib json module was
added by #710:

  https://github.com/kennethreitz/requests/pull/710

No mention was made of the lack of support for Python 3.2, but it was
mentioned that simplejson can be faster than the stdlib json module.

11 years agoremove unused IteratorProxy
Josh Schneier [Fri, 23 May 2014 15:52:17 +0000 (11:52 -0400)]
remove unused IteratorProxy

11 years agoallow pool_kwargs to be specified in init_poolmanager
Ben Bass [Sun, 18 May 2014 19:24:35 +0000 (20:24 +0100)]
allow pool_kwargs to be specified in init_poolmanager

11 years agoimprove `proxy_manager_for` re-usability by subclass
Ben Bass [Sun, 18 May 2014 19:10:35 +0000 (20:10 +0100)]
improve `proxy_manager_for` re-usability by subclass

11 years agoupdate AUTHORS.rst
Ben Bass [Sat, 17 May 2014 22:22:15 +0000 (23:22 +0100)]
update AUTHORS.rst

11 years agoFactor out HTTPAdapter.proxy_manager_for for #2048
Ben Bass [Sat, 17 May 2014 22:15:51 +0000 (23:15 +0100)]
Factor out HTTPAdapter.proxy_manager_for for #2048

11 years agoMerge pull request #2047 from Hasimir/master
Cory Benfield [Sat, 17 May 2014 15:37:31 +0000 (16:37 +0100)]
Merge pull request #2047 from Hasimir/master

Fixed paragraph formatting in Urllib3/MIT License.

11 years agoFixed paragraph formatting in Urllib3/MIT License.
Ben McGinnes [Sat, 17 May 2014 15:16:27 +0000 (01:16 +1000)]
Fixed paragraph formatting in Urllib3/MIT License.

11 years agoMerge pull request #2046 from alex/patch-2
Ian Cordasco [Fri, 16 May 2014 21:05:41 +0000 (16:05 -0500)]
Merge pull request #2046 from alex/patch-2

Fixed a typo

11 years agoignot dist
Kenneth Reitz [Fri, 16 May 2014 19:30:48 +0000 (15:30 -0400)]
ignot dist

11 years agoFixed a typo
Alex Gaynor [Fri, 16 May 2014 18:11:05 +0000 (14:11 -0400)]
Fixed a typo

11 years agov2.3.0 v2.3.0
Kenneth Reitz [Fri, 16 May 2014 17:55:47 +0000 (13:55 -0400)]
v2.3.0

11 years agohistory update
Kenneth Reitz [Fri, 16 May 2014 17:55:06 +0000 (13:55 -0400)]
history update

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Fri, 16 May 2014 17:44:21 +0000 (13:44 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agoMerge pull request #2040 from Lukasa/clog
Kenneth Reitz [Fri, 16 May 2014 14:37:32 +0000 (10:37 -0400)]
Merge pull request #2040 from Lukasa/clog

Initial 2.3.0 changelog.

11 years agoMerge pull request #2041 from pawroman/patch-1
Cory Benfield [Tue, 13 May 2014 10:31:24 +0000 (11:31 +0100)]
Merge pull request #2041 from pawroman/patch-1

Fix typo in advanced.rst docs

11 years agoFix typo in advanced.rst docs
Paweł Romanowski [Tue, 13 May 2014 08:11:40 +0000 (10:11 +0200)]
Fix typo in advanced.rst docs

`Sesssion` -> `Session`

11 years agoMerge pull request #1944 from schlamar/redirect-decoding
Kenneth Reitz [Mon, 12 May 2014 20:50:33 +0000 (16:50 -0400)]
Merge pull request #1944 from schlamar/redirect-decoding

Catch errors while handling redirects

11 years agoAdded test for redirect with wrong gzipped header.
schlamar [Sat, 15 Mar 2014 20:29:14 +0000 (21:29 +0100)]
Added test for redirect with wrong gzipped header.

11 years agoAdded test case to handle response of streamed redirects.
schlamar [Thu, 13 Mar 2014 17:27:12 +0000 (18:27 +0100)]
Added test case to handle response of streamed redirects.

Credits go to @zackw.

11 years agoRead content in Session.send instead of Adapter.send.
schlamar [Mon, 10 Mar 2014 07:07:10 +0000 (08:07 +0100)]
Read content in Session.send instead of Adapter.send.

11 years agoCatch possible exceptions while consuming content of redirect responses.
schlamar [Mon, 10 Mar 2014 06:54:22 +0000 (07:54 +0100)]
Catch possible exceptions while consuming content of redirect responses.

11 years agoInitial 2.3.0 changelog.
Cory Benfield [Mon, 12 May 2014 19:27:10 +0000 (20:27 +0100)]
Initial 2.3.0 changelog.

11 years agoCaseInsensitiveDict now looks like a normal dict
Kenneth Reitz [Mon, 12 May 2014 19:10:15 +0000 (15:10 -0400)]
CaseInsensitiveDict now looks like a normal dict

11 years agoMerge pull request #1972 from avidas/response_str
Kenneth Reitz [Mon, 12 May 2014 19:08:31 +0000 (15:08 -0400)]
Merge pull request #1972 from avidas/response_str

Add __str__ to case insensitive dict

11 years agoMerge pull request #1924 from schlamar/proxy-default-scheme
Kenneth Reitz [Mon, 12 May 2014 19:05:56 +0000 (15:05 -0400)]
Merge pull request #1924 from schlamar/proxy-default-scheme

Default proxy scheme to HTTP

11 years agoMerge pull request #1937 from jaraco/master
Kenneth Reitz [Mon, 12 May 2014 19:04:35 +0000 (15:04 -0400)]
Merge pull request #1937 from jaraco/master

Improved decoding support for Response.iter_content and iter_lines

11 years agoMerge pull request #2038 from dstufft/update-urllib3
Kenneth Reitz [Mon, 12 May 2014 18:50:36 +0000 (14:50 -0400)]
Merge pull request #2038 from dstufft/update-urllib3

Update urllib3 to 4fb351cd2

11 years agoUpdate urllib3 to 4fb351cd2
Donald Stufft [Mon, 12 May 2014 18:43:50 +0000 (14:43 -0400)]
Update urllib3 to 4fb351cd2

11 years agoRemove references to not-yet-made 2.3.0 release.
Cory Benfield [Sat, 3 May 2014 09:59:14 +0000 (10:59 +0100)]
Remove references to not-yet-made 2.3.0 release.

11 years agoMerge pull request #2026 from Lukasa/updateurllib3
Kenneth Reitz [Fri, 2 May 2014 19:09:39 +0000 (15:09 -0400)]
Merge pull request #2026 from Lukasa/updateurllib3

ImportError: No module named 'requests.packages.urllib3.util'

11 years agoMerge pull request #2032 from dstufft/patch-1
Kenneth Reitz [Fri, 2 May 2014 19:09:21 +0000 (15:09 -0400)]
Merge pull request #2032 from dstufft/patch-1

Remove the easy_install section

11 years agoRemove the easy_install section
Donald Stufft [Fri, 2 May 2014 16:51:50 +0000 (12:51 -0400)]
Remove the easy_install section

There's not a lot of good reason to actually call out easy_install at all.
Anyone who prefers it already knows it exists and everyone else should be
directed unambiguously towards pip.

11 years agoAdd urllib3 util package to setup.py.
Cory Benfield [Tue, 29 Apr 2014 17:50:38 +0000 (18:50 +0100)]
Add urllib3 util package to setup.py.

11 years agoMerge pull request #2021 from Lukasa/proxies2
Kenneth Reitz [Mon, 28 Apr 2014 21:49:27 +0000 (17:49 -0400)]
Merge pull request #2021 from Lukasa/proxies2

Don't repopulate proxies if we don't trust the environment.