Skip to content
Myr

Merge branch 'master' of github.com:requests/requests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 44dbf8c, 6e76aae · Browse files · 6 files+20 added−22 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+20 added−22 removed

  • other:+20 added−22 removed

6 files+20 added−22 removed

modified:docs/community/release-process.rst+8 added-9 removed
17 unmodified lines
18Breaking changes are changes that break backwards compatibility with prior19versions. If the project were to change the ``text`` attribute on a20``Response`` object to a method, that would only happen in a Major release.2122Major releases may also include miscellaneous bug fixes and upgrades to23vendored packages. The core developers of Requests are committed to providing24a good user experience. This means we're also committed to preserving25backwards compatibility as much as possible. Major releases will be infrequent26and will need strong justifications before they are considered.22Major releases may also include miscellaneous bug fixes. The core developers of23Requests are committed to providing a good user experience. This means we're24also committed to preserving backwards compatibility as much as possible. Major25releases will be infrequent and will need strong justifications before they are26considered.2728Minor Releases29--------------3031A minor release will not include breaking changes but may include32miscellaneous bug fixes and upgrades to vendored packages. If the previous33version of Requests released was ``v10.2.7`` a minor release would be34versioned as ``v10.3.0``.31A minor release will not include breaking changes but may include miscellaneous32bug fixes. If the previous version of Requests released was ``v10.2.7`` a minor33release would be versioned as ``v10.3.0``.3435Minor releases will be backwards compatible with releases that have the same36major version number. In other words, all versions that would start with37``v10.`` should be compatible with each other.
18 unmodified lines
modified:docs/user/advanced.rst+8 added-9 removed
272 unmodified lines
273274CA Certificates275---------------276277By default, Requests bundles a set of root CAs that it trusts, sourced from the278`Mozilla trust store`_. However, these are only updated once for each Requests279version. This means that if you pin a Requests version your certificates can280become extremely out of date.277Requests uses certificates from the package `certifi`_. This allows for users278to update their trusted certificates without changing the version of Requests.279282From Requests version 2.4.0 onwards, Requests will attempt to use certificates283from `certifi`_ if it is present on the system. This allows for users to update284their trusted certificates without having to change the code that runs on their285system.280Before version 2.16, Requests bundled a set of root CAs that it trusted,281sourced from the `Mozilla trust store`_. The certificates were only updated282once for each Requests version. When ``certifi`` was not installed, this led to283extremely out-of-date certificate bundles when using significantly older284versions of Requests.285286For the sake of security we recommend upgrading certifi frequently!287288.. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection
660 unmodified lines
949passed-through to `urllib3`. We'll make a Transport Adapter that instructs the950library to use SSLv3::951952 import ssl953 from urllib3.poolmanager import PoolManager954955 from requests.adapters import HTTPAdapter956 from requests.packages.urllib3.poolmanager import PoolManager956957958 class Ssl3HttpAdapter(HTTPAdapter):959 """"Transport adapter" that allows us to use SSLv3."""
76 unmodified lines
modified:docs/user/quickstart.rst+1 added-1 removed
169 unmodified lines
170171 >>> r = requests.get('https://api.github.com/events', stream=True)172173 >>> r.raw174 <requests.packages.urllib3.response.HTTPResponse object at 0x101194810>174 <urllib3.response.HTTPResponse object at 0x101194810>175176 >>> r.raw.read(10)177 '\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03'178
378 unmodified lines
modified:docs/api.rst+1 added-1 removed
179 unmodified lines
180 HTTPConnection.debuglevel = 1181182 logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests183 logging.getLogger().setLevel(logging.DEBUG)184 requests_log = logging.getLogger("requests.packages.urllib3")184 requests_log = logging.getLogger("urllib3")185 requests_log.setLevel(logging.DEBUG)186 requests_log.propagate = True187188 requests.get('http://httpbin.org/headers')
72 unmodified lines
modified:docs/index.rst+1 added-1 removed
57 unmodified lines
5859User Testimonials60-----------------6162Twitter, Spotify, Microsoft, Amazon, Lyft, BuzzFeed, Reddit, The NSA, Her Majesty's Government, Google, Twilio, Runscope, Mozilla, Heroku,62Nike, Twitter, Spotify, Microsoft, Amazon, Lyft, BuzzFeed, Reddit, The NSA, Her Majesty's Government, Google, Twilio, Runscope, Mozilla, Heroku,63PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington64Post, SoundCloud, Kippt, Sony, and Federal U.S.65Institutions that prefer to be unnamed claim to use Requests internally.66
105 unmodified lines
modified:requests/help.py+1 added-1 removed
11 unmodified lines
1213from . import __version__ as requests_version1415try:16 from .packages.urllib3.contrib import pyopenssl16 from urllib3.contrib import pyopenssl17except ImportError:18 pyopenssl = None19 OpenSSL = None20 cryptography = None
100 unmodified lines