| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Reported by Svace static analyzer.
(cherry picked from commit 74a307d48ef8b278c4629ca0ef2139be1c9a34e6)
Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a globals dictionary without a '__builtins__' key is passed to
eval(), a '__builtins__' key will be inserted to the dictionary:
>>> eval("print('__builtins__' in globals())", {})
True
(As a result of this behavior, we can use the builtins
print() and globals() even if we passed a dictionary without a
'__builtins__' key to eval().)
(cherry picked from commit 225b05548027d55aafb11b65f6a4a2bef2f5196f)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
| |
(cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7)
|
|
|
|
|
|
|
| |
locales (GH-8808) (GH-8809)
(cherry picked from commit 93b5655c040a33f9ba4cdbd303afc8398c8413c7)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit cae8ff93a696aa7d74562a9eeaf27afac1f181b4)
Co-authored-by: Michael Osipov <1983-01-06@gmx.net>
|
|
|
|
|
|
|
| |
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.
(cherry picked from commit c53aaec793e018edef4e72a3edbd338b10db10aa)
Co-authored-by: Sebastian Rittau <srittau@rittau.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Read from data socket to avoid "[SSL] shutdown while in init" exception
during shutdown of the dummy server.
Signed-off-by: Christian Heimes <christian@python.org>
<!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391) -->
https://bugs.python.org/issue34391
<!-- /issue-number -->
(cherry picked from commit 1590c393360df059160145e7475754427bfc6680)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
| |
(cherry picked from commit e6a4755e6793942b950c1595e0c34bd66a0ee13e)
Co-authored-by: Erik Janssens <erik.janssens@conceptive.be>
|
|
|
|
|
|
|
| |
(GH-8756)
(cherry picked from commit 67b9cc8e6072a919d2ed7e7ecc8124c8acfb3733)
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 864a892af38afefb0a0464af298cf09d2e1195f7)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
|
|
| |
Avoid undefined pointer arithmetic with NULL.
(cherry picked from commit 7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad2c0)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Downstream vendors have started to deprecate weak keys. Update all RSA keys
and DH params to use at least 2048 bits.
Finite field DH param file use RFC 7919 values, generated with
certtool --get-dh-params --sec-param=high
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 88bfd0bce05043f658e50addd21366f317995e35)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
|
|
| |
* SMTP.startssl: Fix doc on keyfile and certfile use
* SMTP.startssl: Add missing keyfile and certfile deprecation notice
* SMTP: Doc grammar fixes
(cherry picked from commit da12063f2f53b7d272824863ed24260cefb22e8c)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
|
|
|
|
|
| |
(cherry picked from commit 4d12e4dc28b7c782c368bae2e8fd3815167ed37d)
Co-authored-by: Vadim Pushtaev <pushtaev.vm@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 10b59f1b019cd00c940dd7f4a74c4f667a20f25f)
Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 65b5ef02ec1f44e3a19b689a1ecf73d01c82161b)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 9e840848510d20e644a19c723b803877377d3765)
Co-authored-by: Evan Allrich <eallrich@gmail.com>
|
|
|
|
|
|
| |
Valgrind isn't seeing PyObject_Free/PyObject_Realloc, but using _PyObject_Free/_PyObject_Realloc works.
(cherry picked from commit db6075ab3aa44f69c13c4a169806d08596d25003)
Co-authored-by: Paul Price <price@astro.princeton.edu>
|
|
|
|
|
|
| |
The main cause of this bug was fixed as part of bpo-31908.
(cherry picked from commit c8b0dbc4928a1fe4bd5abebd810b6849374c7af3)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 423d05f6f59b24c91b9ef6b2e4ac130316764382)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 077059e0f086cf8c8b7fb9d1f053e38ddc743f59)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 22d131a7f9e4e64486da1d1cddbfed2379517791)
Co-authored-by: Andriy Maletsky <9919211+and800@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit cf2c5e8e2867e41d34079b2e464bbbe653fb7981)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
|
|
|
| |
In the documentation, the `env` directory is specified when we execute
the `make venv` command. But in the code, `make venv` will create the
virtualenv inside the `venv` directory (defined by `VENVDIR`)
(cherry picked from commit 599bfa18f8ebcb23af300b6855934048c3c64e7d)
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
|
|
|
|
|
|
|
| |
(GH-8646)
(cherry picked from commit db8707c8ab57d9454c838586c08199c82a3d74d9)
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit d2ac400267940f35d731d66c2dafafe099d770d9)
Co-authored-by: Mikhail Terekhov <termim@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b221c93d4cf8fe9ecec429b08612abcc211a39a6)
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
|
|
|
|
| |
(cherry picked from commit e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 3c1b590472d567e22a607ba31271865cd90c8e9b)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
|
| |
Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1)
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-8567)
(cherry picked from commit 8f7bb100d0fa7fb2714f3953b5b627878277c7c6)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-34273: Change 'Fixed point' to 'Fixed-point notation'.
The change in the mini language floating point and decimal table
is consistent with 'Exponential notation' and clarifies that we
are referring to the output notation, not an object type.
* Update string.rst
* Update string.rst
* Update string.rst
* Update string.rst
(cherry picked from commit 28c7f8c8ce34a0cb848822a252a9d0a761fb42d5)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit b2499669ef2e6dc9a2cdb49b4dc498e078167e26)
Co-authored-by: Anthony Sottile <asottile@umich.edu>
|
|
|
|
|
| |
(cherry picked from commit 336c945858055059a65134d4c501a85037d70d99)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* -X dev: it is now possible to override the memory allocator using
PYTHONMALLOC even if the developer mode is enabled.
* Add _Py_InitializeFromConfig()
* Add _Py_Initialize_ReadEnvVars() to set global configuration
variables from environment variables
* Fix the code to initialize Python: Py_Initialize() now also reads
environment variables
* _Py_InitializeCore() can now be called twice: the second call
only replaces the configuration.
* Write unit tests on Py_Initialize() and the different ways to
configure Python
* The isolated mode now always sets Py_IgnoreEnvironmentFlag and
Py_NoUserSiteDirectory to 1.
* pymain_read_conf() now saves/restores the configuration
if the encoding changed
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-7683)
* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
(cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 2e5566d9e774dcde81e8139b486730917816e045)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 46dc4e34ed8005a688d7f3512844ef227a3465f4)
Co-authored-by: Stefan Otte <stefan.otte@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
|
|
|
|
|
|
| |
Remove unnecessary "that" in the sentence.
(cherry picked from commit b6efc2cf9701adfb901eec2fe6a418893739877a)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
|
|
|
| |
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.
(cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit 46ebe61c7f3511b97268b44d5373a9e9cf0b5cc7)
Co-authored-by: HiyashiChuka <41299525+hiyashichuka@users.noreply.github.com>
|
|
|
|
|
|
| |
Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d971b66f529cbd450aca438275b868031605)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
|
|
|
|
|
|
|
|
| |
Multiprocessing test_timeout() now accepts a delta of 100 ms instead
of just 50 ms, since the test failed with 135.8 ms instead of the
expected 200 ms.
(cherry picked from commit 5640d030e100aade54210034828b711c3b506b18)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.
Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.
Co-authored-by: torsava <torsava@redhat.com>
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
(cherry picked from commit f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7)
|
|
|
|
|
| |
(cherry picked from commit dd74369cb7b230b07ac3a031563406c8f2aae17f)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
|
|
| |
Added missing .grab_release() calls to all places where we call .grab_set().
(cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
| |
(GH-8532) (GH-8586)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix integer overflow in os.readv(), os.writev(), os.preadv()
and os.pwritev() and in os.sendfile() with headers or trailers
arguments (on BSD-based OSes and MacOS).
* Fix sending the part of the file in os.sendfile() on MacOS.
Using the trailers argument could cause sending more bytes from
the input file than was specified.
Thanks Ned Deily for testing on 32-bit MacOS.
(cherry picked from commit 9d5727326af53ddd91016d98e16ae7cf829caa95)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-8581)
* help(hashlib) didn't work because of incorrect module name in blake2b and
blake2s classes.
* Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly
accepted keyword argument "string" for binary data, but documented as
accepting the "data" keyword argument. Now this parameter is positional-only.
* Keyword-only parameters in blake2b() and blake2s() were not documented as
keyword-only.
* Default value for some parameters of blake2b() and blake2s() was None,
which is not acceptable value.
* The length argument for shake_*.digest() was wrapped out to 32 bits.
* The argument for shake_128.digest() and shake_128.hexdigest() was not
positional-only as intended.
* TypeError messages for incorrect arguments in all constructors sha3_*(),
shake_*() and keccak_*() incorrectly referred to sha3_224.
Also made the following enhancements:
* More accurately specified input and result types for strings, bytes and
bytes-like objects.
* Unified positional parameter names for update() and constructors.
* Improved formatting.
(cherry picked from commit f1d36d8efaecd5c84cb35e35119b283f37d83c40)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|