]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years ago[3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391)
Miss Islington (bot) [Tue, 13 Apr 2021 19:14:41 +0000 (12:14 -0700)] 
[3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391)

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) (GH-25387)
Miss Islington (bot) [Tue, 13 Apr 2021 12:20:13 +0000 (05:20 -0700)] 
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) (GH-25387)

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

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
4 years ago[3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)
Miss Islington (bot) [Tue, 13 Apr 2021 06:40:52 +0000 (23:40 -0700)] 
[3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)

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

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years ago[3.9] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH...
Ethan Furman [Mon, 12 Apr 2021 22:03:29 +0000 (15:03 -0700)] 
[3.9] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH-25350). (GH-25370)

(cherry picked from commit 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
4 years agobpo-41661: Document os.path.relpath() exception on Windows with different drives...
Miss Islington (bot) [Mon, 12 Apr 2021 16:03:08 +0000 (09:03 -0700)] 
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)

(cherry picked from commit 67c0b3d89c4da9750fdb43fc66d3924681b22d2e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)
Miss Islington (bot) [Mon, 12 Apr 2021 10:24:48 +0000 (03:24 -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 agobpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)
Miss Islington (bot) [Sun, 11 Apr 2021 13:49:35 +0000 (06:49 -0700)] 
bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)

* 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>
4 years agoFix description of behaviour of an exception class in 'from' clause (GH-24303) (GH...
Miss Islington (bot) [Sun, 11 Apr 2021 09:27:51 +0000 (02:27 -0700)] 
Fix description of behaviour of an exception class in 'from' clause (GH-24303) (GH-25341)

(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-25333)
Miss Islington (bot) [Sat, 10 Apr 2021 16:19:49 +0000 (09:19 -0700)] 
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25333)

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

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:46:17 +0000 (13:46 -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.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289)....
Erlend Egeberg Aasland [Fri, 9 Apr 2021 17:46:32 +0000 (19:46 +0200)] 
[3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289). (GH-25294)

* [3.9] Fix possible refleak involving _PyArena_AddPyObject (GH-25289).
(cherry picked from commit c0e11a3ceb9427e09db4224f394c7789bf6deec5)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Update Parser/pegen/pegen.c

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310)
Christian Heimes [Fri, 9 Apr 2021 16:34:39 +0000 (18:34 +0200)] 
[3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310)

(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:54 +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 agobpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)
Miss Islington (bot) [Fri, 9 Apr 2021 14:08:32 +0000 (07:08 -0700)] 
bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)

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

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303)
Miss Islington (bot) [Fri, 9 Apr 2021 13:46:11 +0000 (06:46 -0700)] 
bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303)

(cherry picked from commit d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoAdd CI step to check changes in the exported ABI (GH-25230)
Pablo Galindo [Fri, 9 Apr 2021 00:34:08 +0000 (01:34 +0100)] 
Add CI step to check changes in the exported ABI (GH-25230)

4 years ago[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)
Miss Islington (bot) [Thu, 8 Apr 2021 23:03:53 +0000 (16:03 -0700)] 
[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)

(cherry picked from commit 1e051a21b7106a93c30b74aad7e1f40d6c0c477b)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Automerge-Triggered-By: GH:brandtbucher
4 years ago[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
Miss Islington (bot) [Thu, 8 Apr 2021 08:21:35 +0000 (01:21 -0700)] 
[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)

The previous "Fundamental data types" section says a c_char_p must be bytes (or None).
(cherry picked from commit 14829b09eb652f457cf837836909169746a810f0)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoFix broken test for MutableSet.pop() (GH-25209) (GH-25269)
Miss Islington (bot) [Wed, 7 Apr 2021 23:56:48 +0000 (16:56 -0700)] 
Fix broken test for MutableSet.pop() (GH-25209) (GH-25269)

4 years ago[3.9] bpo-36540: Improve doc of function definition regarding positional-only argumen...
Saiyang Gou [Wed, 7 Apr 2021 19:32:48 +0000 (12:32 -0700)] 
[3.9] bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235) (GH-25259)

(cherry picked from commit 58d72cab89cf9652acc0bf0007aa20b2bcc98499)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
4 years agobpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3...
Miss Islington (bot) [Wed, 7 Apr 2021 18:17:56 +0000 (11:17 -0700)] 
bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231) (GH-25233)

4 years agobpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)
Steve Dower [Wed, 7 Apr 2021 17:12:42 +0000 (18:12 +0100)] 
bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 years agobpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)
Miss Islington (bot) [Wed, 7 Apr 2021 15:58:04 +0000 (08:58 -0700)] 
bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)

Fix Regular Expression Denial of Service (ReDoS) vulnerability in
urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex
has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on
the client side and needs remote attackers to control the HTTP server.
(cherry picked from commit 7215d1ae25525c92b026166f9d5cac85fb1defe1)

Co-authored-by: Yeting Li <liyt@ios.ac.cn>
Co-authored-by: Yeting Li <liyt@ios.ac.cn>
4 years agobpo-43105: Importlib now resolves relative paths when creating module spec objects...
Steve Dower [Wed, 7 Apr 2021 11:35:36 +0000 (12:35 +0100)] 
bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121)

4 years agoFix blurb for bpo-43176. (GH-25215) (GH-25217)
Miss Islington (bot) [Tue, 6 Apr 2021 15:07:07 +0000 (08:07 -0700)] 
Fix blurb for bpo-43176. (GH-25215) (GH-25217)

(cherry picked from commit 1744c96ebc98b240f2564f75191097704b37244f)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
4 years agobpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213)
Steve Dower [Tue, 6 Apr 2021 15:03:52 +0000 (16:03 +0100)] 
bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213)

Earlier releases were mislabelled and included 1.1.1i again.
The tag/directory name is updated to ensure that builds get the fresh bits. However, the openssl-bin-1.1.1k tag in the repository has been forcibly updated, so fresh builds will be fine even without this change.

4 years agobpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)
Miss Islington (bot) [Tue, 6 Apr 2021 13:46:30 +0000 (06:46 -0700)] 
bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)

When a dataclass inherits from an empty base, all immutability checks are omitted. This PR fixes this and adds tests for it.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 376ffc6ac491da74920aed1b8e35bc371cb766ac)

Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
4 years agobpo-17305: Link to the third-party idna package. (GH-25208)
Miss Islington (bot) [Tue, 6 Apr 2021 08:19:15 +0000 (01:19 -0700)] 
bpo-17305: Link to the third-party idna package. (GH-25208)

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 agobpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH...
Miss Islington (bot) [Mon, 5 Apr 2021 20:11:50 +0000 (13:11 -0700)] 
bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH-25202)

4 years agobpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH...
Miss Islington (bot) [Mon, 5 Apr 2021 20:07:38 +0000 (13:07 -0700)] 
bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25200)

Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com>
Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 75220674c07abfc90c2cd7862d04cfa2e2354450)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years ago[3.9] Fix typo in turtledemo.two_canvases. (GH-25194)
Miss Islington (bot) [Mon, 5 Apr 2021 17:43:15 +0000 (10:43 -0700)] 
[3.9] Fix typo in turtledemo.two_canvases. (GH-25194)

(cherry picked from commit 4e2ef7084185d2220003b4b5538e3d8190b2dcd6)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoPost 3.9.4
Łukasz Langa [Sun, 4 Apr 2021 18:39:08 +0000 (20:39 +0200)] 
Post 3.9.4

4 years agoMerge tag 'v3.9.4' into 3.9
Łukasz Langa [Sun, 4 Apr 2021 18:38:59 +0000 (20:38 +0200)] 
Merge tag 'v3.9.4' into 3.9

Python 3.9.4

4 years ago[3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH...
Miss Islington (bot) [Sun, 4 Apr 2021 15:36:21 +0000 (08:36 -0700)] 
[3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH-25183) (GH-25184)

(cherry picked from commit 2b5913b4ee5852a28ca1509478f5582beb3aff7b)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Automerge-Triggered-By: GH:gvanrossum
4 years agoPython 3.9.4 v3.9.4
Łukasz Langa [Sun, 4 Apr 2021 11:04:49 +0000 (13:04 +0200)] 
Python 3.9.4

4 years ago[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)
Gregory P. Smith [Sun, 4 Apr 2021 11:02:29 +0000 (04:02 -0700)] 
[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)

This reverts commit 8b795ab5541d8a4e69be4137dfdc207714270b77.

It changed the PyThreadState structure size, breaking the ABI in 3.9.3.

4 years agobpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178)
Miss Islington (bot) [Sun, 4 Apr 2021 03:05:50 +0000 (20:05 -0700)] 
bpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178)

4 years agoReplace broken example code with correct simpler code. (GH-25162) (GH-25166)
Miss Islington (bot) [Sat, 3 Apr 2021 20:42:43 +0000 (13:42 -0700)] 
Replace broken example code with correct simpler code. (GH-25162) (GH-25166)

4 years agoAdd more tests for the descriptor tutorial (GH-25164) (#25165)
Miss Islington (bot) [Sat, 3 Apr 2021 20:42:28 +0000 (13:42 -0700)] 
Add more tests for the descriptor tutorial (GH-25164) (#25165)

(cherry picked from commit e4c8895ee5457b11f52841b79b51f3c3d6373fef)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agobpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)
Miss Islington (bot) [Fri, 2 Apr 2021 22:26:32 +0000 (15:26 -0700)] 
bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)

Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit b2a91e0c9ee18b50cc86b21211c2258520a9f5d0)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
4 years agoPost 3.9.3
Łukasz Langa [Fri, 2 Apr 2021 17:39:11 +0000 (19:39 +0200)] 
Post 3.9.3

4 years agoMerge tag 'v3.9.3' into 3.9
Łukasz Langa [Fri, 2 Apr 2021 17:38:57 +0000 (19:38 +0200)] 
Merge tag 'v3.9.3' into 3.9

Python 3.9.3

4 years ago[3.9] bpo-26053: Fix args echoed by pdb run command (GH-25149)
Irit Katriel [Fri, 2 Apr 2021 11:16:55 +0000 (12:16 +0100)] 
[3.9] bpo-26053: Fix args echoed by pdb run command  (GH-25149)

* bpo-26053: Fix args echoed by pdb run command (GH-22033)

(cherry picked from commit 652bfdee9495dca241d48278742fe035b7a82bdb)

* bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)

(cherry picked from commit bd4ab8e73906a4f12d5353f567228b7c7497baf7)

4 years agoPython 3.9.3 v3.9.3
Łukasz Langa [Fri, 2 Apr 2021 09:51:53 +0000 (11:51 +0200)] 
Python 3.9.3

4 years agobpo-43700: Replace Zulip badge with Discourse badge (GH-25141)
Miss Islington (bot) [Fri, 2 Apr 2021 03:58:07 +0000 (20:58 -0700)] 
bpo-43700: Replace Zulip badge with Discourse badge (GH-25141)

Automerge-Triggered-By: GH:zware
(cherry picked from commit bef7b26f7229f8b7cde843118a7bc7e2b00f0372)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140)
Miss Islington (bot) [Fri, 2 Apr 2021 00:06:30 +0000 (17:06 -0700)] 
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140)

4 years agoDoc: io: Remove "In-memory streams" section (GH-24927)
Miss Islington (bot) [Thu, 1 Apr 2021 06:11:49 +0000 (23:11 -0700)] 
Doc: io: Remove "In-memory streams" section (GH-24927)

(cherry picked from commit b045cdaf341f80b7d1e4804b932b6e415600c2e1)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-42840: Document providing kwargs to type. (GH-24173)
Miss Islington (bot) [Thu, 1 Apr 2021 00:10:36 +0000 (17:10 -0700)] 
bpo-42840: Document providing kwargs to type. (GH-24173)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 72fcd14a82369ed32a5846d76f50e3026cf4eec2)

Co-authored-by: Erik Soma <stillusingirc@gmail.com>
4 years agobpo-37945: Fix test_locale.test_getsetlocale_issue1813() (GH-25110) (GH-25112)
Miss Islington (bot) [Wed, 31 Mar 2021 11:52:14 +0000 (04:52 -0700)] 
bpo-37945: Fix test_locale.test_getsetlocale_issue1813() (GH-25110) (GH-25112)

Skip the test if setlocale() fails.
(cherry picked from commit f3ab670fea75ebe177e3412a5ebe39263cd428e3)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42225: IDLE - document two unix-related problems. (GH-25078)
Miss Islington (bot) [Wed, 31 Mar 2021 05:44:26 +0000 (22:44 -0700)] 
bpo-42225: IDLE - document two unix-related problems. (GH-25078)

1. Bad IP masquerade rules can prevent startup.
2. X cannot handle some complex colored chars.
(cherry picked from commit 1b4a9c7956d5dc64f8002f62bf0faae2d1892f90)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
Miss Islington (bot) [Tue, 30 Mar 2021 21:36:25 +0000 (14:36 -0700)] 
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)

(cherry picked from commit 51a85ddce8b336addcb61b96f04c9c5edef07296)

Co-authored-by: Alex Prengère <2138730+alexprengere@users.noreply.github.com>
4 years ago[3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088)
Christian Heimes [Tue, 30 Mar 2021 08:58:06 +0000 (10:58 +0200)] 
[3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088)

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran.
(cherry picked from commit a54fc683f237d8f0b6e999a63aa9b8c0a45b7fef)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)
Miss Islington (bot) [Tue, 30 Mar 2021 07:51:55 +0000 (00:51 -0700)] 
bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)

(cherry picked from commit dfeec347f21b86879ba8f27f567bb275b243f1bc)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-33164: blake2: Fix Coverity scan (GH-25060)
Miss Islington (bot) [Tue, 30 Mar 2021 04:36:39 +0000 (21:36 -0700)] 
bpo-33164: blake2: Fix Coverity scan (GH-25060)

(cherry picked from commit 068ebf9729d440cef03e4c57e3db83c851146172)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr...
Miss Islington (bot) [Mon, 29 Mar 2021 23:24:33 +0000 (16:24 -0700)] 
bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) (GH-25083)

(cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)
Miss Islington (bot) [Mon, 29 Mar 2021 19:37:32 +0000 (12:37 -0700)] 
bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)

This test checks result code of the connection directly, so it never raises an exception that can be suppressed by `support.transient_internet`. Directly support skipping the test in case of unreachable network.
(cherry picked from commit 29c451c6989c3c94fa0a9facf187c24f3cbf2420)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Carl Meyer <carl@oddbird.net>
4 years agobpo-43659: Fix test_curses on AIX (GH-25074)
Miss Islington (bot) [Mon, 29 Mar 2021 19:31:01 +0000 (12:31 -0700)] 
bpo-43659:  Fix test_curses on AIX (GH-25074)

curses.update_lines_cols() is only defined when the curses library
provides either resizeterm() or resize_term() functions which are optional
and are not provided on AIX.
(cherry picked from commit c8b5738810516df5722caf049003e9b319427bec)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
4 years agobpo-35930: Raising an exception raised in a "future" instance will create reference...
Miss Islington (bot) [Mon, 29 Mar 2021 17:53:54 +0000 (10:53 -0700)] 
bpo-35930: Raising an exception raised in a "future" instance will create reference cycles (GH-24995) (#25070)

Before: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0002.png

After: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0003.png
(cherry picked from commit 32430aadadf6e012e39167d3c18a24e49fb84874)

Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
4 years agobpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. ...
Miss Islington (bot) [Mon, 29 Mar 2021 14:43:02 +0000 (07:43 -0700)] 
bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. (GH-25057)

(cherry picked from commit c1b073a630bb731de18bb17afb2b8b1388b92a72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42988: Remove the pydoc getfile feature (GH-25015)
Miss Islington (bot) [Mon, 29 Mar 2021 13:08:00 +0000 (06:08 -0700)] 
bpo-42988: Remove the pydoc getfile feature (GH-25015)

CVE-2021-3426: Remove the "getfile" feature of the pydoc module which
could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python
modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
(cherry picked from commit 9b999479c0022edfc9835a8a1f06e046f3881048)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-31907: [doc] clarify that str.format() does not support arbitrary expressions...
Miss Islington (bot) [Sun, 28 Mar 2021 21:05:07 +0000 (14:05 -0700)] 
bpo-31907: [doc] clarify that str.format() does not support arbitrary expressions (GH-25053) (GH-25055)

(cherry picked from commit fb1d01b9630b5069fe975f16e07a027d90b89434)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-43644: Add docs for importlib.resources.as_file. (GH-25048)
Miss Islington (bot) [Sun, 28 Mar 2021 00:48:53 +0000 (17:48 -0700)] 
bpo-43644: Add docs for importlib.resources.as_file. (GH-25048)

(cherry picked from commit af50c84643ce21cfbdfdabbdfae6bd5e1368c542)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
4 years ago[3.9] bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) (GH-25034)
Christian Heimes [Sat, 27 Mar 2021 21:47:00 +0000 (22:47 +0100)] 
[3.9] bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) (GH-25034)

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

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-39231: correct tutorial annotations section (GH-25029)
Miss Islington (bot) [Sat, 27 Mar 2021 17:43:08 +0000 (10:43 -0700)] 
bpo-39231: correct tutorial annotations section (GH-25029)

(cherry picked from commit a53e9a7cf5912a44c5143e353912e44cfcfca7dc)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-39616: clarify SSLContext.check_hostname effect (GH-18484)
Miss Islington (bot) [Sat, 27 Mar 2021 14:42:45 +0000 (07:42 -0700)] 
bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)

It doesn't actually affect whether match_hostname() is called (it
never is in this context any longer), but whether hostname
verification occurs in the first place.
(cherry picked from commit 9798cef92b882cd82a338d3368eaf3c4a32f5c2d)

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
4 years agobpo-43620: Remove reference to os.sep from os.path.join() doc (GH-25025) (#25027)
Miss Islington (bot) [Fri, 26 Mar 2021 17:24:19 +0000 (10:24 -0700)] 
bpo-43620: Remove reference to os.sep from os.path.join() doc (GH-25025) (#25027)

- removed ambiguous reference to os.sep from os.path.join() doc
(cherry picked from commit 21a2cabb3795f5170c746ab8f29e9d25c7442550)

Co-authored-by: Jared Sutton <jpsutton@gmail.com>
4 years ago[3.9] Clarify attribute docs on types.ModuleType (GH-24974) (#24994)
Brett Cannon [Tue, 23 Mar 2021 17:40:56 +0000 (10:40 -0700)] 
[3.9] Clarify attribute docs on types.ModuleType (GH-24974) (#24994)

(cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc)

Co-authored-by: Brett Cannon <brett@python.org>
4 years agoClarify attribute docs on types.ModuleType (GH-24974)
Miss Islington (bot) [Tue, 23 Mar 2021 16:01:10 +0000 (09:01 -0700)] 
Clarify attribute docs on types.ModuleType (GH-24974)

(cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc)

Co-authored-by: Brett Cannon <brett@python.org>
4 years agobpo-43555: Report the column offset for invalid line continuation character (GH-24939...
Miss Islington (bot) [Mon, 22 Mar 2021 19:07:05 +0000 (12:07 -0700)] 
bpo-43555: Report the column offset for invalid line continuation character (GH-24939) (#24975)

(cherry picked from commit 96eeff516204b7cc751103fa33dcc665e387846e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)
Miss Islington (bot) [Sun, 21 Mar 2021 15:39:15 +0000 (08:39 -0700)] 
bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)

OpenSSL copies the internal message callback from SSL_CTX->msg_callback to
SSL->msg_callback. SSL_set_SSL_CTX() does not update SSL->msg_callback
to use the callback value of the new context.

PySSL_set_context() now resets the callback and _PySSL_msg_callback()
resets thread state in error path.

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

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.9] bpo-43517 (followup): Install additional test directory (GH-24950) (GH-24951)
Antoine Pitrou [Sat, 20 Mar 2021 21:51:59 +0000 (22:51 +0100)] 
[3.9] bpo-43517 (followup): Install additional test directory (GH-24950) (GH-24951)

Should fix some CI failures on buildbots that test an installed version of Python.

(cherry picked from commit 66c8adfa27aeea004657ef29b6db4e4c360ad611)

Co-authored-by: Antoine Pitrou <antoine@python.org>
4 years ago[3.9] bpo-43517: Fix false positive in detection of circular imports (GH-24895) ...
Antoine Pitrou [Sat, 20 Mar 2021 19:40:18 +0000 (20:40 +0100)] 
[3.9] bpo-43517: Fix false positive in detection of circular imports (GH-24895) (GH-24948)

(cherry picked from commit 2fd16ef406bba239b1334057fb499496a84b3aa2)

Co-authored-by: Antoine Pitrou <antoine@python.org>
Automerge-Triggered-By: GH:pitrou
4 years agobpo-43521: Allow ast.unparse with empty sets and NaN (GH-24897)
Miss Islington (bot) [Thu, 18 Mar 2021 22:51:47 +0000 (15:51 -0700)] 
bpo-43521: Allow ast.unparse with empty sets and NaN (GH-24897)

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 08ff4369afca84587b1c82034af4e9f64caddbf2)

Co-authored-by: Kodi Arfer <Kodiologist@users.noreply.github.com>
4 years agobpo-41561: Add workaround for Ubuntu's custom security level (GH-24915)
Miss Islington (bot) [Thu, 18 Mar 2021 22:31:34 +0000 (15:31 -0700)] 
bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915)

Ubuntu 20.04 comes with a patched OpenSSL 1.1.1. Default security level
2 blocks TLS 1.0 and 1.1 connections. Regular OpenSSL 1.1.1 builds allow
TLS 1.0 and 1.1 on security level 2.

See:
See: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1899878
See: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1917625
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit f6c6b5821bff815bdc810de53992fd1fbdb2edd4)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoAdd a warning block around the get_referrers() documentation (GH-24511)
Miss Islington (bot) [Thu, 18 Mar 2021 00:26:07 +0000 (17:26 -0700)] 
Add a warning block around the get_referrers() documentation (GH-24511)

(cherry picked from commit 813db24f7c2c536d587d1832c3c52b44fa9e242e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843)
Miss Islington (bot) [Wed, 17 Mar 2021 21:11:14 +0000 (14:11 -0700)] 
bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843)

Python no longer fails at startup with a fatal error if a command
line argument contains an invalid Unicode character.

The Py_DecodeLocale() function now escapes byte sequences which would
be decoded as Unicode characters outside the [U+0000; U+10ffff]
range.

Use MAX_UNICODE constant in unicodeobject.c.
(cherry picked from commit 9976834f807ea63ca51bc4f89be457d734148682)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.9] bpo-43499: Restrict co_code to be under INT_MAX in codeobject (GH-20628) (GH...
Ammar Askar [Wed, 17 Mar 2021 18:26:38 +0000 (14:26 -0400)] 
[3.9] bpo-43499: Restrict co_code to be under INT_MAX in codeobject (GH-20628) (GH-24896)

(cherry picked from commit 3b3b83c965447a8329b34cb4befe6e9908880ee5)

4 years agobpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387) (GH-24894)
Miss Islington (bot) [Tue, 16 Mar 2021 17:36:41 +0000 (10:36 -0700)] 
bpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387) (GH-24894)

Fix warning:

Objects\exceptions.c(2324,56): warning C4098:
'MemoryError_dealloc': 'void' function returning a value
(cherry picked from commit bbeb223e9a5e9f9374df384efa386b4068a65c0e)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-43499: Silence compiler warnings about using legacy C API on Windows (GH-24873)
Serhiy Storchaka [Tue, 16 Mar 2021 06:03:37 +0000 (08:03 +0200)] 
bpo-43499: Silence compiler warnings about using legacy C API on Windows (GH-24873)

4 years agobpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)
Miss Islington (bot) [Tue, 16 Mar 2021 04:48:12 +0000 (21:48 -0700)] 
bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)

See PEP 624.
(cherry picked from commit 1330338583d183250186a8123b99d2283e945b4f)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years ago[3.9] bpo-43285: Add a What's New entry for 3.9.3. (GH-24888)
Gregory P. Smith [Tue, 16 Mar 2021 04:37:58 +0000 (21:37 -0700)] 
[3.9] bpo-43285: Add a What's New entry for 3.9.3. (GH-24888)

Covers the ftplib security fix.

4 years agobpo-43285 Make ftplib not trust the PASV response. (GH-24838)
Miss Islington (bot) [Mon, 15 Mar 2021 19:02:45 +0000 (12:02 -0700)] 
bpo-43285 Make ftplib not trust the PASV response. (GH-24838)

bpo-43285: Make ftplib not trust the PASV response.

The IPv4 address value returned from the server in response to the PASV command
should not be trusted.  This prevents a malicious FTP server from using the
response to probe IPv4 address and port combinations on the client network.

Instead of using the returned address, we use the IP address we're
already connected to.  This is the strategy other ftp clients adopted,
and matches the only strategy available for the modern IPv6 EPSV command
where the server response must return a port number and nothing else.

For the rare user who _wants_ this ugly behavior, set a `trust_server_pasv_ipv4_address`
attribute on your `ftplib.FTP` instance to True.
(cherry picked from commit 0ab152c6b5d95caa2dc1a30fa96e10258b5f188e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoFix typo in the word "spaghetti" (GH-24866)
Miss Islington (bot) [Mon, 15 Mar 2021 17:45:04 +0000 (10:45 -0700)] 
Fix typo in the word "spaghetti" (GH-24866)

Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 93d33b47af70ede473f82d7953509a0607259c31)

Co-authored-by: Kazantcev Andrey <45011689+heckad@users.noreply.github.com>
4 years ago[3.9] [doc] Document logging.basicConfig default format (GH-23710) (GH-24835)
Miss Islington (bot) [Mon, 15 Mar 2021 09:41:00 +0000 (02:41 -0700)] 
[3.9] [doc] Document logging.basicConfig default format (GH-23710) (GH-24835)

(cherry picked from commit 35cacce5253c50eed0d285836f9ca0ac568991ca)

4 years agobpo-43199: Briefly explain why no goto (GH-24852)
Miss Islington (bot) [Mon, 15 Mar 2021 04:21:36 +0000 (21:21 -0700)] 
bpo-43199: Briefly explain why no goto (GH-24852)

Answer "Why is there no goto?" in the Design and History FAQ.
(cherry picked from commit 5e29021a5eb10baa9147fd977cab82fa3f652bf0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-39943: Fix MSVC warnings in sre extension (GH-20508)
Miss Islington (bot) [Sun, 14 Mar 2021 12:17:26 +0000 (05:17 -0700)] 
bpo-39943: Fix MSVC warnings in sre extension (GH-20508)

(cherry picked from commit 06e3a27a3c863495390a07c695171a8e62a6e0d2)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
4 years ago[3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836...
Pablo Galindo [Sun, 14 Mar 2021 05:28:37 +0000 (06:28 +0100)] 
[3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) (GH-24855)

* [3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836).
(cherry picked from commit 9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Update gcmodule.c

* Update gcmodule.c

* Update gcmodule.c

4 years agobpo-43427: Separte the method overview from the static method specifics. (GH-24787...
Miss Islington (bot) [Sun, 14 Mar 2021 02:31:33 +0000 (18:31 -0800)] 
bpo-43427:  Separte the method overview from the static method specifics. (GH-24787) (GH-24849)

4 years agoFix typos in unittest documentation (GH-24194)
Miss Islington (bot) [Sun, 14 Mar 2021 00:27:53 +0000 (16:27 -0800)] 
Fix typos in unittest documentation (GH-24194)

* addCleanupClass  -> addClassCleanup
* doCleanupsClass -> doClassCleanups
(cherry picked from commit e0e398ef1855f3db708c682f70adc412f0877d59)

Co-authored-by: Conchylicultor <etiennefg.pot@gmail.com>
4 years agoUpdate client.py (GH-24827)
Miss Islington (bot) [Sat, 13 Mar 2021 12:44:36 +0000 (04:44 -0800)] 
Update client.py (GH-24827)

(cherry picked from commit b6884ad2688451dd3cbc5984b23da5840e1b6df8)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years agoUpdate link to Django's Context class. (GH-24805) (#24841)
Miss Islington (bot) [Sat, 13 Mar 2021 12:34:46 +0000 (04:34 -0800)] 
Update link to Django's Context class. (GH-24805) (#24841)

* Update link to Django's Context class.
* Update link to get-pip.py.
(cherry picked from commit d0a445490e2c0e1d2aef3005f14211d9a85196bf)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
4 years agobpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24832)
Miss Islington (bot) [Sat, 13 Mar 2021 00:15:23 +0000 (16:15 -0800)] 
bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24832)

* Fix auth_login logic (bpo-27820)

* Also fix a longstanding bug in the SimSMTPChannel.found_terminator() method that causes inability to test
SMTP AUTH with initial_response_ok=False.
(cherry picked from commit 7591d9455eb37525c832da3d65e1a7b3e6dbf613)

Co-authored-by: Pandu E POLUAN <pepoluan@gmail.com>
4 years ago[3.9] bpo-43353: Document that logging.getLevelName() accepts string representation...
Mariusz Felisiak [Fri, 12 Mar 2021 08:46:07 +0000 (09:46 +0100)] 
[3.9] bpo-43353: Document that logging.getLevelName() accepts string representation of logging level. (GH-24693) (GH-24826)

(cherry picked from commit bbba28212ce0f58096a4043f32442c6e727b74fc)

Automerge-Triggered-By: GH:vsajip
4 years agobpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)
Miss Islington (bot) [Fri, 12 Mar 2021 01:56:35 +0000 (17:56 -0800)] 
bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)

Check to make sure stdout and stderr are not empty before selecting an item from them in Windows subprocess._communicate.

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

Co-authored-by: Chris Griffith <chris@cdgriffith.com>
4 years agobpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815) (GH-24817)
Miss Islington (bot) [Wed, 10 Mar 2021 15:10:57 +0000 (07:10 -0800)] 
bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815) (GH-24817)

Fix a race condition of test_stress_modifying_handlers() of
test_signal: only raise signals while we are in the
catch_unraisable_exception() context manager.
Moreover, don't check if we received at least one
signal if at least one signal got ignored.
(cherry picked from commit 1fa17e8cc62775a2e34b158135ce8589f9394f03)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.9] bpo-43439: Add audit hooks for gc functions (GH-24794). (GH-24811)
Pablo Galindo [Wed, 10 Mar 2021 08:50:29 +0000 (08:50 +0000)] 
[3.9] bpo-43439: Add audit hooks for gc functions (GH-24794). (GH-24811)

(cherry picked from commit b4f9089d4aa787c5b74134c98e5f0f11d9e63095)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-43446: Fix markup in sqlite3 footnote (GH-24806)
Miss Islington (bot) [Tue, 9 Mar 2021 23:43:17 +0000 (15:43 -0800)] 
bpo-43446: Fix markup in sqlite3 footnote (GH-24806)

(cherry picked from commit 62a03cd490f81c0fb01eaceb31aa8a4c7800ed0e)

Co-authored-by: Kamil Turek <kamil.turek@hotmail.com>
4 years agobpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)
Miss Islington (bot) [Tue, 9 Mar 2021 11:39:39 +0000 (03:39 -0800)] 
bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)

(cherry picked from commit 0d6bd1ca7c683137d52041194f3a2b02219f225a)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24790)
Miss Islington (bot) [Mon, 8 Mar 2021 22:52:43 +0000 (14:52 -0800)] 
bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24790)

(cherry picked from commit 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c)

Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>