]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agoFix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) (GH-27999)
Miss Islington (bot) [Fri, 27 Aug 2021 12:33:33 +0000 (05:33 -0700)] 
Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) (GH-27999)

(cherry picked from commit 28db1f61f20352c02e4ae1518e5aeb6505df3045)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
4 years agobpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27996)
Miss Islington (bot) [Fri, 27 Aug 2021 11:27:45 +0000 (04:27 -0700)] 
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27996)

Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
(cherry picked from commit 2ec9428e3516b6e7c6583687aa3b39fb96925577)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45001: Make email date parsing more robust against malformed input (GH-27946...
Miss Islington (bot) [Thu, 26 Aug 2021 15:49:12 +0000 (08:49 -0700)] 
bpo-45001: Make email date parsing more robust against malformed input (GH-27946) (GH-27974)

Various date parsing utilities in the email module, such as
email.utils.parsedate(), are supposed to gracefully handle invalid
input, typically by raising an appropriate exception or by returning
None.

The internal email._parseaddr._parsedate_tz() helper used by some of
these date parsing routines tries to be robust against malformed input,
but unfortunately it can still crash ungracefully when a non-empty but
whitespace-only input is passed. This manifests as an unexpected
IndexError.

In practice, this can happen when parsing an email with only a newline
inside a ‘Date:’ header, which unfortunately happens occasionally in the
real world.

Here's a minimal example:

    $ python
    Python 3.9.6 (default, Jun 30 2021, 10:22:16)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import email.utils
    >>> email.utils.parsedate('foo')
    >>> email.utils.parsedate(' ')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
        t = parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
        res = _parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
        if data[0].endswith(',') or data[0].lower() in _daynames:
    IndexError: list index out of range

The fix is rather straight-forward: guard against empty lists, after
splitting on whitespace, but before accessing the first element.
(cherry picked from commit 989f6a3800f06b2bd31cfef7c3269a443ad94fac)

Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
4 years ago[3.8] bpo-36384: [doc] Correct typos in CVE-2021-29921 fix description (GH-27825)
Łukasz Langa [Thu, 19 Aug 2021 08:50:40 +0000 (10:50 +0200)] 
[3.8] bpo-36384: [doc] Correct typos in CVE-2021-29921 fix description (GH-27825)

4 years ago[3.8] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099...
achraf-mer [Tue, 17 Aug 2021 23:46:37 +0000 (19:46 -0400)] 
[3.8] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-27801)

Reverts commit e653d4d8e820a7a004ad399530af0135b45db27a and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.

Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-33930: Fix typo in the test name. (GH-27735)
Miss Islington (bot) [Thu, 12 Aug 2021 02:17:23 +0000 (19:17 -0700)] 
bpo-33930: Fix typo in the test name. (GH-27735)

bpo-33930: Fix typo in the test name. (GH-27733)
(cherry picked from commit f08e6d1bb3c5655f184af88c6793e90908bb6338)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Co-authored-by: Benjamin Peterson <benjamin@python.org>
4 years ago[3.8] bpo-33930: Fix segfault with deep recursion when cleaning method objects (GH...
Łukasz Langa [Wed, 11 Aug 2021 15:35:38 +0000 (17:35 +0200)] 
[3.8] bpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678) (GH-27721)

(cherry picked from commit bfc2d5a5c4550ab3a2fadeb9459b4bd948ff61a2)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638) (GH...
Miss Islington (bot) [Tue, 10 Aug 2021 17:08:59 +0000 (10:08 -0700)] 
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638) (GH-27713)

(cherry picked from commit c0ab59f7de1906feee21c057ad433fad924d1e38)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27692)
Irit Katriel [Tue, 10 Aug 2021 07:55:46 +0000 (08:55 +0100)] 
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27692)

4 years agobpo-44856: Possible reference leak in error paths of update_bases() and __build_class...
Miss Islington (bot) [Sat, 7 Aug 2021 11:17:16 +0000 (04:17 -0700)] 
bpo-44856: Possible reference leak in error paths of update_bases() and __build_class__ (GH-27647) (GH-27652)

(cherry picked from commit a40675c659cd8c0699f85ee9ac31660f93f8c2f5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agoSpell out 's.pop() or s.pop(i)' (GH-27398) (GH-27414)
Miss Islington (bot) [Wed, 28 Jul 2021 13:41:51 +0000 (06:41 -0700)] 
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27414)

(cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
4 years agobpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) (#27276)
Miss Islington (bot) [Wed, 21 Jul 2021 09:04:52 +0000 (02:04 -0700)] 
bpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) (#27276)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 64f54b7ccd49764b0304e076bfd79b5482988f53)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-44022: Improve the regression test. (GH-26503) (#26506)
Miss Islington (bot) [Mon, 12 Jul 2021 15:09:01 +0000 (08:09 -0700)] 
bpo-44022: Improve the regression test. (GH-26503) (#26506)

It wasn't actually detecting the regression due to the assertion being too lenient.
(cherry picked from commit e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoPost 3.8.11
Łukasz Langa [Mon, 28 Jun 2021 10:11:14 +0000 (12:11 +0200)] 
Post 3.8.11

4 years agoPython 3.8.11 v3.8.11
Łukasz Langa [Mon, 28 Jun 2021 10:08:34 +0000 (12:08 +0200)] 
Python 3.8.11

4 years ago[3.8] bpo-43882 - Mention urllib.parse changes in Whats new section. (#26277)
Senthil Kumaran [Mon, 28 Jun 2021 10:05:21 +0000 (03:05 -0700)] 
[3.8] bpo-43882 - Mention urllib.parse changes in Whats new section. (#26277)

4 years agobpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893) (GH-26895)
Miss Islington (bot) [Thu, 24 Jun 2021 14:34:34 +0000 (07:34 -0700)] 
bpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893) (GH-26895)

(cherry picked from commit b5a52eef67997246b4235b5407e52a01e822ce56)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH...
Miss Islington (bot) [Sat, 12 Jun 2021 17:45:10 +0000 (10:45 -0700)] 
bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) (GH-26670)

(cherry picked from commit f171877ebe276749f31386baed5841ce37cbee2e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.8] bpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path objec...
Łukasz Langa [Wed, 12 May 2021 10:18:07 +0000 (12:18 +0200)] 
[3.8] bpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path object (GH-25964). (GH-26056)

(cherry picked from commit e9d7f88d5643f7e6387bf994c130503766d7eb92)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
4 years agobpo-44070: No longer eagerly makes import filenames absolute, except for extension...
Steve Dower [Wed, 12 May 2021 09:57:37 +0000 (10:57 +0100)] 
bpo-44070: No longer eagerly makes import filenames absolute, except for extension modules (GH-26025) (#26028)

4 years agobpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548) (#25957)
Miss Islington (bot) [Fri, 7 May 2021 13:54:42 +0000 (06:54 -0700)] 
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548) (#25957)

The address tuple for CAN_RAW no longer returns the address family
after the introduction of CAN ISO-TP support in a30f6d45ac3. However,
updating test_socket.CANTest.testSendFrame was missed as part of the
change, so the test incorrectly attempts to index past the last tuple
item to retrieve the address family.

This removes the now-redundant check for equality against socket.AF_CAN,
as the tuple will not contain the address family.
(cherry picked from commit 355bae88822bee4de6092b63d69c5a5dad393a16)

Co-authored-by: karl ding <karlding@users.noreply.github.com>
4 years agobpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue...
Miss Islington (bot) [Thu, 6 May 2021 08:52:26 +0000 (01:52 -0700)] 
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (#25933)

Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 47895e31b6f626bc6ce47d175fe9d43c1098909d)

Co-authored-by: Gen Xu <xgbarry@gmail.com>
4 years ago[3.8] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and...
Miss Islington (bot) [Wed, 5 May 2021 17:25:29 +0000 (10:25 -0700)] 
[3.8] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595) (#25726)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4)
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
4 years agoPost 3.8.10
Łukasz Langa [Mon, 3 May 2021 14:01:33 +0000 (16:01 +0200)] 
Post 3.8.10

4 years agoMerge tag 'v3.8.10' into 3.8
Łukasz Langa [Mon, 3 May 2021 14:01:24 +0000 (16:01 +0200)] 
Merge tag 'v3.8.10' into 3.8

Python 3.8.10

4 years agobpo-42800: Add audit events for f_code and tb_frame (GH-24182)
Miss Islington (bot) [Mon, 3 May 2021 13:24:05 +0000 (06:24 -0700)] 
bpo-42800: Add audit events for f_code and tb_frame (GH-24182)

Accessing the following attributes will now fire PEP 578 style audit hooks as (object.__getattr__, obj, name):
* PyTracebackObject: tb_frame
* PyFrameObject: f_code
* PyGenObject: gi_code, gi_frame
* PyCoroObject: cr_code, cr_frame
* PyAsyncGenObject: ag_code, ag_frame
(cherry picked from commit bb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoPython 3.8.10 v3.8.10
Łukasz Langa [Mon, 3 May 2021 09:47:56 +0000 (11:47 +0200)] 
Python 3.8.10

4 years agobpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ (GH-25818)
Erlend Egeberg Aasland [Sun, 2 May 2021 22:55:33 +0000 (00:55 +0200)] 
bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ (GH-25818)

(cherry picked from commit c96cc089f60d2bf7e003c27413c3239ee9de2990)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) ...
Miss Islington (bot) [Sun, 2 May 2021 11:03:23 +0000 (04:03 -0700)] 
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) (#25811)

Embedded nulls would cause a ValueError to be raised. Thanks go to Eryk Sun for their analysis.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 73766b0341674f3920f4ea86a6f8288b801960f9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25810)
Ned Deily [Sun, 2 May 2021 10:55:04 +0000 (06:55 -0400)] 
bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25810)

This allows reliably forcing macOS universal2 framework builds
to run under Rosetta 2 Intel-64 emulation on Apple Silicon Macs
if needed for testing or when universal2 wheels are not yet
available.
(cherry picked from commit 0cb33da1cc9cebb9b2d67d446feb1cfd36fe7f55)

Co-authored-by: Ned Deily <nad@python.org>
Automerge-Triggered-By: GH:ned-deily
Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
4 years ago[3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806)
Ned Deily [Sun, 2 May 2021 09:18:58 +0000 (05:18 -0400)] 
[3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806)

* bpo-41100: Support macOS 11 and Apple Silicon on Python 3.8

This is a partial backport of bpo-41100 changes `e8b1c038b14b5fc8120aab62c9bf5fb840274cb6` and `96d906b144e6e6aa96c5ffebecbcc5d38034bbda` for Python 3.8. We introduce the ability to build Python from source for `arm64` on macOS, but we do not make a promise of support. This allows us to omit support for Universal2 binaries as well as weak-linking of symbols from the macOS SDK based on the deployment target, which are larger changes much more difficult to merge.

This also includes a backport of subsequent bpo-42688 change `7e729978fa08a360cbf936dc215ba7dd25a06a08` to fix build errors with external `libffi`.

* bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455)

On macOS system provided libraries are in a shared library cache
and not at their usual location. This PR teaches distutils to search
in the SDK, even if there was no "-sysroot" argument in
the compiler flags.
(cherry picked from commit 404a719b5127602c1a948f8e189ab61cd3f147d8)

* bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)

macOS releases numbering has changed as of macOS 11 Big Sur.  Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
(cherry picked from commit 5291639e611dc3f55a34666036f2c3424648ba50)

* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)

* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bcc8b44d9b8f148d81979ada191dd9d5)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: FX Coudert <fxcoudert@gmail.com>
Co-authored-by: Max Bélanger <aeromax@gmail.com>
4 years agoFix broken name in build.yml (GH-25759) (GH-25797)
Miss Islington (bot) [Sun, 2 May 2021 02:31:06 +0000 (19:31 -0700)] 
Fix broken name in build.yml (GH-25759) (GH-25797)

(cherry picked from commit 29282b2825545e2823bde94290a80f7c0fd7068e)

4 years agoFix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25795)
Miss Islington (bot) [Sat, 1 May 2021 20:56:53 +0000 (13:56 -0700)] 
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25795)

(cherry picked from commit 779232413a367cd3357482e675a5518de102a90e)

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
4 years agoFixing doc for callback for lambda (GH-25779) (GH-25789)
Miss Islington (bot) [Sat, 1 May 2021 18:26:46 +0000 (11:26 -0700)] 
Fixing doc for callback for lambda (GH-25779) (GH-25789)

Fixing callback for lambda when no return value is provided
(cherry picked from commit 50c21ad35372983680b44130be560d856c5f27ca)

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
4 years ago[3.8] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25783)
Stéphane Bidoul [Sat, 1 May 2021 15:50:07 +0000 (17:50 +0200)] 
[3.8] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25783)

4 years agobpo-43971: Add spaces around annotated arg default '=' (GH-25702)
Miss Islington (bot) [Sat, 1 May 2021 00:31:00 +0000 (17:31 -0700)] 
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)

Result: "quantity_on_hand: int = 0".
(cherry picked from commit e726a902b7c73a7056b7421d801e47ffff255873)

Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
4 years agobpo-43935: Fix typo in Turtle.back() docstring (GH-25581)
Miss Islington (bot) [Fri, 30 Apr 2021 22:35:45 +0000 (15:35 -0700)] 
bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)

'e ,' to 'e, '.
(cherry picked from commit 0048c60f01deec4435748e851f9ec21b504d2d2f)

Co-authored-by: Tarjei Bærland <tarjeibaerland@gmail.com>
4 years ago[3.8] bpo-42589: Change URL for 'from' link when used in a raised exc… (GH-25755)
sblondon [Fri, 30 Apr 2021 16:25:51 +0000 (18:25 +0200)] 
[3.8] bpo-42589: Change URL for 'from' link when used in a raised exc… (GH-25755)

…eption (GH-23872)

Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section.

There are more modified links than in the bug report because I searched some other ones which can get the same improvement..
(cherry picked from commit 2fd928c8c1328424130cb9c51fc02ad5f9a66328)

This PR is a cherry pick to python 3.8 from https://github.com/python/cpython/pull/23872. The fix was the removal of the change in the other file because the fixed section was introduced in 3.9. So the file does not need to be fixed in 3.8.

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
Automerge-Triggered-By: GH:Mariatta
4 years ago[doc] Be more clear on super() regarding multiple base classes methods (GH-21789...
Miss Islington (bot) [Thu, 29 Apr 2021 01:13:20 +0000 (18:13 -0700)] 
[doc] Be more clear on super() regarding multiple base classes methods (GH-21789) (GH-25707)

(cherry picked from commit 69a733bda34d413d3ad545ef3132240e5d2a7c0c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[doc] Do some polishing in IDEs section (GH-22070) (GH-25704)
Miss Islington (bot) [Thu, 29 Apr 2021 01:09:14 +0000 (18:09 -0700)] 
[doc] Do some polishing in IDEs section (GH-22070) (GH-25704)

(cherry picked from commit 08a4803863856db47a1dde830e56f83e5c6811a2)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-43960: test_pdb resets breakpoints to make tests deterministic (GH-25691) (GH...
Miss Islington (bot) [Wed, 28 Apr 2021 15:43:01 +0000 (08:43 -0700)] 
bpo-43960: test_pdb resets breakpoints to make tests deterministic (GH-25691) (GH-25692)

(cherry picked from commit 2dc6b1789ec86dc80ea290fe33edd61140e47f6f)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) (GH-25690)
Miss Islington (bot) [Wed, 28 Apr 2021 15:11:53 +0000 (08:11 -0700)] 
bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) (GH-25690)

(cherry picked from commit 4c49be766897968e509c41397e0e624c25b1675d)

4 years agobpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686)
Victor Stinner [Wed, 28 Apr 2021 13:46:57 +0000 (15:46 +0200)] 
bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686)

_PyInterpreterState_IDIncref() now calls
_PyInterpreterState_IDInitref() and always increments id_refcount.

(cherry picked from commit 32c5a174445ec93747240cd8472012276ed27acf)

4 years ago[3.8] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641)
Erlend Egeberg Aasland [Tue, 27 Apr 2021 19:57:24 +0000 (21:57 +0200)] 
[3.8] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641)

(cherry picked from commit bf0c7c0147b73738cac63eb27ef48430284ff121)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640)
Miss Islington (bot) [Tue, 27 Apr 2021 17:36:58 +0000 (10:36 -0700)] 
bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640)

(cherry picked from commit ce827816442613f982c356aa2f434c3c8a0c8917)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years ago[doc] Remove duplicated operator.itemgetter example (GH-24178) (#25647)
Miss Islington (bot) [Tue, 27 Apr 2021 04:16:33 +0000 (21:16 -0700)] 
[doc] Remove duplicated operator.itemgetter example (GH-24178) (#25647)

* Remove duplicated itemgetter example
* Add spaces
(cherry picked from commit 743e2bae10d2010fd1e29b772c9da64efc7c9c47)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoUse the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH...
Miss Islington (bot) [Mon, 26 Apr 2021 22:16:08 +0000 (15:16 -0700)] 
Use the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH-25639)

(cherry picked from commit 52cd6d5e1b2bece0d8efb58b1af41071c914ebe6)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years ago[3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks...
Pete Wicken [Mon, 26 Apr 2021 19:57:04 +0000 (20:57 +0100)] 
[3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks (GH-18757) (#25536)

The `.hosts()` method now returns the single address present in a /32 or /128 network..
(cherry picked from commit 8e9c47a947954c997d4b725f4551d50a1d896722)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
4 years agoFix thread locks in zlib module may go wrong in rare case (#22132)
Ma Lin [Mon, 26 Apr 2021 19:48:20 +0000 (03:48 +0800)] 
Fix thread locks in zlib module may go wrong in rare case (#22132)

Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.

4 years agobpo-41661: Document os.path.relpath() exception on Windows with different drives...
Miss Islington (bot) [Mon, 26 Apr 2021 19:46:14 +0000 (12:46 -0700)] 
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346) (#25367)

(cherry picked from commit 67c0b3d89c4da9750fdb43fc66d3924681b22d2e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-17305: Link to the third-party idna package. (GH-25208) (#25211)
Miss Islington (bot) [Mon, 26 Apr 2021 19:45:45 +0000 (12:45 -0700)] 
bpo-17305: Link to the third-party idna package. (GH-25208) (#25211)

So long as we don't have idna2008 in the standard library, we should at least point people to the third-party solution.
(cherry picked from commit 1d023e374cf96d143b065242131ddc9b889f9a1e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years ago[3.8] bpo-34463: Make python tracebacks identical to C tracebacks for (#23899)
Irit Katriel [Mon, 26 Apr 2021 19:42:40 +0000 (20:42 +0100)] 
[3.8] bpo-34463: Make python tracebacks identical to C tracebacks for (#23899)

* [3.8] bpo-34463: Make python tracebacks identical to C tracebacks for
SyntaxErrors without a lineno (GH-23427)

(cherry picked from commit 069560b1171eb6385121ff3b6331e8814a4e7454)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* 📜🤖 Added by blurb_it.

* added missing newline in test

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
4 years agobpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24212)
Miss Islington (bot) [Mon, 26 Apr 2021 19:40:38 +0000 (12:40 -0700)] 
bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24212)

Before, using the * operator to repeat a bytearray would copy data from the start of
the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
(cherry picked from commit 61d8c54f43a7871d016f98b38f86858817d927d5)

Co-authored-by: Tobias Holl <TobiasHoll@users.noreply.github.com>
4 years agobpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25636)
Miss Islington (bot) [Mon, 26 Apr 2021 19:36:13 +0000 (12:36 -0700)] 
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25636)

(cherry picked from commit 8a307e488d596914a7a5df6b2fdd945f8ce81e69)

Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
4 years agoDoc: Fix the array.fromfile method doc (GH-22037) (GH-25631)
Miss Islington (bot) [Mon, 26 Apr 2021 14:24:07 +0000 (07:24 -0700)] 
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25631)

The check about the f argument type was removed in this commit:
https://github.com/python/cpython/commit/2c94aa567e525c82041ad68a3174d8c3acbf37e2

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
(cherry picked from commit bd25bcd37a3a41a0e08208e969f0c02287850c61)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
4 years ago[3.8] bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624) (GH-25627)
Miss Islington (bot) [Mon, 26 Apr 2021 09:35:32 +0000 (02:35 -0700)] 
[3.8] bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624) (GH-25627)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3c586ca500854476e6eff06713236faff233d035)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years agoUpdate asyncio-subprocess.rst (GH-21680) (GH-25622)
Miss Islington (bot) [Mon, 26 Apr 2021 04:46:55 +0000 (21:46 -0700)] 
Update asyncio-subprocess.rst (GH-21680) (GH-25622)

(cherry picked from commit 3c4850e222388889426e250ff43308e4802dc582)

Co-authored-by: Gabriel R F <github@gabrf.com>
4 years agodocumentation: clarification about the function remove in os library (GH-19024) ...
Miss Islington (bot) [Mon, 26 Apr 2021 04:24:03 +0000 (21:24 -0700)] 
documentation: clarification about the function remove in os library (GH-19024) (GH-25618)

(cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
4 years agoQuick pydoc update to smtplib.py (GH-22292) (GH-25616)
Miss Islington (bot) [Mon, 26 Apr 2021 04:03:43 +0000 (21:03 -0700)] 
Quick pydoc update to smtplib.py (GH-22292) (GH-25616)

Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py.
(cherry picked from commit b3dec6f9ede35fc3bf7ae1baf0aa5f2ce1b6bf9d)

Co-authored-by: uy-rrodriguez <5296200+uy-rrodriguez@users.noreply.github.com>
4 years agobpo-43534: Fix the turtle module working with multiple root windows GH-25594
Miss Islington (bot) [Mon, 26 Apr 2021 01:54:25 +0000 (18:54 -0700)] 
bpo-43534: Fix the turtle module working with multiple root windows GH-25594

(cherry picked from commit 8af929fc76f21fb123f6a47cb3ebcf4e5b758dea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoFix broken links and improve stand-alone tools list in FAQ GH-25610
Miss Islington (bot) [Mon, 26 Apr 2021 01:43:28 +0000 (18:43 -0700)] 
Fix broken links and improve stand-alone tools list in FAQ GH-25610

(cherry picked from commit d28b34695301ec99a9334ad8d69b6092f4f703d5)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFix id of 'Internet Message Format' RFC in email doc GH-25614
Miss Islington (bot) [Mon, 26 Apr 2021 01:42:27 +0000 (18:42 -0700)] 
Fix id of 'Internet Message Format' RFC in email doc GH-25614

Previous ID (5233) refers to "Sieve Email Filtering: Subaddress
Extension". It seems that the actual reference should be "Internet
Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322).

(The typo probably comes from commit 29d1bc0842 in which the ID of
this RFC got updated from the obsolete 2822.)

Co-authored-by: Ambrose Chua <ambrose@hey.com>
(cherry picked from commit cb5c802dcf8851663c4eac5d73f968f626a3a1dc)
Co-authored-by: Denis Laxalde <denis@laxalde.org>
4 years agoFix copy.Error casing in documentation GH-22004 (#25612)
Miss Islington (bot) [Mon, 26 Apr 2021 01:39:47 +0000 (18:39 -0700)] 
Fix copy.Error casing in documentation GH-22004 (#25612)

(cherry picked from commit 0d930f108cb8ba66f54197175c1fba0c38253e4a)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoRemove mention of dst parameter from description of os.lstat() (GH-24704)
Miss Islington (bot) [Sun, 25 Apr 2021 21:35:55 +0000 (14:35 -0700)] 
Remove mention of dst parameter from description of os.lstat() (GH-24704)

It looks like it was accidentally copy-pasted in
6fa7aada9bd3616e0beeb266e818497b2ec1c859.
(cherry picked from commit 7f8e072c6dc88d6973d81f8fd572c04c88e7e3d7)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
4 years agoFix a typo in datamodel reference document (GH-24930)
Miss Islington (bot) [Sun, 25 Apr 2021 21:22:36 +0000 (14:22 -0700)] 
Fix a typo in datamodel reference document (GH-24930)

(cherry picked from commit a1a5e3c4c83c3e3fe24c96ae22dfdedc7e23a1bb)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years agoBaseHTTPRequestHandler, that path includes query (GH-25597)
Miss Islington (bot) [Sun, 25 Apr 2021 17:17:05 +0000 (10:17 -0700)] 
BaseHTTPRequestHandler, that path includes query (GH-25597)

* Clarify, for BaseHTTPRequestHandler, that path includes query

Co-authored-by: David Jones <drj@pobox.com>
(cherry picked from commit a89d8a94a0dd0bd45349efad6d5ad68641f4ff9a)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
4 years ago[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by...
Miss Islington (bot) [Sun, 25 Apr 2021 11:19:52 +0000 (04:19 -0700)] 
[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (GH-25187). (GH-25588) (GH-25592)

(cherry picked from commit 3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c)
(cherry picked from commit 9a165399aec930f27639dd173426ccc33586662b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again...
Miss Islington (bot) [Sun, 25 Apr 2021 10:45:20 +0000 (03:45 -0700)] 
bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again (GH-24923)

(cherry picked from commit b5adc8a7e5c13d175b4d3e53b37bc61de35b1457)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.8] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25576) ...
Stéphane Bidoul [Sat, 24 Apr 2021 22:28:55 +0000 (00:28 +0200)] 
[3.8] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25576) (GH-25579)

Update bundled pip to 21.1 and setuptools to 56.0.0.
(cherry picked from commit 196983563d05e32d2dcf217e955a919f9e0c25e1)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@acsone.eu>
4 years agobpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)
Miss Islington (bot) [Fri, 23 Apr 2021 18:21:45 +0000 (11:21 -0700)] 
bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)

(cherry picked from commit 3513d55a617012002c3f82dbf3cec7ec1abd7090)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years ago[3.8] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH...
Christian Heimes [Fri, 23 Apr 2021 14:37:09 +0000 (16:37 +0200)] 
[3.8] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25556)

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b9ad88be0304136c3fe5959c65a5d2c75490cd80)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)
Jason R. Coombs [Fri, 23 Apr 2021 06:47:00 +0000 (02:47 -0400)] 
bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)

Use a versionadded directive to generate the text "New in version
3.8." (to match with the documentation of other modules).

Automerge-Triggered-By: GH:jaraco
(cherry picked from commit adf24bd835)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoReformat idlelib colorizer (GH-25479)
Miss Islington (bot) [Fri, 23 Apr 2021 01:38:59 +0000 (18:38 -0700)] 
Reformat idlelib colorizer (GH-25479)

Also replace if-then and and-or with conditional expressions.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 702a0885ba3636959d4c176797814937c497b986)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years agobpo-38822: Check specifically for a drive, not just a colon (GH-25540)
Miss Islington (bot) [Thu, 22 Apr 2021 23:48:42 +0000 (16:48 -0700)] 
bpo-38822: Check specifically for a drive, not just a colon (GH-25540)

(cherry picked from commit e07d8098892e85ecc56969d2c9a5afb3ea33ce8f)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid...
Miss Islington (bot) [Thu, 22 Apr 2021 20:25:08 +0000 (13:25 -0700)] 
bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529)

(cherry picked from commit 4696f1285d83dd7b69f459c63e14080b1f87f797)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)
Miss Islington (bot) [Thu, 22 Apr 2021 20:07:02 +0000 (13:07 -0700)] 
bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)

It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a401a9b3ca1751b81b5d6ddb2beb7f3675c1)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsvers...
Miss Islington (bot) [Thu, 22 Apr 2021 17:03:36 +0000 (10:03 -0700)] 
bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500)

The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version.
Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part).
sys.getwindowsversion() is not updated to avoid launching executables from that module.
(cherry picked from commit 2a3f4899c63806439e5bcea0c30f7e6a6295a763)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
4 years agobpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH...
Miss Islington (bot) [Wed, 21 Apr 2021 23:36:36 +0000 (16:36 -0700)] 
bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510)

(cherry picked from commit dc516ef8395d15da0ab225eb0dceb2e0581f51ca)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-43472: Ensure PyInterpreterState_New audit events are raised when called through...
Miss Islington (bot) [Wed, 21 Apr 2021 22:53:31 +0000 (15:53 -0700)] 
bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module (GH-25506)

(cherry picked from commit 7b86e47617d81a4b14d929743425f448971e8c86)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoFix typo in a dataclasses comment. (GH-25454)
Miss Islington (bot) [Sat, 17 Apr 2021 14:11:16 +0000 (07:11 -0700)] 
Fix typo in a dataclasses comment. (GH-25454)

(cherry picked from commit 76beadb8ff86eb2bb248bf918bfb20c4069932f4)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
4 years ago[3.8] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25452)
Christian Heimes [Sat, 17 Apr 2021 09:35:56 +0000 (11:35 +0200)] 
[3.8] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25452)

Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.
(cherry picked from commit 330b49e397168df789fd0dd20cfe7e81b8e47258)

4 years agobpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818) (#25345)
Miss Islington (bot) [Fri, 16 Apr 2021 17:07:31 +0000 (10:07 -0700)] 
bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818) (#25345)

* coerce bytes separator to string

* Add news

* Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
(cherry picked from commit b38601d49675d90e1ee6faa47f7adaeca992d02d)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437) (GH...
Victor Stinner [Fri, 16 Apr 2021 14:37:09 +0000 (16:37 +0200)] 
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437) (GH-25440)

Fix a race condition in the SMTP test of test_logging. Don't close a
file descriptor (socket) from a different thread while
asyncore.loop() is polling the file descriptor.

(cherry picked from commit 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603)
(cherry picked from commit e1903e11a3d42512effe336026e0c67f602e5848)

4 years ago[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
Miss Islington (bot) [Fri, 16 Apr 2021 09:47:44 +0000 (02:47 -0700)] 
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)

Change threading.activeCount to synonym threading.active_count.
(cherry picked from commit 56c76df6e861322bdff77bfb21e5cd55fbacfad2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.8] bpo-43723: Backport IDLE doc change (GH-25174)
Terry Jan Reedy [Fri, 16 Apr 2021 07:01:00 +0000 (03:01 -0400)] 
[3.8] bpo-43723: Backport IDLE doc change (GH-25174)

Cherry-picked from 9825bdfbd5c966abf1f1b7264992d722a94c9613

4 years agobpo-37741: make importlib.metadata docs discoverable through a module directive....
Miss Islington (bot) [Thu, 15 Apr 2021 01:08:17 +0000 (18:08 -0700)] 
bpo-37741: make importlib.metadata docs discoverable through a module directive. (GH-25415)

Automerge-Triggered-By: GH:jaraco
(cherry picked from commit 23acadcc1c75eb74b2459304af70d97a35001b34)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
4 years agobpo-43777: Drop description of "pip search" command from tutorial (GH-25287)
Miss Islington (bot) [Wed, 14 Apr 2021 05:19:49 +0000 (22:19 -0700)] 
bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)

(cherry picked from commit 133705b85cc25d1e6684d32f8943ca288fadfda0)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
4 years ago[3.8] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25392)
Miss Islington (bot) [Tue, 13 Apr 2021 19:27:02 +0000 (12:27 -0700)] 
[3.8] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25392)

The new checks are only executed when one or more OpenSSL-related files are modified. The checks run a handful of networking and hashing test suites. All SSL checks are optional. This PR also introduces ccache to speed up compilation. In common cases it speeds up configure and compile time from about 90 seconds to less than 30 seconds.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 8fa1489365e7af8b90286c97db55a2dc60a05cde)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years agobpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365)
Miss Islington (bot) [Tue, 13 Apr 2021 11:45:20 +0000 (04:45 -0700)] 
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365)

Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
(cherry picked from commit 54db51c9114ac49030832f5134979ca866ffd21c)

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
4 years ago[3.8] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25383)
Christian Heimes [Tue, 13 Apr 2021 07:09:22 +0000 (09:09 +0200)] 
[3.8] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25383)

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit a4833883c9b81b6b272cc7c5b67fa1658b65304c)

4 years ago[3.8] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH...
Ethan Furman [Mon, 12 Apr 2021 19:16:46 +0000 (12:16 -0700)] 
[3.8] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH-25350). (GH-25369)

(cherry picked from commit 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
4 years agobpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)
Miss Islington (bot) [Mon, 12 Apr 2021 10:21:25 +0000 (03:21 -0700)] 
bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3447750073aff229b049e4ccd6217db2811dcfd1)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoFix description of behaviour of an exception class in 'from' clause (GH-24303) (GH...
Miss Islington (bot) [Sun, 11 Apr 2021 08:53:16 +0000 (01:53 -0700)] 
Fix description of behaviour of an exception class in 'from' clause (GH-24303) (GH-25342)

(cherry picked from commit 79650d0118b0a8861428b9dd063089de405cf137)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25332)
Miss Islington (bot) [Sat, 10 Apr 2021 16:19:11 +0000 (09:19 -0700)] 
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25332)

4 years agoAdd ignore file for the abidump check (GH-25322)
Pablo Galindo [Fri, 9 Apr 2021 22:11:58 +0000 (23:11 +0100)] 
Add ignore file for the abidump check (GH-25322)

4 years agobpo-43105: Importlib now resolves relative paths when creating module spec objects...
Steve Dower [Fri, 9 Apr 2021 22:06:17 +0000 (23:06 +0100)] 
bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121)

4 years agobpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)
Miss Islington (bot) [Fri, 9 Apr 2021 20:33:29 +0000 (13:33 -0700)] 
bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)

ripemd160 is not available in OpenSSL 3.0.0's default crypto provider.
It's only present in legacy provider.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2d7fdc90731e132f9d6b43852ee112f25831394b)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.8] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25311)
Christian Heimes [Fri, 9 Apr 2021 16:34:54 +0000 (18:34 +0200)] 
[3.8] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25311)

(cherry picked from commit 150af7543214e1541fa582374502ac1cd70e8eb4)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
Miss Islington (bot) [Fri, 9 Apr 2021 16:21:06 +0000 (09:21 -0700)] 
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.8] bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH...
Miss Islington (bot) [Fri, 9 Apr 2021 14:51:25 +0000 (07:51 -0700)] 
[3.8] bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303) (GH-25306)

(cherry picked from commit d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf)

Co-authored-by: Christian Heimes <christian@python.org>