services/python-requests.git
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 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 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.

11 years agoClearer description of Response.close().
Cory Benfield [Mon, 28 Apr 2014 18:42:30 +0000 (19:42 +0100)]
Clearer description of Response.close().

11 years agosidebar update
Kenneth Reitz [Sat, 26 Apr 2014 13:28:05 +0000 (09:28 -0400)]
sidebar update

11 years agosidebar update
Kenneth Reitz [Sat, 26 Apr 2014 13:27:06 +0000 (09:27 -0400)]
sidebar update

11 years agoDon't repopulate proxies if we don't trust the env.
Cory Benfield [Sat, 26 Apr 2014 12:05:01 +0000 (13:05 +0100)]
Don't repopulate proxies if we don't trust the env.

11 years agoMerge pull request #2017 from Ayper/master
Kenneth Reitz [Sat, 26 Apr 2014 03:04:54 +0000 (23:04 -0400)]
Merge pull request #2017 from Ayper/master

Update urllib to 1.8.2

11 years agoUpdate urllib to 1.8.2
apr [Thu, 24 Apr 2014 18:43:26 +0000 (14:43 -0400)]
Update urllib to 1.8.2

11 years agoMerge pull request #2010 from Lukasa/philosophy
Kenneth Reitz [Mon, 21 Apr 2014 16:25:01 +0000 (12:25 -0400)]
Merge pull request #2010 from Lukasa/philosophy

[WIP] Update philosophy section

11 years agoFirst pass at update to philosophy section.
Cory Benfield [Fri, 18 Apr 2014 16:28:12 +0000 (17:28 +0100)]
First pass at update to philosophy section.

11 years agoWe're awesome, but don't need to be here twice.
Cory Benfield [Fri, 18 Apr 2014 16:15:45 +0000 (17:15 +0100)]
We're awesome, but don't need to be here twice.

11 years agoMerge pull request #2009 from sigmavirus24/fix-my-name
Cory Benfield [Fri, 18 Apr 2014 16:13:17 +0000 (17:13 +0100)]
Merge pull request #2009 from sigmavirus24/fix-my-name

Fix my name

11 years agoFix my name
Ian Cordasco [Fri, 18 Apr 2014 15:35:44 +0000 (10:35 -0500)]
Fix my name

11 years agoMerge pull request #2005 from ap-Codkelden/master
Kenneth Reitz [Wed, 16 Apr 2014 19:37:29 +0000 (15:37 -0400)]
Merge pull request #2005 from ap-Codkelden/master

SVG logo version

11 years agoSVG logo version (with fonts converted to curves)
ap-Codkelden@github.com [Wed, 16 Apr 2014 15:11:35 +0000 (18:11 +0300)]
SVG logo version (with fonts converted to curves)

11 years agoRevert "Font layer convert to curves"
Kenneth Reitz [Wed, 16 Apr 2014 14:58:30 +0000 (10:58 -0400)]
Revert "Font layer convert to curves"

This reverts commit af21ec6165c40c0c12f8dccc8379eb97de53da20.

11 years agoMerge pull request #1999 from ap-Codkelden/master
Kenneth Reitz [Wed, 16 Apr 2014 14:56:44 +0000 (10:56 -0400)]
Merge pull request #1999 from ap-Codkelden/master

Font layer in logo convert to curves

11 years ago@sigmavirus42
Kenneth Reitz [Tue, 15 Apr 2014 23:15:39 +0000 (19:15 -0400)]
@sigmavirus42

11 years agogithub urls
Kenneth Reitz [Tue, 15 Apr 2014 23:11:58 +0000 (19:11 -0400)]
github urls

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 15 Apr 2014 23:07:52 +0000 (19:07 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agocore contributors
Kenneth Reitz [Tue, 15 Apr 2014 23:07:41 +0000 (19:07 -0400)]
core contributors

11 years ago12,000,000
Kenneth Reitz [Tue, 15 Apr 2014 23:01:41 +0000 (19:01 -0400)]
12,000,000

11 years agoFont layer convert to curves
ap-Codkelden@github.com [Sat, 12 Apr 2014 18:13:52 +0000 (21:13 +0300)]
Font layer convert to curves

11 years agoMerge pull request #1998 from Kapishin/master
Cory Benfield [Thu, 10 Apr 2014 05:46:05 +0000 (06:46 +0100)]
Merge pull request #1998 from Kapishin/master

Fix typo

11 years agoFix typo
Pavlo Kapyshin [Thu, 10 Apr 2014 03:09:36 +0000 (06:09 +0300)]
Fix typo

11 years agoMerge pull request #1991 from gutworth/patch-1
Kenneth Reitz [Tue, 8 Apr 2014 14:19:39 +0000 (10:19 -0400)]
Merge pull request #1991 from gutworth/patch-1

replace reference to crate.io

11 years agoReinstate '$'.
Cory Benfield [Sat, 5 Apr 2014 16:29:00 +0000 (17:29 +0100)]
Reinstate '$'.

11 years agodelete pypi mirror section
Benjamin Peterson [Sat, 5 Apr 2014 15:57:43 +0000 (11:57 -0400)]
delete pypi mirror section

11 years agoMake it more clear where install commands are run (so that newbies don't run them...
Ionel Cristian Mărieș [Sat, 5 Apr 2014 13:40:13 +0000 (16:40 +0300)]
Make it more clear where install commands are run (so that newbies don't run them in the REPL, I've seen it happen :).

11 years agoreplace reference to crate.io
Benjamin Peterson [Sat, 5 Apr 2014 03:58:18 +0000 (23:58 -0400)]
replace reference to crate.io

crate.io is gone, so a different mirror should be used as an example. Also, the list of PyPI mirrors should be mentioned.

11 years agoMerge pull request #1989 from sigmavirus24/HISTORY-updates
Cory Benfield [Thu, 3 Apr 2014 05:51:07 +0000 (06:51 +0100)]
Merge pull request #1989 from sigmavirus24/HISTORY-updates

Make note of the fact that we fixed some CVEs

11 years agoMake note of the fact that we fixed some CVEs
Ian Cordasco [Thu, 3 Apr 2014 00:04:58 +0000 (19:04 -0500)]
Make note of the fact that we fixed some CVEs

11 years agoMerge pull request #1959 from Feng23/master
Kenneth Reitz [Mon, 31 Mar 2014 14:30:36 +0000 (10:30 -0400)]
Merge pull request #1959 from Feng23/master

support request tuple data

11 years agoMerge pull request #1981 from stanhu/master
Kenneth Reitz [Mon, 31 Mar 2014 14:29:30 +0000 (10:29 -0400)]
Merge pull request #1981 from stanhu/master

Update urllib to 1.8 (8a8c601bee)

11 years agoUpdate urllib to 1.8 (8a8c601bee)
Stan Hu [Fri, 28 Mar 2014 23:37:54 +0000 (16:37 -0700)]
Update urllib to 1.8 (8a8c601bee)

11 years agosupport request tuple data
Feng Liu [Fri, 14 Mar 2014 08:24:25 +0000 (16:24 +0800)]
support request tuple data

rewrite the TestModels

Ajust the code

11 years agoMerge pull request #1976 from kennethreitz/fix-redirect-test
Kenneth Reitz [Wed, 26 Mar 2014 15:34:36 +0000 (11:34 -0400)]
Merge pull request #1976 from kennethreitz/fix-redirect-test

The expected value changed for the proxies keyword

11 years agoThe expected value changes for the proxies keyword
Ian Cordasco [Wed, 26 Mar 2014 13:12:31 +0000 (08:12 -0500)]
The expected value changes for the proxies keyword

It used to be None but a recent PR changed that before my last one was merged

11 years agoMerge pull request #1962 from sigmavirus24/fix-history-type
Kenneth Reitz [Mon, 24 Mar 2014 15:45:06 +0000 (11:45 -0400)]
Merge pull request #1962 from sigmavirus24/fix-history-type

Fix #1960: A Response's history should be a list

11 years agoMerge pull request #1963 from sigmavirus24/fix-redirect-methods
Kenneth Reitz [Mon, 24 Mar 2014 15:44:14 +0000 (11:44 -0400)]
Merge pull request #1963 from sigmavirus24/fix-redirect-methods

Fix #1955: Do not use original request in redirect

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 24 Mar 2014 15:39:20 +0000 (11:39 -0400)]
Merge remote-tracking branch 'origin/master'

11 years ago3.4
Kenneth Reitz [Mon, 24 Mar 2014 15:39:15 +0000 (11:39 -0400)]
3.4

11 years agoShorten str for case insensitive dict
Avi Das [Sun, 23 Mar 2014 16:38:37 +0000 (11:38 -0500)]
Shorten str for case insensitive dict

11 years agoMerge pull request #1951 from Lukasa/proxyauth
Kenneth Reitz [Sun, 23 Mar 2014 14:51:48 +0000 (10:51 -0400)]
Merge pull request #1951 from Lukasa/proxyauth

Re-evaluate proxy authorization.

11 years agoFix parenthesis typo
Avi Das [Sat, 22 Mar 2014 21:30:22 +0000 (16:30 -0500)]
Fix parenthesis typo

11 years agoStyle changes thanks to @sigmavirus24.
Cory Benfield [Sat, 22 Mar 2014 21:11:33 +0000 (21:11 +0000)]
Style changes thanks to @sigmavirus24.

11 years agoAdd __str__ to case insensitive dict. Logging headers for debugging purposes is often...
Avi Das [Sat, 22 Mar 2014 20:42:23 +0000 (15:42 -0500)]
Add __str__ to case insensitive dict. Logging headers for debugging purposes is often necessary, and the currently logging the headers would be using __repr__ which would log the implementation detail of headers, caseinsensitivedict. Adding str lends a more printing and log friendly implementation for case insentitice dict