| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
The documentation for CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED were
misleading and partly wrong. It fails to explain that OpenSSL behaves
differently in client and server mode. Also OpenSSL does validate the
cert chain everytime. With SSL_VERIFY_NONE a validation error is not
fatal in client mode and does not request a client cert in server mode.
Also discourage people from using CERT_OPTIONAL in client mode.
(cherry picked from commit ef24b6c54d40e7820456873a6eab6ef57d2bd0db)
Co-authored-by: Christian Heimes <christian@python.org>
|
| |
|
|
|
|
|
|
|
| |
(GH-7631) (#7633)
The docs claimed that a list of EmailMessage objects could be
passed to set_content(), but this was never implemented.
(cherry picked from commit 2c071cebe67f517f191f4074757a79b0f597d886)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A datetime object d is aware if d.tzinfo is not None and
d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None,
or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None,
d is naive.
This commit ensures that instances with non-None d.tzinfo, but
d.tzinfo.utcoffset(d) returning None are treated as naive.
In addition, C acceleration code will raise TypeError if
d.tzinfo.utcoffset(d) returns an object with the type other than
timedelta.
* Updated the documentation.
Assume that the term "naive" is defined elsewhere and remove the
not entirely correct clarification. Thanks, Tim.
(cherry picked from commit 877b23202b7e7d4f57b58504fd0eb886e8c0b377)
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
|
| |
|
|
|
|
| |
Users can now click on context lines.
(cherry picked from commit af4b0130d44bf8a1ff4f7b46195d1dc79add444a)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
|
|
|
| |
(cherry picked from commit 0e0534c4024c181aa47a300142c59eeeee71db46)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
| |
This is a fixup to 19a44f63c738388ef3c8515348b4ffc061dfd627
(cherry picked from commit 7e0d882a98169e6d8d1507224b83ff0264c2afee)
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 1cbdb2208aa309cf288ee0b53f0ecd85279bb934)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
|
| |
ConfigParser/RawConfigParser (GH-7494) (GH-7542)
(cherry picked from commit 3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit c0d062f523b16331444ff910e4596ee5608c8170)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
|
| |
|
|
|
| |
(cherry picked from commit 6860629d87d0f6728ff7430453d4900b695adf7b)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 9ef1b0690b90c526798b6b3125b0fa7ae98319a2)
Co-authored-by: Mayank Singhal <17mayank.singhal@gmail.com>
|
| |
|
|
|
|
| |
A few wording improvements to dict ordering documentation.
(cherry picked from commit d3ed67d14ed401dfe2b5d07b6941adc3ecacb268)
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
|
| |
|
|
|
| |
(cherry picked from commit bb6366bd7570ff3b74bc66095540bea78f31504e)
Co-authored-by: Anthony Sottile <asottile@umich.edu>
|
| |
|
|
|
|
| |
Also, standardize indentation of generated tables.
(cherry picked from commit 7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
| |
|
|
|
|
|
| |
Document that the default value of repeat changed from 3 to 5 in
Python 3.7.
(cherry picked from commit 3ef769fcd378a7f1cda19c0dfec2e79613d79e48)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
|
|
|
| |
(cherry picked from commit af1ec97a6d1dde68b2dc0ee9b78965eb219061a8)
Co-authored-by: Tobias Kunze <r@rixx.de>
|
| |
|
|
|
| |
(cherry picked from commit f822549653d8d09bffff5b7dcddfdf12679a787c)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230)
Co-authored-by: Tobias Kunze <r@rixx.de>
|
| |
|
|
|
|
| |
The bytes parameter uses big endian.
(cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83)
Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
* Fix AttributeError (not all SSL exceptions have 'errno' attribute)
* Increase default handshake timeout from 10 to 60 seconds
* Make sure start_tls can be cancelled correctly
* Make sure any error in SSLProtocol gets propagated (instead of just being logged)
(cherry picked from commit 9602643120a509858d0bee4215d7f150e6125468)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
| |
|
|
|
|
|
|
| |
(GH-6316)
`writerows()` takes an iterable.
(cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-7296) (#7300)
(cherry picked from commit c0d341d49b3ffc8b0037e501c246271be9c69f55)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
|
| |
|
|
|
|
|
| |
documentation. (GH-7297) (GH-7302)
(cherry picked from commit 23cee80cfade1a9019c52b3a17d8e5c1b5db17e2)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
|
| |
|
|
|
|
| |
85% of them are already links.
(cherry picked from commit 0a36ac1a09587735237c5978ebd046313922869c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 02e2a085dc1740b1cbf4ba2ed77335c84ce8a367)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-7217) (#7227)
* bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217)
Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed
futures when a timeout accurs.
(cherry picked from commit f9aeca2085464838f04bf13f816a1f861d43541f)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* Update asyncio-task.rst
|
| |
|
|
|
|
|
|
|
|
| |
(GH-7195) (GH-7219)
* [3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195).
(cherry picked from commit 1cee216cf383eade641aed22f4ec7d4cb565ecff)
* Fix whatsnew entry about ThreadedHTTPServer. (GH-7220)
(cherry picked from commit a34e424bdbc62b4d83593af1c0d459d8aaac90f3)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, asyncio.wait_for(fut), upon reaching the timeout deadline,
cancels the future and returns immediately. This is problematic for
when *fut* is a Task, because it will be left running for an arbitrary
amount of time. This behavior is iself surprising and may lead to
related bugs such as the one described in bpo-33638:
condition = asyncio.Condition()
async with condition:
await asyncio.wait_for(condition.wait(), timeout=0.5)
Currently, instead of raising a TimeoutError, the above code will fail
with `RuntimeError: cannot wait on un-acquired lock`, because
`__aexit__` is reached _before_ `condition.wait()` finishes its
cancellation and re-acquires the condition lock.
To resolve this, make `wait_for` await for the task cancellation.
The tradeoff here is that the `timeout` promise may be broken if the
task decides to handle its cancellation in a slow way. This represents
a behavior change and should probably not be back-patched to 3.6 and
earlier.
(cherry picked from commit e2b340ab4196e1beb902327f503574b5d7369185)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
|
| |
|
|
|
|
|
| |
(GH-7209) (#7222)
(cherry picked from commit 863b6749093a86810c4077112a857363410cc221)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
| |
|
|
|
| |
(cherry picked from commit e55de2d77f10d524be0b426e587fbc820f76de71)
Co-authored-by: Mandeep Singh <daxlab@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
Remove the docstring attribute of AST types and restore docstring
expression as a first stmt in their body.
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 3e51a3d5927c680d5410ff11ff8d5e5bb9ffb1e7)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
| |
|
|
|
| |
(cherry picked from commit 416c1ebd9896b394790dcb4f9f035b1a44ebe9ff)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
In this commit:
* Support BufferedProtocol in set_protocol() and start_tls()
* Fix proactor to cancel readers reliably
* Update tests to be compatible with OpenSSL 1.1.1
* Clarify BufferedProtocol docs
* Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving
* Rewrite test_start_tls_server_1
(cherry picked from commit dbf102271fcc316f353c7e0a283811b661d128f2)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
| |
|
|
|
|
|
| |
8601. (GH-6702) (GH-6704)
(cherry picked from commit c4994dc00d9828a99510f3851da93b0e1c18361d)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
|
| |
|
|
|
| |
(cherry picked from commit 6e413f4327a68c4c7d62e0b6d0f9144be11dd6cd)
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-6919) (GH-7089)
bpo-26510 in 3.7.0a2 changed the behavior of argparse to make
subparsers required by default, returning to the behavior of 2.7
and 3.2. The behavior was changed in 3.3 to be no longer required.
While it might make more sense to have the default to required,
compatibility with 3.3 through 3.6 is probably less disruptive
than trying to reintroduce compatibility with 2.7 at this point.
This change restores the 3.6 behavior.
(cherry picked from commit 8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04)
Co-authored-by: Ned Deily <nad@python.org>
|
| |
|
|
|
|
|
| |
Add a new block_on_close class attribute to ForkingMixIn and
ThreadingMixIn classes of socketserver to opt-in for pre-3.7 behaviour.
(cherry picked from commit 453bd0bc65b7ea6a18c43da69143ab10d54c0a35)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
TLS 1.3 behaves slightly different than TLS 1.2. Session tickets and TLS
client cert auth are now handled after the initialy handshake. Tests now
either send/recv data to trigger session and client certs. Or tests
ignore ConnectionResetError / BrokenPipeError on the server side to
handle clients that force-close the socket fd.
To test TLS 1.3, OpenSSL 1.1.1-pre7-dev (git master + OpenSSL PR
https://github.com/openssl/openssl/pull/6340) is required.
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 529525fb5a8fd9b96ab4021311a598c77588b918)
|
| |
|
|
|
| |
(cherry picked from commit 28b9178023a445b1da2694774c265cd4b7a244ec)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
| |
|
|
|
|
| |
bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
(cherry picked from commit 8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4)
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Change TLS 1.3 cipher suite settings for compatibility with OpenSSL
1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by
default.
Also update multissltests and Travis config to test with latest OpenSSL.
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit e8eb6cb7920ded66abc5d284319a8539bdc2bae3)
Co-authored-by: Christian Heimes <christian@python.org>
|
| |
|
|
|
| |
(cherry picked from commit 900c48dba3f3eb8fb03ea766a5646f81c3bf3e9c)
Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 63536bd286097e770909052052a21804a5e09b66)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
|
| |
|
|
|
| |
(cherry picked from commit dff46758f267ad6c13096c69c4e1dee17f9969aa)
Co-authored-by: Gregory P. Smith <greg@krypto.org> Google
|
| |
|
|
|
| |
(cherry picked from commit f65e31fee3b55dfb6ed5398179d5c5d6b502dee5)
Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit d8d715f5148d0c10e93a79bc4172fbd9c5b3a86e)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
| |
|
|
|
|
|
|
|
| |
(GH-6915) (GH-6928)
The editline emulation needs to be initialized *after* the name is
defined. This fixes the long open issue.
(cherry picked from commit c2f082e9d164acfa8f96de9526f0f47ae92c426a)
Co-authored-by: Zvezdan Petkovic <zpetkovic@acm.org>
|
| |
|
|
|
| |
(cherry picked from commit 713a9367366c88662c39ed20dd6bce22399299f1)
Co-authored-by: Barry Warsaw <barry@python.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
The ssl module now contains OP_NO_RENEGOTIATION constant, available with
OpenSSL 1.1.0h or 1.1.1.
Note, OpenSSL 1.1.0h hasn't been released yet.
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 67c48016638aac9a15afe6fd6754d53d2bdd6b76)
Co-authored-by: Christian Heimes <christian@python.org>
|