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
Provenance
- Commit
27aad36- Tree
d1b66f8- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
Kenneth Reitz <me@kennethreitz.org>- Parent 1
44dbf8c- Parent 2
6e76aae
6 files changed+20 added−22 removed
modified:docs/community/release-process.rst+8 added-9 removed
17 unmodified lines18 Breaking changes are changes that break backwards compatibility with prior19 versions. If the project were to change the ``text`` attribute on a20 ``Response`` object to a method, that would only happen in a Major release.21 22-Major releases may also include miscellaneous bug fixes and upgrades to23-vendored packages. The core developers of Requests are committed to providing24-a good user experience. This means we're also committed to preserving25-backwards compatibility as much as possible. Major releases will be infrequent26-and will need strong justifications before they are considered.22+Major releases may also include miscellaneous bug fixes. The core developers of23+Requests are committed to providing a good user experience. This means we're24+also committed to preserving backwards compatibility as much as possible. Major25+releases will be infrequent and will need strong justifications before they are26+considered.27 28 Minor Releases29 --------------30 31-A minor release will not include breaking changes but may include32-miscellaneous bug fixes and upgrades to vendored packages. If the previous33-version of Requests released was ``v10.2.7`` a minor release would be34-versioned as ``v10.3.0``.31+A minor release will not include breaking changes but may include miscellaneous32+bug fixes. If the previous version of Requests released was ``v10.2.7`` a minor33+release would be versioned as ``v10.3.0``.34 35 Minor releases will be backwards compatible with releases that have the same36 major version number. In other words, all versions that would start with37 ``v10.`` should be compatible with each other.18 unmodified linesmodified:docs/user/advanced.rst+8 added-9 removed
272 unmodified lines273 274 CA Certificates275 ---------------276 277-By 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 Requests279-version. This means that if you pin a Requests version your certificates can280-become extremely out of date.277+Requests uses certificates from the package `certifi`_. This allows for users278+to update their trusted certificates without changing the version of Requests.279 282-From Requests version 2.4.0 onwards, Requests will attempt to use certificates283-from `certifi`_ if it is present on the system. This allows for users to update284-their trusted certificates without having to change the code that runs on their285-system.280+Before version 2.16, Requests bundled a set of root CAs that it trusted,281+sourced from the `Mozilla trust store`_. The certificates were only updated282+once for each Requests version. When ``certifi`` was not installed, this led to283+extremely out-of-date certificate bundles when using significantly older284+versions of Requests.285 286 For the sake of security we recommend upgrading certifi frequently!287 288 .. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection660 unmodified lines949 passed-through to `urllib3`. We'll make a Transport Adapter that instructs the950 library to use SSLv3::951 952 import ssl953+ from urllib3.poolmanager import PoolManager954 955 from requests.adapters import HTTPAdapter956- from requests.packages.urllib3.poolmanager import PoolManager956 957 958 class Ssl3HttpAdapter(HTTPAdapter):959 """"Transport adapter" that allows us to use SSLv3."""76 unmodified linesmodified:docs/user/quickstart.rst+1 added-1 removed
169 unmodified lines170 171 >>> r = requests.get('https://api.github.com/events', stream=True)172 173 >>> r.raw174- <requests.packages.urllib3.response.HTTPResponse object at 0x101194810>174+ <urllib3.response.HTTPResponse object at 0x101194810>175 176 >>> r.raw.read(10)177 '\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03'178 378 unmodified linesmodified:docs/api.rst+1 added-1 removed
179 unmodified lines180 HTTPConnection.debuglevel = 1181 182 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 = True187 188 requests.get('http://httpbin.org/headers')72 unmodified linesmodified:docs/index.rst+1 added-1 removed
57 unmodified lines58 59 User Testimonials60 -----------------61 62-Twitter, Spotify, Microsoft, Amazon, Lyft, BuzzFeed, Reddit, The NSA, Her Majesty's Government, Google, Twilio, Runscope, Mozilla, Heroku,62+Nike, Twitter, Spotify, Microsoft, Amazon, Lyft, BuzzFeed, Reddit, The NSA, Her Majesty's Government, Google, Twilio, Runscope, Mozilla, Heroku,63 PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington64 Post, SoundCloud, Kippt, Sony, and Federal U.S.65 Institutions that prefer to be unnamed claim to use Requests internally.66 105 unmodified linesmodified:requests/help.py+1 added-1 removed
11 unmodified lines12 13 from . import __version__ as requests_version14 15 try:16- from .packages.urllib3.contrib import pyopenssl16+ from urllib3.contrib import pyopenssl17 except ImportError:18 pyopenssl = None19 OpenSSL = None20 cryptography = None100 unmodified lines