| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
https://bugs.python.org/issue34548
(cherry picked from commit c87d9f406bb23657c1b4cd63017bb7bd7693a1fb)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
|
|
|
|
| |
Use "backslashreplace" instead of "unicode-escape". It is not
implementation depended and escapes only non-encodable characters.
Also simplify the code.
(cherry picked from commit 4b860fd)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add SSLContext.post_handshake_auth and
SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake
authentication.
Signed-off-by: Christian Heimes <christian@python.org>q
https://bugs.python.org/issue34670.
(cherry picked from commit 9fb051f032c36b9f6086b79086b4d6b7755a3d70)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34670
|
|
|
|
|
|
|
| |
This makes streamed zips compatible with MacOS Archive Utility and
other applications.
(cherry picked from commit 4ba3b50bfe6d50cd82d208023ea23e203ab50589)
Co-authored-by: Silas Sewell <silas@sewell.org>
|
|
|
|
|
| |
(GH-9328) (GH-9486)
* bpo-29577: allow multiple mixin classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OpenSSL follows the convention that whenever you call a function, it
returns an error indicator value; and if this value is negative, then
you need to go look at the actual error code to see what happened.
Commit c6fd1c1c3a introduced a small mistake in
_ssl__SSLSocket_shutdown_impl: instead of checking whether the error
indicator was negative, it started checking whether the actual error
code was negative, and it turns out that the error codes are never
negative. So the effect was that 'unwrap()' lost the ability to raise
SSL errors.
https://bugs.python.org/issue34759
(cherry picked from commit c0da582b227f311126e278b5553a7fa89c79b054)
Co-authored-by: Nathaniel J. Smith <njs@pobox.com>
|
|
|
|
|
|
|
|
|
|
| |
https://bugs.python.org/issue34623
(cherry picked from commit 026337a7101369297c8083047d2f3c6fc9dd1e2b)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
|
|
|
|
|
|
|
|
|
|
|
| |
We cannot simply call locale.getpreferredencoding() here,
as GDB might have been linked against a different version
of Python with a different encoding and coercion policy
with respect to PEP 538 and PEP 540.
Thanks to Victor Stinner for a hint on how to fix this.
(cherry picked from commit 7279b5125e7c5d84a473d250b27d353cb7f6628e)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
|
|
|
|
|
| |
(cherry picked from commit db1a80e97aa7217c561fb3627f70be1882de9534)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
|
| |
Make it more accurate and not limited to UNIX.
(cherry picked from commit 7d161726e4ddd2b2cdd7ac58a7e9e9ea3f57a807)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
|
|
|
|
|
| |
(cherry picked from commit 2ec872b31e25cee1f983fe07991fb53f3fd1cbac)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
|
| |
There was a missing PyMem_Free(format) in time_strftime().
(cherry picked from commit 91e6c8717b7dcbcc46b189509de5f2d335819f37)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
| |
|
|
|
|
|
| |
(cherry picked from commit b10a64d117de6121ea3e79c467c4107f8f399f3d)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit e247b46cba4f4d32ea96a15dbc36d73265171106)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
| |
(cherry picked from commit 8d1e190fc507a9e304f6817e761e9f628a23cbd8)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 8213eaddf3ce8e87564d2949454903a1484748b5)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit ffef50f1f5907e5f0f175b12088d3e509011f126)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
| |
(cherry picked from commit fd54a45f7987d5b3343c74cb49a12bd39bdad5bc)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
| |
Partially revert changes to Doc/tools/templates/layout.html
accidentally committed in 512d7101098b971837cbb406942215244f636547.
|
|
|
|
|
| |
(cherry picked from commit 76531e2e82319a487d659bc469441bd4b8251608)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
A couple of fixes here to make this more PEP-8:
* Avoid multiple statements on one line with `;` statement separator -- this is very rare in Python and is "generally discouraged" in PEP 8 (and if used, per PEP 8 there shouldn't be a space before the `;`)
* Add output for the first "Formatted String Literals" example. (Side note: are the doctests for this being run? If so, why didn't it fail?)
* Avoid space before `!r`. I have generally not seen spaces before the `!`, and this also matches the style used in the docs here: https://docs.python.org/3/library/string.htmlGH-format-string-syntax
https://bugs.python.org/issue34712
(cherry picked from commit 3705b9862025705ea60041a9e310f99a164db722)
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
|
|
|
|
|
| |
off by default (GH-9379)" (GH-9416)
This reverts commit 144f1e2c6f4a24bd288c045986842c65cc289684.
|
|
|
|
|
|
| |
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
(cherry picked from commit 471503954a91d86cf04228c38134108c67a263b0)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
| |
(cherry picked from commit d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The C accelerated _elementtree module now initializes hash randomization
salt from _Py_HashSecret instead of libexpat's default CPRNG.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
(cherry picked from commit cb5778f00ce48631c7140f33ba242496aaf7102b)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
| |
(cherry picked from commit b042cf10c6084d14279c55a7e0d2d7595ff4e694)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
|
| |
The `gather` method requires to close the parenthesis, but it is being closed twice.
(cherry picked from commit 9c53fa6ad9cd23fb03867b4a1f74264c426c1772)
Co-authored-by: Miguel Ángel García <magmax@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 7bfbda46f49c0b2c43e128835106cf13315b6ae8)
Co-authored-by: Danny Hermes <daniel.j.hermes@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit ac94e38d076aebc56c2ff96a249b5e40f32633ea)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
default (GH-9379)
* bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)
_PyCoreConfig:
* Rename coerce_c_locale to _coerce_c_locale
* Rename coerce_c_locale_warn to _coerce_c_locale_warn
These fields are now private (name prefixed by "_").
(cherry picked from commit 188ebfa475a6f6aa2d0ea14ca8e1fbe7865b6d27)
* bpo-34589: C locale coercion off by default (GH-9073)
Py_Initialize() and Py_Main() cannot enable the C locale coercion
(PEP 538) anymore: it is always disabled. It can now only be enabled
by the Python program ("python3).
test_embed: get_filesystem_encoding() doesn't have to set PYTHONUTF8
nor PYTHONCOERCECLOCALE, these variables are already set in the
parent.
(cherry picked from commit 7a0791b6992d420dc52536257f2f093851ed7215)
* bpo-34589: Add -X coerce_c_locale command line option (GH-9378)
Add a new -X coerce_c_locale command line option to control C locale
coercion (PEP 538).
(cherry picked from commit dbdee0073cf0b88fe541980ace1f650900f455cc)
|
| |
|
|
|
|
|
| |
(cherry picked from commit c62ab2862db2382808bb2228760eebdda3f608bd)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
| |
(cherry picked from commit 6750922f8d3428d84a016c34d6fcd99659e8610c)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The test tries to fill the receiver's socket buffer and expects an
error. But the RDS protocol doesn't require that. Moreover, the Linux
implementation of RDS expects that the producer of the messages
reduces its rate, it's not the role of the receiver to trigger an
error.
The test fails on Fedora 28 by design, so remove it.
(cherry picked from commit 7484bdfd1e2e33fdd2c44dd4ffa044aacd495337)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
| |
(cherry picked from commit c6fd1c1c3a65217958b68df3a4991e4f306e9b7d)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
|
| |
(cherry picked from commit 5e99b56d6b249995a4fa2bc09c0bb03841f49572)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 9bdb7be482aef8f60daa1d36606568a132dcb616)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit b3a271fc0ce3e13e427be8914decfc205a220ca8)
Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit e0e5065daef36dafe10a46eaa8b7800274d73062)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 7843caeb909bd907e903606414e238db4082315a)
Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
|
|
|
|
|
| |
(cherry picked from commit 10a428b64b3f224e2ccd40ff2afb141b9b3425b1)
Co-authored-by: Monson Shao <holymonson@gmail.com>
|
|
|
|
|
|
| |
(cherry picked from commit 2087023fdec2c89070bd14f384a3c308c548a94a)
Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
|
|
|
|
|
| |
(cherry picked from commit 271818fe279df5ab292789f97c3a52c477bd8f13)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
|
|
|
| |
documentation (GH-5982)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit ad8a0004206ba7aec5a8a60fce413da718080db2)
Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
|
|
|
|
|
|
|
| |
namedtuples. (GH-9151) (GH-9304)
(cherry picked from commit 9b9d97dd139a799d28ff8bc90d118b1cac190b03)
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 83df50ea5757816c7338d27f21fd18b1e79206f7)
Co-authored-by: 觉 <Xdminsy@users.noreply.github.com>
|