hugovk
006aa3de4f
Drop Python 2.6: OrderedDict is in collections from 2.7
2017-10-17 16:56:56 +03:00
Nate Prewitt
37f1d23c39
Merge remote-tracking branch 'upstream/master' into proposed/3.0.0
2017-10-15 13:59:50 -07:00
Alex Gaynor
c054a722bb
Removed legacy fallback for python3.2
2017-06-25 12:51:15 -04:00
Cory Benfield
c3f4a028bf
Merge branch 'master' into proposed/3.0.0
2017-05-31 10:29:19 +01:00
kennethreitz
8a2014e265
fix compat.py
2017-05-26 22:51:40 -04:00
Nate Prewitt
a889b62c50
Merge branch 'master' into proposed/3.0.0
2017-05-21 16:25:55 -07:00
schlamar
1c38e1f5f6
proxy bypass on Windows without DNS lookups
2017-05-04 10:44:47 +02:00
Cory Benfield
7f88aca8f7
Merge branch 'master' into proposed/3.0.0
2016-11-15 17:16:04 +00:00
Nate Prewitt
40402cd0dd
adding rewind for re-POST bodies
2016-11-02 09:56:56 -06:00
Ian Cordasco
b2f6173a38
Merge remote-tracking branch 'upstream/master' into proposed/3.0.0
...
Conflicts:
requests/__init__.py
requests/sessions.py
tests/test_requests.py
2016-09-06 09:46:02 -05:00
Nate Prewitt
15a3869006
making module docstrings and coding comments consistent
2016-07-19 14:51:14 -06:00
Dave Padovano
09ecb718ae
remove simplejson
2016-03-16 12:24:50 -04:00
kennethreitz
383b20b023
Merge pull request #2412 from sigmavirus24/remove-cruft
...
Remove entirely unnecessary and unused bits from requests.compat
2015-01-27 10:24:25 -08:00
Ian Cordasco
eec44dbbb1
Check that a filename is a basestring instance
...
Instead of only checking one or another type of string-like object that
we accept, let's be able to check both. Previously, we only checked if
the filename was an instance of the native str type which on Python 2
excluded unicode filenames and bytes-like filenames on Python 3.
Fixes #2411
2015-01-20 20:44:52 -06:00
Ian Cordasco
f37fe551bb
Remove entirely unnecessary and unused bits from requests.compat
2015-01-18 21:17:11 -06:00
Ben Edelman
01b58ba04e
Fix a typo in a comment
...
I just fixed a minor typo: "throws" is misspelled as "thows".
2014-12-15 01:37:19 -05:00
Josh Schneier
47d0517d66
handle urllib3 api changes; closes #2045
2014-07-29 23:29:21 -04: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
Ian Cordasco
9379a14cb4
Fix all remaining references to charade
2013-12-18 08:43:18 -06:00
Cory Benfield
79f3e69f5e
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-28 07:42:17 +01:00
James Clarke
93be6916f9
Use urllib to retrieve environment proxies.
...
This has the added benefit of including proxies defined by the OS X System Configuration framework and in the Windows registry, rather than only checking os.environ.
2013-05-31 18:19:34 -07:00
oczkers
40a060cf57
it`s more pep8 now
2013-01-27 02:04:12 +01:00
Kenneth Reitz
2eb63be19a
chardet fixes!
2012-12-01 16:55:09 +01:00
Kenneth Reitz
a5cb6355ed
Merge branch 'master' of github.com:kennethreitz/requests
...
Conflicts:
requests/compat.py
setup.py
2012-11-29 08:35:35 -08:00
Keiji Matsuzaki
b69854e96e
Modified: Change the import statement.
2012-11-29 01:29:13 +09:00
Kenneth Reitz
0af19a05ce
fix chardet import
2012-11-27 12:52:17 -08:00
Jonathan Halcrow
724a3889bc
Make sure that url has fragment removed when using a proxy
2012-10-27 09:54:31 -04:00
Lasse Vang Gravesen
b36863b2c0
quote_plus, unquote_plus added
...
compat.py: relevant imports added
utils.py: then those imports are imported here.
Nothing else was changed, but I saw mentions of quoting later in
utils.py but I wasnt sure what to do about that.
2012-10-22 23:58:49 +02:00
Radu Voicilas
820dfb0495
Making the code more PEP8 compliant
2012-10-09 00:42:49 +03:00
Ian Cordasco
8081d7b15c
Fixes #817 .
...
Use dicts and lists where necessary but accept both dicts and lists of
2-tuples everywhere.
2012-09-02 23:10:28 -04:00
asapo
fc9b8a0214
import cchardet if available
2012-08-27 01:30:04 +09:00
Locker537
42d0a2169e
Whitespace fixes following PEP8.
2012-08-16 17:38:35 -04:00
Cory Benfield
55bf436f8f
Correctly handle encoding numbers when POSTing.
2012-08-06 17:40:27 +01:00
Marcus McCurdy
f60579ddda
Moved fix for #747 to compat module
2012-08-04 09:35:32 -04:00
Kenneth Reitz
f8c98715c3
simplify #710
2012-07-08 00:24:24 -04:00
Kenneth Reitz
a17fdf6224
chardet2
2012-06-28 16:00:00 -07:00
Shivaram Lingamneni
4d6871d917
Further changes to move cookies to CookieJar
2012-05-01 17:00:19 -07:00
Greg Taylor
f8b3141204
Use basestring instead of str to determine when to return headers as-is. This makes sure that unicode instances aren't enumerated.
2012-02-05 13:57:35 -05:00
Kenneth Reitz
04c0bcc9b4
wow.
2012-01-27 11:18:56 -06:00
Kenneth Reitz
e7bcc3b332
oh snap
2012-01-23 01:32:09 -05:00
Kenneth Reitz
fe6882623c
more stuff and things
2012-01-23 00:52:38 -05:00
Kenneth Reitz
11c4315da3
good
2012-01-23 00:43:01 -05:00
Kenneth Reitz
672e66ba5f
compat
2012-01-23 00:34:31 -05:00