Antti Kaihola
87fb312534
Add myself to the authors list
2018-07-20 10:30:31 +03:00
Antti Kaihola
9a8eb131c9
Documentation for multivalued form-encoded element as a list ( #4700 )
2018-07-20 10:30:31 +03:00
Antti Kaihola
691e9520ed
Add test for multivalued form-encoded element as a list ( #4700 )
2018-07-20 10:30:31 +03:00
Steven M. Vascellaro
4d51e6d201
Remove unused httpbin parameters
...
httpbin is used to mock HTTP endpoints. In these methods, the parameter
goes unused.
2018-07-17 19:39:18 -07:00
Nate Prewitt
5aeec8b661
Merge pull request #4739 from moy/doc-list-of-tuples
...
Document that params and data can be list of tuples everywhere
2018-07-17 15:16:02 -07:00
Matthieu Moy
c008bf3883
Document that 'params' can also be a list of tuples
...
Like we just did for 'data', 'params' follows the same processing and
can also be a list of tuples.
2018-07-17 18:55:55 +02:00
Matthieu Moy
2d1b4482c5
Document that 'data' can be a list of tuples everywhere
...
The documentation for the 'data' parameter of various functions was
inconsistant. The low-level function, used by every convenience API,
internally uses RequestEncodingMixin._encode_params which accepts list
of tuples as well as dictionaries, hence every function taking a data
parameter also accepts a list of tuple.
Keep the documentation short, but provide a link to Request for
details.
2018-07-17 18:45:43 +02:00
kennethreitz
f6e13ccfc4
Update MANIFEST.in
2018-07-12 14:16:01 -04:00
Ian Stapleton Cordasco
4499401a55
Merge pull request #4728 from yan12125/patch-1
...
Fix an invalid escape sequence
2018-07-09 07:19:50 -05:00
Chih-Hsuan Yen
b1a360c2f1
Fix an invalid escape sequence
2018-07-09 01:10:00 +08:00
Nate Prewitt
ef88b9faa6
Merge pull request #4713 from Stevoisiak/fix-docstring-param
...
Misspelled 'proxy' parameter in docstring
2018-06-26 13:32:32 -07:00
Steven M. Vascellaro
5d90638281
Misspelled 'proxy' parameter in docstring
...
The 'proxy' parameter was misspelled as 'proxies' in the docstring.
2018-06-26 14:58:18 -04:00
Nate Prewitt
9fc639d030
Merge pull request #4710 from Stevoisiak/remove-unused-sessions
...
Remove unused session variables
2018-06-26 09:50:40 -07:00
Steven M. Vascellaro
28da72b616
Remove unused session variables
...
Removed local session variables that go unused during testing.
2018-06-26 12:34:15 -04:00
kennethreitz
943a5c8e89
Merge pull request #4709 from Stevoisiak/update-twitter-max-characters
...
Update max Twitter characters to 280
2018-06-25 14:11:39 -04:00
Steven M. Vascellaro
0c036feb89
Update max Twitter characters to 280
...
Twitter expanded the maximum character count per tweet from 140 to 280 in November 2017.
2018-06-25 12:56:14 -04:00
kennethreitz
d79187143f
Merge pull request #4708 from Stevoisiak/stack-overflow-typo
...
Change "StackOverflow" to "Stack Overflow"
2018-06-25 11:48:05 -04:00
Steven M. Vascellaro
3e4efeeb89
Change "StackOverflow" to "Stack Overflow"
...
Add a missing space when referring to "Stack Overflow".
2018-06-25 11:39:07 -04:00
Nate Prewitt
cd97ce90ba
Merge pull request #4685 from Stevoisiak/patch-2
...
Note that session() should not be used
2018-06-21 12:09:06 -07:00
Steven M. Vascellaro
1c13c5e6f3
Document that requests.session() is depreciated
...
Adds a docstring note that `requests.session()` is depreciated. Users should
use `requests.Session()` in versions released after Requests v1.0.
2018-06-21 09:46:16 -04:00
Nate Prewitt
883caaf145
v2.19.1
2018-06-14 06:26:27 -07:00
Ian Stapleton Cordasco
2530323faf
Merge pull request #4683 from martindurant/docstrings_for_optimize
...
Do not alter status_codes docstring if it is None
2018-06-13 10:24:45 -05:00
Martin Durant
8031ec76b8
Do not alter status_codes docstring if it is None
...
With PYTHONOPTIMIZE=2, the current code breaks with TypeError.
2018-06-12 17:52:50 -04:00
Nate Prewitt
991e8b76b7
v2.19.0
...
* Updated HISTORY.rst.
* Moved version pin for idna to allow recent 2.7 release.
* Updated version warning for urllib3 to allow 1.23.
* Updated metadata dunders in __version__.py.
* Removed Python 2.6 trove classifier.
* Removed Python 2.6 reference from README.rst.
2018-06-12 07:38:10 -07:00
Raymond Hettinger
7e297ed95b
Separate collections from collections.abc
2018-06-11 22:14:59 -07:00
Laurent Bachelier
10915e3b0d
Add a public method to get the cookie policy
2018-06-11 22:13:07 -07:00
Laurent Bachelier
ace0c200f4
Add cookie policy related tests
2018-06-11 22:13:07 -07:00
Laurent Bachelier
3ef49272f2
Copy cookie policy when copying a CookieJar
...
Without it, the cookie policy would get lost while making a request.
That would be invisible to the user if the default cookie policy wasn't
changed, of course.
2018-06-11 22:13:07 -07:00
Nate Prewitt
d1aeb7ea8c
Merge pull request #4672 from requests/remove_2.6_refs
...
remove references to 2.6 support in documentation
2018-06-11 07:13:13 -07:00
Nate Prewitt
de64f0f23f
port pyopenssl fix from urllib3
2018-06-10 14:49:13 -07:00
Nate Prewitt
bc46de58e6
remove references to 2.6 support in documentation
2018-06-10 14:48:59 -07:00
Nate Prewitt
16fd7e03a9
Merge pull request #4676 from jdufresne/doc-py3
...
Update Python 2 doc links to Python 3
2018-06-10 08:37:08 -07:00
Jon Dufresne
35a1874912
Update Python 2 doc links to Python 3
...
The Python 3 docs are better maintained and are the future of Python
development.
2018-06-09 20:29:41 -07:00
Nate Prewitt
d98f881118
Merge pull request #4669 from michael-k/patch-1
...
Allow urllib3 1.23
2018-06-05 06:35:08 -07:00
Michael
ac944b7439
Allow urllib3 1.23
...
https://github.com/urllib3/urllib3/blob/1.23/CHANGES.rst#123-2018-06-04
2018-06-05 12:06:03 +00:00
Ian Stapleton Cordasco
00fd4c8eb4
Merge pull request #4661 from ofek/patch-2
...
Response.content minor perf improvement
2018-05-26 19:00:25 -05:00
Ofek Lev
c1b828bc95
Response.content minor perf improvement
2018-05-26 18:20:27 -04:00
Nate Prewitt
fe8290b3d0
updating HISTORY.rst
2018-05-17 13:56:17 -07:00
Rajiv Mayani
8546a15587
The library raises NoneType error when file-pointer (fp) resolves to None.
...
>>> from requests import post
>>> r = post("https://example.com ", files={"file-name": None})
However, when a param value or json field is None they are not included in the request body.
>>> from requests import get
>>> r = get("https://example.com ", params={"file-name": None})
>>> r.request.url
This commit makes the beahviour consistent for files.
2018-05-17 13:56:17 -07:00
Ian Stapleton Cordasco
5f09f0ca7e
Merge pull request #4631 from pradyunsg/patch-1
...
Add long_description_content_type to setup.py
2018-05-17 09:34:06 -05:00
Ian Stapleton Cordasco
8bffd3da5f
Merge branch 'master' into patch-1
2018-05-17 09:12:26 -05:00
Nate Prewitt
9b5071cdb6
Merge pull request #4648 from requests/update_lock_file
...
bring Pipfile.lock up to date with current constraints
2018-05-16 12:31:48 -07:00
Nate Prewitt
c6db87978f
bring Pipfile.lock up to date with current constraints
2018-05-16 07:39:43 -07:00
Nate Prewitt
f3fc892b90
bring HISTORY.rst up to date with recent changes
2018-05-16 07:35:44 -07:00
Ian Stapleton Cordasco
161acb6a50
Merge pull request #4410 from linuxlizard/master
...
Add SHA-256 and SHA-512 digest auth algorithms
2018-05-16 09:06:57 -05:00
Ian Stapleton Cordasco
371ee7cbec
Merge branch 'master' into master
2018-05-16 08:46:26 -05:00
Ian Stapleton Cordasco
80e2637a83
Merge pull request #4647 from requests/appveyor_test
...
fix appveyor
2018-05-16 08:14:37 -05:00
Nate Prewitt
9055b33f6f
install Requests separately on appveyor to fix builds
2018-05-15 23:06:43 -07:00
Nate Prewitt
9616f82905
Merge pull request #4625 from nicktimko/patch-1
...
Certifi.io broken
2018-05-14 09:22:10 -07:00
Nick Timkovich
919c168cdb
Certifi.io broken
...
http://certifi.io/ -> https://certifiio.readthedocs.io/
2018-05-14 09:55:33 -05:00