]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 8 May 2021 06:58:27 +0000 (23:58 -0700)]
Fix make libainstall. (GH-25980)
Initial patch by Benno Leslie.
(cherry picked from commit
80d250d68cf3bb511fd862169c681b28028499c2 )
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Miss Islington (bot) [Fri, 7 May 2021 14:13:19 +0000 (07:13 -0700)]
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25970)
(cherry picked from commit
b32c8e97951db46484ba3b646b988bcdc4062199 )
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Miss Islington (bot) [Thu, 6 May 2021 21:54:58 +0000 (14:54 -0700)]
Fix minor grammar problems in dataclasses documentation (GH-25948) (#25959)
Some missing words; some odd word choices.
(cherry picked from commit
ee8e7c2fa950f88ba2c33035bea7aed7aaf0cb77 )
Co-authored-by: Scott Noyes <snoyes@gmail.com>
Co-authored-by: Scott Noyes <snoyes@gmail.com>
Miss Islington (bot) [Thu, 6 May 2021 19:52:50 +0000 (12:52 -0700)]
docs: clearly document that ":GH-X" string formatting results in "0X..." (GH-25941)
* clearly document that ":GH-X" string formatting results in "0X..."
* put back the "serial comma"
(cherry picked from commit
92ceb1c8402422412fcbb98ca19448677c667c3c )
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
Miss Islington (bot) [Thu, 6 May 2021 19:50:54 +0000 (12:50 -0700)]
bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705)
* Set content-length for simple http server 301s
When http.server.SimpleHTTPRequestHandler sends a 301 (Moved
Permanently) due to a missing file, it does not set a Content-Length
of 0. Unfortunately, certain clients can be left waiting for the
connection to be closed in this circumstance, even though no body
will be sent. At time of writing, both curl and Firefox demonstrate
this behavior.
* Test Content-Length on simple http server redirect
When serving a redirect, the SimpleHTTPRequestHandler will now send
`Content-Length: 0`. Several tests for http.server already cover
various behaviors and checks including redirection. This change only
adds one check for the expected Content-Length on the simplest case
for a redirect.
* Add news entry for SimpleHTTPRequestHandler fix
* Clarify the specific kind of 301
Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
(cherry picked from commit
fb427255614fc1f740e7785554c1da8ca39116c2 )
Co-authored-by: Stephen Rosen <sirosen@globus.org>
Miss Islington (bot) [Thu, 6 May 2021 06:55:35 +0000 (23:55 -0700)]
[3.9] bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) (GH-25928)
Contributed-By: Matthias Klose
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
da5c808fb50d34bc2e180d9481706072f33025da )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 5 May 2021 23:05:52 +0000 (16:05 -0700)]
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916)
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>
Miss Islington (bot) [Wed, 5 May 2021 08:53:54 +0000 (01:53 -0700)]
bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25911)
(cherry picked from commit
96d5c7038b06e93d20822d28ed42a2183f876857 )
Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 21:03:48 +0000 (14:03 -0700)]
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)
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>
Miss Islington (bot) [Tue, 4 May 2021 19:59:45 +0000 (12:59 -0700)]
Clarify rx parameter of compileall functions (GH-25857)
(cherry picked from commit
09490298d4485e9322edc6e1e8e15eb66c586164 )
Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
Jelle Zijlstra [Tue, 4 May 2021 16:48:41 +0000 (09:48 -0700)]
[3.9] bpo-44001: improve Literal documentation (GH-25877). (#25897)
(cherry picked from commit
87109f4d85c93a870ee8aa0d2b394547d4636b17 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Petr Viktorin [Tue, 4 May 2021 14:07:13 +0000 (16:07 +0200)]
[3.9] bpo-42083: Allow NULL doc in PyStructSequence_NewType (#25896)
(cherry picked from commit
2f5baa17504feb9a7613bac32fdceed4894434de )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 May 2021 13:48:24 +0000 (06:48 -0700)]
closes bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680) (#25694)
(cherry picked from commit
f4d7d46cb48aa3a1bf3c2c7e2d7d71cbf49dea69 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Tue, 4 May 2021 13:39:08 +0000 (06:39 -0700)]
Fix typo in ast.py (GH-25740) (GH-25894)
parantheses -> parentheses
(cherry picked from commit
9ee8448243e776d2a07a9868e9795bbb2c828f9c )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 13:17:21 +0000 (06:17 -0700)]
bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) (#25890)
This documents in the tutorial docs the behavior of a finally clause in
case it should re-raise an exception but contains a
return/break/continue statement.
(cherry picked from commit
a0b9915a8be98427432e13d8eb2207a8b9824179 )
Co-authored-by: Roberto Hueso <robertohueso96@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 10:02:49 +0000 (03:02 -0700)]
bpo-38352: Add to typing.__all__ (GH-25821) (#25885)
This adds IO, TextIO, BinaryIO, Match, and Pattern.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
b11557973476963f7c0fd0041eac175bc0d4c514 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 09:00:47 +0000 (02:00 -0700)]
bpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment (GH-25095) (#25880)
Since WPAR and LPAR both have a builddate for teh fileset bos.rte
The name of the fileset checked is modified.
To prevent a similiar situation (no builddate in ODM) a value
sufficient for pep425 activity if retrieved buildate is zero or NULL
Patch by M Felt.
(cherry picked from commit
5017cde20ed1d163a55d95b34ca452d83771a581 )
Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 May 2021 07:10:32 +0000 (00:10 -0700)]
update docstring for `win_getpass` to reflect code changes (GH-24967)
The code was updated in
https://github.com/python/cpython/commit/
0ec88b33d093db00ec68b220247681354a650f0c
but the docstring was left untouched.
=> updated the docstring to reflect the code changes
(cherry picked from commit
d4222ea6b0bb3cf7d40f23b370dc9eea5f9b7004 )
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Miss Islington (bot) [Mon, 3 May 2021 23:36:14 +0000 (16:36 -0700)]
bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25864)
Senthil Kumaran [Mon, 3 May 2021 19:08:59 +0000 (12:08 -0700)]
[3.9] bpo-43882 Remove the newline, and tab early. From query and fragments. (#25853)
* Remove the newline, and tab early. From query and fragments.
Łukasz Langa [Mon, 3 May 2021 18:26:51 +0000 (20:26 +0200)]
Post 3.9.5
Łukasz Langa [Mon, 3 May 2021 14:54:42 +0000 (16:54 +0200)]
Python 3.9.5
Steve Dower [Mon, 3 May 2021 13:06:36 +0000 (14:06 +0100)]
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
Miss Islington (bot) [Mon, 3 May 2021 12:43:04 +0000 (05:43 -0700)]
[3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)
(cherry picked from commit
440c0257262fec6f519bb81e49f1a4f341aeed66 )
Co-authored-by: Julien Palard <julien@palard.fr>
Automerge-Triggered-By: GH:JulienPalard
Ned Deily [Mon, 3 May 2021 05:49:27 +0000 (01:49 -0400)]
[3.9] Update macOS installer readme for 3.9.5 (GH-25836)
Miss Islington (bot) [Mon, 3 May 2021 03:38:49 +0000 (20:38 -0700)]
bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785) (GH-25830)
Narrow search to match contents of SDKs, namely only files in ``/System/Library``,
``/System/IOSSupport``, and ``/usr`` other than ``/usr/local``. Previously,
anything under ``/System`` was assumed to be in an SDK which causes problems
with the new file system layout in 10.15+ where user file systems may appear
to be mounted under ``/System``. Paths in ``/Library`` were also
incorrectly treated as SDK locations.
Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit
d52bbde9421987d216c600557ef5bc931d03efcc )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Erlend Egeberg Aasland [Sun, 2 May 2021 22:43:06 +0000 (00:43 +0200)]
bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ (GH-25818)
Miss Islington (bot) [Sun, 2 May 2021 20:14:30 +0000 (13:14 -0700)]
bpo-43990: Fix the footnote ordering in the operator precedence docs (GH-25805) (GH-25819)
Miss Islington (bot) [Sun, 2 May 2021 13:49:03 +0000 (06:49 -0700)]
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-25815)
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>
(cherry picked from commit
60ce8f0be6354ad565393ab449d8de5d713f35bc )
Miss Islington (bot) [Sun, 2 May 2021 11:03:10 +0000 (04:03 -0700)]
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) (#25812)
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>
Miss Islington (bot) [Sun, 2 May 2021 09:25:38 +0000 (02:25 -0700)]
bpo-41100: Update Misc/ACKS (GH-25808) (GH-25809)
(cherry picked from commit
518f8b5dd50b73499282a1ef02b197af106ad118 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 2 May 2021 09:10:21 +0000 (02:10 -0700)]
[3.9] bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25804) (GH-25807)
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
Miss Islington (bot) [Sun, 2 May 2021 02:56:56 +0000 (19:56 -0700)]
Fix broken name in build.yml (GH-25759) (GH-25802)
(cherry picked from commit
29282b2825545e2823bde94290a80f7c0fd7068e )
Miss Islington (bot) [Sat, 1 May 2021 20:56:05 +0000 (13:56 -0700)]
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
(cherry picked from commit
779232413a367cd3357482e675a5518de102a90e )
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Miss Islington (bot) [Sat, 1 May 2021 19:55:46 +0000 (12:55 -0700)]
Fixing doc for callback for lambda (GG-25779) (GH-25788)
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>
Stéphane Bidoul [Sat, 1 May 2021 15:49:34 +0000 (17:49 +0200)]
[3.9] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25782)
Miss Islington (bot) [Sat, 1 May 2021 00:30:38 +0000 (17:30 -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>
Miss Islington (bot) [Fri, 30 Apr 2021 22:27:48 +0000 (15:27 -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>
Miss Islington (bot) [Fri, 30 Apr 2021 07:56:56 +0000 (00:56 -0700)]
bpo-43954: Fix a missing word in the unittest docs (GH-25672)
(cherry picked from commit
2abbd8f2add5e80b86a965625b9a77ae94a101cd )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Thu, 29 Apr 2021 18:26:26 +0000 (11:26 -0700)]
bpo-42589: Change URL for 'from' link when used in a raised exception (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 )
Co-authored-by: sblondon <sblondon@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Apr 2021 17:57:31 +0000 (10:57 -0700)]
[3.9] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595) (GH-25725)
* bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595)
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 <skumaran@gatech.edu>
Miss Islington (bot) [Thu, 29 Apr 2021 01:13:12 +0000 (18:13 -0700)]
[doc] Be more clear on super() regarding multiple base classes methods (GH-21789) (GH-25706)
(cherry picked from commit
69a733bda34d413d3ad545ef3132240e5d2a7c0c )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Thu, 29 Apr 2021 01:09:03 +0000 (18:09 -0700)]
[doc] Do some polishing in IDEs section (GH-22070) (GH-25703)
(cherry picked from commit
08a4803863856db47a1dde830e56f83e5c6811a2 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 28 Apr 2021 16:20:40 +0000 (09:20 -0700)]
bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module (GH-25506) (GH-25508)
(cherry picked from commit
7b86e47617d81a4b14d929743425f448971e8c86 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 28 Apr 2021 15:28:15 +0000 (08:28 -0700)]
bpo-43961: Fix test_logging.test_namer_rotator_inheritance() (GH-25684) (GH-25688)
Fix test_logging.test_namer_rotator_inheritance() on Windows: use
os.replace() rather than os.rename().
(cherry picked from commit
fe52eb62191e640e720d184a9a1a04e965b8a062 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Irit Katriel [Wed, 28 Apr 2021 15:21:11 +0000 (16:21 +0100)]
bpo-43960: test_pdb resets breakpoints to make tests deterministic (GH-25691)
Miss Islington (bot) [Wed, 28 Apr 2021 15:11:15 +0000 (08:11 -0700)]
bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) (GH-25689)
(cherry picked from commit
4c49be766897968e509c41397e0e624c25b1675d )
Miss Islington (bot) [Wed, 28 Apr 2021 02:26:11 +0000 (19:26 -0700)]
bpo-37751: Update `codecs.register()` doc. (GH-25643)
(cherry picked from commit
5c84bb506aaca01f5f750116d8f7a41d41f8124d )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Erlend Egeberg Aasland [Tue, 27 Apr 2021 19:57:05 +0000 (21:57 +0200)]
[3.9] 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>
Miss Islington (bot) [Tue, 27 Apr 2021 18:20:41 +0000 (11:20 -0700)]
Fix generated file name for installer builds on macOS 11+. (GH-25661) (GH-25664)
(cherry picked from commit
8a37463989410a79f6d1131d08dc0165bcaa0f9d )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 27 Apr 2021 17:42:15 +0000 (10:42 -0700)]
[3.9] bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640) (GH-25662)
(cherry picked from commit
ce827816442613f982c356aa2f434c3c8a0c8917 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:ned-deily
Miss Islington (bot) [Tue, 27 Apr 2021 14:25:19 +0000 (07:25 -0700)]
bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 (GH-23096) (GH-25659)
(cherry picked from commit
32980fb669a6857276da18895fcc0cb6f6fbb544 )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Tue, 27 Apr 2021 04:16:40 +0000 (21:16 -0700)]
[doc] Remove duplicated operator.itemgetter example (GH-24178) (#25646)
* Remove duplicated itemgetter example
* Add spaces
(cherry picked from commit
743e2bae10d2010fd1e29b772c9da64efc7c9c47 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 26 Apr 2021 22:16:20 +0000 (15:16 -0700)]
Use the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH-25638)
(cherry picked from commit
52cd6d5e1b2bece0d8efb58b1af41071c914ebe6 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 26 Apr 2021 19:54:25 +0000 (12:54 -0700)]
bpo-40432: Use python 3.8 or higher to compile CPython on Windows (GH-25389) (#25637)
(cherry picked from commit
425434dadc30d96dc1c0c628f954f9b6f5edd2c9 )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Ma Lin [Mon, 26 Apr 2021 19:50:33 +0000 (03:50 +0800)]
Fix thread locks in zlib module may go wrong in rare case (#22130)
Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
Miss Islington (bot) [Mon, 26 Apr 2021 19:39:51 +0000 (12:39 -0700)]
bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24211)
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>
Miss Islington (bot) [Mon, 26 Apr 2021 19:36:23 +0000 (12:36 -0700)]
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25635)
(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>
Miss Islington (bot) [Mon, 26 Apr 2021 15:12:37 +0000 (08:12 -0700)]
[3.9] bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624) (GH-25626)
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
Miss Islington (bot) [Mon, 26 Apr 2021 14:24:17 +0000 (07:24 -0700)]
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
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>
Miss Islington (bot) [Mon, 26 Apr 2021 04:47:05 +0000 (21:47 -0700)]
Update asyncio-subprocess.rst (GH-21680) (GH-25621)
(cherry picked from commit
3c4850e222388889426e250ff43308e4802dc582 )
Co-authored-by: Gabriel R F <github@gabrf.com>
Senthil Kumaran [Mon, 26 Apr 2021 04:30:32 +0000 (21:30 -0700)]
[3.9] documentation: clarification about the function remove in os library (GH-19024) (GH-25620)
(cherry picked from commit
b6daab2f676de1773d8f35fb362fe4c57449301d )
Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
Miss Islington (bot) [Mon, 26 Apr 2021 04:06:55 +0000 (21:06 -0700)]
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
(cherry picked from commit
7be870f9456ad04c3b67881497de6346d83805d2 )
Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
Miss Islington (bot) [Mon, 26 Apr 2021 04:03:54 +0000 (21:03 -0700)]
Quick pydoc update to smtplib.py (GH-22292) (GH-25615)
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>
Miss Islington (bot) [Mon, 26 Apr 2021 01:54:41 +0000 (18:54 -0700)]
bpo-43534: Fix the turtle module working with multiple root windows GH-25593
(cherry picked from commit
8af929fc76f21fb123f6a47cb3ebcf4e5b758dea )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 26 Apr 2021 01:43:43 +0000 (18:43 -0700)]
Fix broken links and improve stand-alone tools list in FAQ GH-25609
(cherry picked from commit
d28b34695301ec99a9334ad8d69b6092f4f703d5 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 26 Apr 2021 01:42:56 +0000 (18:42 -0700)]
Fix id of 'Internet Message Format' RFC in email doc GH-25613
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>
Miss Islington (bot) [Mon, 26 Apr 2021 01:39:24 +0000 (18:39 -0700)]
Fix copy.Error casing in documentation GH-22004 (#25611)
(cherry picked from commit
0d930f108cb8ba66f54197175c1fba0c38253e4a )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 25 Apr 2021 21:47:54 +0000 (14:47 -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>
Miss Islington (bot) [Sun, 25 Apr 2021 21:36:57 +0000 (14:36 -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>
Senthil Kumaran [Sun, 25 Apr 2021 19:25:51 +0000 (12:25 -0700)]
[3.9] fix typo in warning (GH-20620) (#25601)
* Add space after period to warning in _tzpath.py
Currently:
InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ...
* Update _tzpath.py
(cherry picked from commit
a31cf86bc2d9c0738b2a0251af766d6b247683fc )
Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
Miss Islington (bot) [Sun, 25 Apr 2021 17:30:15 +0000 (10:30 -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>
Miss Islington (bot) [Sun, 25 Apr 2021 15:19:32 +0000 (08:19 -0700)]
Improve CDN purge script (GH-25251) (#25254)
(cherry picked from commit
e35dd556e1adb4fc8b83e5b75ac59e428a8b5460 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Steve Dower <steve.dower@python.org>
Serhiy Storchaka [Sun, 25 Apr 2021 10:49:31 +0000 (13:49 +0300)]
[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)
(cherry picked from commit
3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c )
Miss Islington (bot) [Sun, 25 Apr 2021 10:44:30 +0000 (03:44 -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>
Stéphane Bidoul [Sat, 24 Apr 2021 22:27:44 +0000 (00:27 +0200)]
[3.9] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25578)
(cherry picked from commit
196983563d05e32d2dcf217e955a919f9e0c25e1 )
Miss Islington (bot) [Fri, 23 Apr 2021 18:09:20 +0000 (11:09 -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>
Miss Islington (bot) [Fri, 23 Apr 2021 17:28:05 +0000 (10:28 -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>
Christian Heimes [Fri, 23 Apr 2021 12:23:35 +0000 (14:23 +0200)]
[3.9] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25555)
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit
b9ad88be0304136c3fe5959c65a5d2c75490cd80 )
Co-authored-by: Christian Heimes <christian@python.org>
Jason R. Coombs [Fri, 23 Apr 2021 06:46:16 +0000 (02:46 -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
adf24bd835ed8f76dcc51aa98c8c54275e86965b )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Fri, 23 Apr 2021 03:32:33 +0000 (20:32 -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>
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Miss Islington (bot) [Fri, 23 Apr 2021 03:26:56 +0000 (20:26 -0700)]
Add more tests. Fix code excerpt. (GH-25549) (GH-25550)
Miss Islington (bot) [Fri, 23 Apr 2021 01:16:16 +0000 (18:16 -0700)]
bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)
Reported by Yahor Harunovich.
(cherry picked from commit
14092b5a4ae4caf1c77f685450016a0d1ad0bd6c )
Miss Islington (bot) [Fri, 23 Apr 2021 00:58:42 +0000 (17:58 -0700)]
bpo-39572: Address typo in CHANGELOG. (GH-24999)
(cherry picked from commit
6afb0a8078ff3fc93adc4177565c56f820ca2880 )
Co-authored-by: Simon Charette <charette.s@gmail.com>
Miss Islington (bot) [Thu, 22 Apr 2021 23:56:45 +0000 (16:56 -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>
Miss Islington (bot) [Thu, 22 Apr 2021 20:30:29 +0000 (13:30 -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>
Miss Islington (bot) [Thu, 22 Apr 2021 20:09:56 +0000 (13:09 -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>
Miss Islington (bot) [Thu, 22 Apr 2021 04:32:40 +0000 (21:32 -0700)]
bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH-22608)
(cherry picked from commit
660592f67c0d825b06eb4a38ccc04b34a1f01f00 )
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Miss Islington (bot) [Wed, 21 Apr 2021 23:43:40 +0000 (16:43 -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>
Miss Islington (bot) [Tue, 20 Apr 2021 06:15:50 +0000 (23:15 -0700)]
Improve the error message for choices(population, 10) (GH-25267) (GH-25477)
Miss Islington (bot) [Mon, 19 Apr 2021 15:56:38 +0000 (08:56 -0700)]
bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) (GH-25472)
Miss Islington (bot) [Sat, 17 Apr 2021 14:13:44 +0000 (07:13 -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>
Christian Heimes [Sat, 17 Apr 2021 09:35:24 +0000 (11:35 +0200)]
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25451)
Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit
b467d9a24011992242c95d9157d3455f8a84466b )
Co-authored-by: Christian Heimes <christian@python.org>
Victor Stinner [Fri, 16 Apr 2021 14:06:38 +0000 (16:06 +0200)]
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437)
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 )
Terry Jan Reedy [Fri, 16 Apr 2021 06:08:07 +0000 (02:08 -0400)]
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
Change threading.activeCount to synonym threading.active_count.
Miss Islington (bot) [Wed, 14 Apr 2021 13:28:11 +0000 (06:28 -0700)]
bpo-20364: Improve sqlite3 placeholder docs (GH-25003)
(cherry picked from commit
3386ca0b36327afeef8d7eff277b2aed1030c08d )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Wed, 14 Apr 2021 05:34:39 +0000 (22:34 -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>
Pablo Galindo [Tue, 13 Apr 2021 23:26:43 +0000 (00:26 +0100)]
Revert "Add ignore file for the abidump check (GH-25323)" (GH-25394)
This reverts commit
b3fec753bb14e10066be908b93d3448c6b433ea6 .
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
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>