David Gouldin
32f600b083
Allow copying of PreparedRequests without headers/cookies
2014-05-30 10:11:53 -07:00
kennethreitz
69996114d9
Merge pull request #2072 from sigmavirus24/fix-urlencoded-bytes
...
Check for basestring, not just str
2014-05-29 10:39:42 -04:00
Cory Benfield
785e4ab360
Merge pull request #2074 from Lukasa/filedoc
...
Ensure that we open files in binary mode in the docs.
2014-05-28 17:01:10 +01:00
Cory Benfield
a2413e010f
Ensure that we open files in binary mode.
2014-05-28 16:59:57 +01:00
Ian Cordasco
5ab79e2514
Remove unnecessary check for builtin_str
2014-05-28 08:17:18 -05:00
Ian Cordasco
3faff0b8ea
Check for basestring, not just str
...
Fixes #2071
2014-05-27 20:29:44 -05:00
kennethreitz
6c72509f5b
Merge pull request #2059 from jschneier/master
...
remove unused IteratorProxy
2014-05-27 11:28:11 -04:00
kennethreitz
e71282394c
Merge pull request #2064 from mgeisler/simplejson-syntax-error-import
...
compat: handle SyntaxError when importing simplejson
2014-05-27 11:25:54 -04:00
kennethreitz
ddd748e67a
Merge pull request #2065 from mgeisler/tox
...
Fix Python 3.2 compatibility in tests
2014-05-27 11:24:47 -04:00
kennethreitz
0d40d97d3e
Merge pull request #2069 from Lukasa/request
...
Document and initialise Response.request
2014-05-27 11:11:21 -04:00
Cory Benfield
3346ad1134
Document and initialise Response.request
2014-05-26 16:40:45 +01:00
Martin Geisler
c8916a08de
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.
2014-05-26 16:20:39 +02:00
Martin Geisler
f4d1bbb7c5
faq: add Python 3.4 to list of supported Python versions
...
No code changes were necessary for this.
2014-05-26 16:20:03 +02:00
Martin Geisler
5eea4a3767
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.
2014-05-26 16:19:17 +02:00
Martin Geisler
3b0fcb620d
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.
2014-05-26 00:56:35 +02:00
Josh Schneier
7815953cb4
remove unused IteratorProxy
2014-05-23 11:52:17 -04:00
Cory Benfield
a7c218480d
Merge pull request #2047 from Hasimir/master
...
Fixed paragraph formatting in Urllib3/MIT License.
2014-05-17 16:37:31 +01:00
Ben McGinnes
eebae9c63b
Fixed paragraph formatting in Urllib3/MIT License.
2014-05-18 01:16:27 +10:00
Ian Cordasco
c43ecd1c47
Merge pull request #2046 from alex/patch-2
...
Fixed a typo
2014-05-16 16:05:41 -05:00
Kenneth Reitz
76c09e7076
ignot dist
2014-05-16 15:30:48 -04:00
Alex Gaynor
53d3519a35
Fixed a typo
2014-05-16 14:11:05 -04:00
Kenneth Reitz
6366d3dd19
v2.3.0
v2.3.0
2014-05-16 13:55:47 -04:00
Kenneth Reitz
b26c85f081
history update
2014-05-16 13:55:06 -04:00
Kenneth Reitz
343db40375
Merge remote-tracking branch 'origin/master'
2014-05-16 13:44:21 -04:00
kennethreitz
bbed65d100
Merge pull request #2040 from Lukasa/clog
...
Initial 2.3.0 changelog.
2014-05-16 10:37:32 -04:00
Cory Benfield
24986f853c
Merge pull request #2041 from pawroman/patch-1
...
Fix typo in advanced.rst docs
2014-05-13 11:31:24 +01:00
Paweł Romanowski
a7e7241616
Fix typo in advanced.rst docs
...
`Sesssion` -> `Session`
2014-05-13 10:11:40 +02:00
kennethreitz
739d153ef7
Merge pull request #1944 from schlamar/redirect-decoding
...
Catch errors while handling redirects
2014-05-12 16:50:33 -04:00
schlamar
16459910a9
Added test for redirect with wrong gzipped header.
2014-05-12 22:45:45 +02:00
schlamar
5e860c08d8
Added test case to handle response of streamed redirects.
...
Credits go to @zackw.
2014-05-12 22:45:45 +02:00
schlamar
59c8d81381
Read content in Session.send instead of Adapter.send.
2014-05-12 22:42:54 +02:00
schlamar
c2a1f28a2e
Catch possible exceptions while consuming content of redirect responses.
2014-05-12 22:42:53 +02:00
Cory Benfield
679ab5bc20
Initial 2.3.0 changelog.
2014-05-12 20:30:10 +01:00
Kenneth Reitz
c15a8f8a3d
CaseInsensitiveDict now looks like a normal dict
2014-05-12 15:10:15 -04:00
kennethreitz
5893cfcd90
Merge pull request #1972 from avidas/response_str
...
Add __str__ to case insensitive dict
2014-05-12 15:08:31 -04:00
kennethreitz
c023f06aad
Merge pull request #1924 from schlamar/proxy-default-scheme
...
Default proxy scheme to HTTP
2014-05-12 15:05:56 -04:00
kennethreitz
569cd23c00
Merge pull request #1937 from jaraco/master
...
Improved decoding support for Response.iter_content and iter_lines
2014-05-12 15:04:35 -04:00
kennethreitz
be2674bf3c
Merge pull request #2038 from dstufft/update-urllib3
...
Update urllib3 to 4fb351cd2
2014-05-12 14:50:36 -04:00
Donald Stufft
626c48e947
Update urllib3 to 4fb351cd2
2014-05-12 14:43:50 -04:00
Cory Benfield
07f9a7ea02
Remove references to not-yet-made 2.3.0 release.
2014-05-03 10:59:14 +01:00
kennethreitz
02a76b79a1
Merge pull request #2026 from Lukasa/updateurllib3
...
ImportError: No module named 'requests.packages.urllib3.util'
2014-05-02 15:09:39 -04:00
kennethreitz
8f12f948b1
Merge pull request #2032 from dstufft/patch-1
...
Remove the easy_install section
2014-05-02 15:09:21 -04:00
Donald Stufft
31762899a0
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.
2014-05-02 12:51:50 -04:00
Cory Benfield
b8049ba201
Add urllib3 util package to setup.py.
2014-04-29 18:50:38 +01:00
kennethreitz
54541a9927
Merge pull request #2021 from Lukasa/proxies2
...
Don't repopulate proxies if we don't trust the environment.
2014-04-28 17:49:27 -04:00
Cory Benfield
142b26ea7b
Clearer description of Response.close().
2014-04-28 19:42:30 +01:00
Kenneth Reitz
7fa9799e28
sidebar update
2014-04-26 09:28:05 -04:00
Kenneth Reitz
3e568eb3b0
sidebar update
2014-04-26 09:27:06 -04:00
Cory Benfield
459f8dfccb
Don't repopulate proxies if we don't trust the env.
2014-04-26 13:05:01 +01:00
kennethreitz
dae4026c18
Merge pull request #2017 from Ayper/master
...
Update urllib to 1.8.2
2014-04-25 23:04:54 -04:00