]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agoUpdate link in SECURITY.md (GH-21320) (GH-26260)
Miss Islington (bot) [Thu, 20 May 2021 02:05:41 +0000 (19:05 -0700)] 
Update link in SECURITY.md (GH-21320) (GH-26260)

(cherry picked from commit 4d396e7d79bd1152f991147718dc5f094a3cc957)

Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
4 years agobpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627)...
Miss Islington (bot) [Thu, 20 May 2021 00:37:49 +0000 (17:37 -0700)] 
bpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627) (#25695)

Previously, `datetime.strptime` would match `'z'` with the format string `'%z'` (for UTC offsets), throwing an `IndexError` by erroneously trying to parse `'z'` as a timestamp. As a special case, `'%z'` matches the string `'Z'` which is equivalent to the offset `'+00:00'`, however this behavior is not defined for lowercase `'z'`.

This change ensures a `ValueError` is thrown when encountering the original example, as follows:

```
>>> from datetime import datetime
>>> datetime.strptime('z', '%z')
ValueError: time data 'z' does not match format '%z'
```

Automerge-Triggered-By: GH:pganssle
(cherry picked from commit 04f6fbb6969e9860783b9ab4dc24b6fe3c6dab8d)

Co-authored-by: Noor Michael <nsmichael31@gmail.com>
Co-authored-by: Noor Michael <nsmichael31@gmail.com>
4 years ago[doc] Fix typo in asyncio-eventloop documentation (GH-22311) (GH-26257)
Miss Islington (bot) [Wed, 19 May 2021 21:20:10 +0000 (14:20 -0700)] 
[doc] Fix typo in asyncio-eventloop documentation (GH-22311) (GH-26257)

(cherry picked from commit b66a03a49157076cb15a002aaf44a011cc79be3b)

Co-authored-by: Bruno <brunogeninatti@gmail.com>
4 years agobpo-37741: make importlib.metadata docs discoverable through a module directive....
Miss Islington (bot) [Wed, 19 May 2021 21:06:55 +0000 (14:06 -0700)] 
bpo-37741: make importlib.metadata docs discoverable through a module directive. (GH-25415) (GH-25417)

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

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
4 years agobpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine...
Miss Islington (bot) [Wed, 19 May 2021 20:37:52 +0000 (13:37 -0700)] 
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26255)

(cherry picked from commit c054e8f78f53035e06d6dc58c423d76c8a5fa39a)

Co-authored-by: naglis <naglis@users.noreply.github.com>
4 years agoFix compiler warning for misleading guarding in the tkinter (GH-26244) (GH-26252)
Miss Islington (bot) [Wed, 19 May 2021 18:27:19 +0000 (11:27 -0700)] 
Fix compiler warning for misleading guarding in the tkinter (GH-26244) (GH-26252)

The newest gcc emmits this warning:

```
/Modules/_tkinter.c:272:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  272 |         if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
      |         ^~
/Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’
 2869 |     LEAVE_PYTHON
      |     ^~~~~~~~~~~~
/Modules/_tkinter.c:243:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  243 |     (*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*)))
      |     ^
/Modules/_tkinter.c:272:57: note: in expansion of macro ‘tcl_tstate’
  272 |         if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
      |                                                         ^~~~~~~~~~
/Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’
 2869 |     LEAVE_PYTHON

```

that's because the macro packs together two statements at the same level
as the "if". The warning is misleading but is very noisy so it makes
sense to fix it.
(cherry picked from commit 95d04710c5fb0df5393b5add2c5c2de2412673eb)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-44168: Fix error message in the parser for keyword arguments for invalid...
Pablo Galindo [Wed, 19 May 2021 18:26:59 +0000 (19:26 +0100)] 
[3.9] bpo-44168: Fix error message in the parser for keyword arguments for invalid expressions (GH-26210) (GH-26250)

(cherry picked from commit 33c0c90dea06fda1df99482521559ebef7210bea)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agoFix compiler warning in the xml module (GH-26245) (GH-26248)
Miss Islington (bot) [Wed, 19 May 2021 18:21:07 +0000 (11:21 -0700)] 
Fix compiler warning in the xml module (GH-26245) (GH-26248)

The newest version of gcc complains about passing un-initialized arrays
as constant pointers:

```
/Modules/expat/xmltok_ns.c: In function ‘findEncodingNS’:
/Modules/expat/xmltok.h:272:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized]
  272 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’
   95 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
/Modules/expat/xmltok.h:272:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’}
  272 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’
   95 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
In file included from /Modules/expat/xmltok.c:1657:
/Modules/expat/xmltok_ns.c:92:8: note: ‘buf’ declared here
   92 |   char buf[ENCODING_MAX];

```
(cherry picked from commit be93f81e58ba3742589259ef84325a95b547e424)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] backport non-content changes to IDLE's help.html (GH-26239)
Tal Einat [Wed, 19 May 2021 11:59:38 +0000 (14:59 +0300)] 
[3.9] backport non-content changes to IDLE's help.html (GH-26239)

Followup to GH-25851 to synchonize with 3.10.
Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
4 years agobpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26219)
Miss Islington (bot) [Wed, 19 May 2021 08:59:36 +0000 (01:59 -0700)] 
bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26219)

(cherry picked from commit 4fdcc39f711e1b586a94e2c5088fdd7e78fd9f58)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-44106: Purge unused sqlite3 doc includes (GH-26234)
Miss Islington (bot) [Wed, 19 May 2021 08:17:03 +0000 (01:17 -0700)] 
bpo-44106: Purge unused sqlite3 doc includes (GH-26234)

(cherry picked from commit d798acc8733b605f7fc9c3c1a85cd14ee2a56add)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-44106: Improve sqlite3 example database contents (GH-26027)
Miss Islington (bot) [Wed, 19 May 2021 07:43:44 +0000 (00:43 -0700)] 
bpo-44106: Improve sqlite3 example database contents (GH-26027)

(cherry picked from commit 92d1064727d6b7f4136f9c09ab52ae15e3676afe)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)
Miss Islington (bot) [Wed, 19 May 2021 07:32:45 +0000 (00:32 -0700)] 
bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)

(cherry picked from commit 901443757333a66ff2b5c85eba30dc1c48eac321)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years ago[3.9] bpo-42783: Documentation for asyncio.sleep(0) (GH-24002) (GH-24153)
Ken Jin [Tue, 18 May 2021 22:31:27 +0000 (06:31 +0800)] 
[3.9] bpo-42783: Documentation for asyncio.sleep(0) (GH-24002) (GH-24153)

Co-Authored-By: Simon Willison <swillison@gmail.com>
4 years agobpo-41963: document that ConfigParser strips off comments (GH-26197) (GH-26213)
Miss Islington (bot) [Tue, 18 May 2021 16:44:48 +0000 (09:44 -0700)] 
bpo-41963: document that ConfigParser strips off comments (GH-26197) (GH-26213)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Laura Gutierrez Funderburk <58710704+lgfunderburk@users.noreply.github.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
(cherry picked from commit 02ee8191263848f8c8999f72286148946b83e5c9)

4 years agobpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26211)
Irit Katriel [Tue, 18 May 2021 14:25:38 +0000 (15:25 +0100)] 
bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26211)

(cherry picked from commit 115dea9e2602b96b63390f00cc880e90c433efa2)

Co-authored-by: uniocto <serit142sa33go@gmail.com>
4 years agobpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files...
Miss Islington (bot) [Mon, 17 May 2021 17:34:39 +0000 (10:34 -0700)] 
bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files (GH-25058)

`shutil.unpack_archive()` tries to read the whole file into memory, making no use of any kind of smaller buffer. Process crashes for really large files: I.e. archive: ~1.7G, unpacked: ~10G. Before the crash it can easily take away all available RAM on smaller systems. Had to pull the code form `zipfile.Zipfile.extractall()` to fix this

Automerge-Triggered-By: GH:gpshead
(cherry picked from commit f32c7950e0077b6d9a8e217c2796fc582f18ca08)

Co-authored-by: Igor Bolshakov <ibolsch@gmail.com>
4 years ago[3.9] bpo-44145: Release the GIL around HMAC_Update. (GH-26157) (GH-26188)
Miss Islington (bot) [Mon, 17 May 2021 08:07:49 +0000 (01:07 -0700)] 
[3.9] bpo-44145: Release the GIL around HMAC_Update. (GH-26157) (GH-26188)

It was always meant to be released for parallelization.
This now matches the other similar code in the module.

Thanks michaelforney for noticing!
(cherry picked from commit c10392e7ddb3eafbd11e9ffe335c07648426715f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Automerge-Triggered-By: GH:gpshead
4 years ago[doc] Fix typo in os module (GH-24464)
Miss Islington (bot) [Mon, 17 May 2021 00:00:12 +0000 (17:00 -0700)] 
[doc] Fix typo in os module (GH-24464)

Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit fdc7e52f5f1853e350407c472ae031339ac7f60c)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 years agofix docstring typo in bdb.py (GH-22323) (#26180)
Miss Islington (bot) [Sun, 16 May 2021 23:43:26 +0000 (16:43 -0700)] 
fix docstring typo in bdb.py (GH-22323) (#26180)

(cherry picked from commit be54fb5ae73db507a0cdb1884d553aca5966f0e6)

Co-authored-by: flizzywine <1041958497@qq.com>
4 years ago[3.9] Fix typo in comment (GH-26162) (GH-26165)
Miss Islington (bot) [Sun, 16 May 2021 18:08:10 +0000 (11:08 -0700)] 
[3.9] Fix typo in comment (GH-26162) (GH-26165)

(cherry picked from commit de367378f67d7e90e4015100b19277685a3c9bb3)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Automerge-Triggered-By: GH:iritkatriel
4 years agoRemove a redundant assignment in Tools/unittestgui/unittestgui.py (GH-21438) (#26169)
Miss Islington (bot) [Sun, 16 May 2021 16:17:55 +0000 (09:17 -0700)] 
Remove a redundant assignment in Tools/unittestgui/unittestgui.py (GH-21438) (#26169)

(cherry picked from commit a42d98ed91cd1f08b2e9734ca6ca136dd10dff5d)

Co-authored-by: Serhii Hidenko <shidenko97@gmail.com>
4 years agobpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH...
Miss Islington (bot) [Sun, 16 May 2021 14:34:43 +0000 (07:34 -0700)] 
bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH-26062) (GH-26093)

These are passed and called as PyCFunction, however they are defined here without the (ignored) args parameter.

This works fine in some C compilers, but fails in webassembly or anything else that has strict function pointer call type checking.
(cherry picked from commit ab383eb6f03896b0ef6634ee3d776344fcb9e5b8)

Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
4 years agobpo-32133: Improve numbers docs (GH-26124) (GH-26147)
Miss Islington (bot) [Sat, 15 May 2021 17:28:05 +0000 (10:28 -0700)] 
bpo-32133: Improve numbers docs (GH-26124) (GH-26147)

4 years ago[3.9] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) (GH-26142)
Antoine Pitrou [Sat, 15 May 2021 09:51:20 +0000 (11:51 +0200)] 
[3.9] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) (GH-26142)

When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown.  If many threads are created this way, the _shutdown_locks set could therefore grow endlessly.  To avoid such a situation, purge expired locks each time a new one is added or removed..
(cherry picked from commit c10c2ec7a0e06975e8010c56c9c3270f8ea322ec)

Co-authored-by: Antoine Pitrou <antoine@python.org>
Automerge-Triggered-By: GH:pitrou
4 years agobpo-44072: fix Complex, Integral docs for `**` (GH-25986)
Miss Islington (bot) [Fri, 14 May 2021 22:25:43 +0000 (15:25 -0700)] 
bpo-44072: fix Complex, Integral docs for `**` (GH-25986)

In numbers module docstrings and docs.
(cherry picked from commit 4aa63d65a9971d14f1a2131b989dca0dab514a9d)

Co-authored-by: Rory Yorke <rory.yorke@gmail.com>
4 years agobpo-43729: Clarify comment in tutorial example (GH-25191) (GH-26137)
Miss Islington (bot) [Fri, 14 May 2021 20:06:34 +0000 (13:06 -0700)] 
bpo-43729: Clarify comment in tutorial example (GH-25191) (GH-26137)

(cherry picked from commit 07797121cc290ede0b3d3cf02068f3d993cddd15)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoSubprocess Protocols Documentation (GH-20950) (GH-26134)
Miss Islington (bot) [Fri, 14 May 2021 17:23:03 +0000 (10:23 -0700)] 
Subprocess Protocols Documentation (GH-20950) (GH-26134)

Should be "Subprocess Protocol instances" not "Datagram Protocol instances"
(cherry picked from commit 2918846a4ff394237ccd7c6d5cdf5655e2ddd726)

Co-authored-by: kudavid <67070184+kudavid@users.noreply.github.com>
Co-authored-by: kudavid <67070184+kudavid@users.noreply.github.com>
4 years ago[doc] Fix typos in cgi.rst (GH-24766) (GH-26131)
Miss Islington (bot) [Fri, 14 May 2021 17:13:40 +0000 (10:13 -0700)] 
[doc] Fix typos in cgi.rst (GH-24766) (GH-26131)

(cherry picked from commit 19d839ae20db9c6f740646e99df7f4601cb9f4dc)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years ago[3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128)
Erlend Egeberg Aasland [Fri, 14 May 2021 16:50:03 +0000 (18:50 +0200)] 
[3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128)

(cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoUpdate doc as relative import can be used with star import (GH-25667) (GH-26122)
Miss Islington (bot) [Fri, 14 May 2021 14:25:40 +0000 (07:25 -0700)] 
Update doc as relative import can be used with star import (GH-25667) (GH-26122)

(cherry picked from commit 3d4b5f1019123a7d74801500eb18ec8fa12136bc)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
4 years agoUpdated code example for asyncio.gather (GH-20604) (GH-26120)
Miss Islington (bot) [Fri, 14 May 2021 06:07:31 +0000 (23:07 -0700)] 
Updated code example for asyncio.gather (GH-20604) (GH-26120)

The previous example did not fully showcase the interest of using gather.

Here the example showcases "the result is an aggregate list of returned values".
(cherry picked from commit 56b8ea65d28bd865e2363e10e9f1c2ca3433ffc2)

Co-authored-by: josephernest <nouvellecollection@gmail.com>
Co-authored-by: josephernest <nouvellecollection@gmail.com>
4 years agobpo-28146: Fix a confusing error message in str.format() (GH-24213)
Miss Islington (bot) [Thu, 13 May 2021 21:35:30 +0000 (14:35 -0700)] 
bpo-28146: Fix a confusing error message in str.format() (GH-24213)

Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 4aeee0b47b3a2b604bbac37040320ffc88c291f2)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-44114: Remove redundant cast. (GH-26098)
Miss Islington (bot) [Thu, 13 May 2021 21:07:16 +0000 (14:07 -0700)] 
bpo-44114: Remove redundant cast. (GH-26098)

(cherry picked from commit e0c614e5fd017ca43cab55a9f8490133750c704f)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)
Miss Islington (bot) [Thu, 13 May 2021 18:14:23 +0000 (11:14 -0700)] 
bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)

The patch from [bpo-44074]() does not account for a possibly non-English locale and blindly greps for "HEAD branch" in a possibly localized text.

Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 1aa3530314d339725519f4ad95b7dea4b00b657e)

Co-authored-by: Antoine Pitrou <antoine@python.org>
4 years ago[3.9] Revert "[3.9] bpo-38908: Fix issue when non runtime_protocol does not raise...
Ken Jin [Wed, 12 May 2021 17:44:14 +0000 (01:44 +0800)] 
[3.9] Revert "[3.9] bpo-38908: Fix issue when non runtime_protocol does not raise TypeError (GH-26067)" (GH-26077)

Reverts python/cpython#26075

Automerge-Triggered-By: GH:gvanrossum
4 years ago[3.9] bpo-38908: Fix issue when non runtime_protocol does not raise TypeError (GH...
Ken Jin [Wed, 12 May 2021 17:04:43 +0000 (01:04 +0800)] 
[3.9] bpo-38908: Fix issue when non runtime_protocol does not raise TypeError (GH-26067) (GH-26075)

(cherry picked from commit c40486a)

Co-authored-by: Yurii Karabas 1998uriyyo@gmail.com
Automerge-Triggered-By: GH:gvanrossum
4 years agobpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26063)
Miss Islington (bot) [Wed, 12 May 2021 13:45:18 +0000 (06:45 -0700)] 
bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26063)

Co-authored-by: Szymon Trapp
(cherry picked from commit 5010c044c73ee55d0fd578cfecd3f4c3f01a4140)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
4 years agobpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26058)
Miss Islington (bot) [Wed, 12 May 2021 10:28:10 +0000 (03:28 -0700)] 
bpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26058)

Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
(cherry picked from commit 6574334a68aa324394a6fd1f855ecbad20432b1e)

4 years agobpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path object...
Steve Dower [Wed, 12 May 2021 09:48:50 +0000 (10:48 +0100)] 
bpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path object (GH-25964) (GH-26052)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
4 years ago[3.9] bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None (GH...
Erlend Egeberg Aasland [Wed, 12 May 2021 09:04:10 +0000 (11:04 +0200)] 
[3.9] bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None (GH-25438) (GH-26053)

Co-authored-by: Thomas Kluyver <takowl@gmail.com>
(cherry picked from commit 8563a7052ccd98e6a381d361664ce567afd5eb6e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:iritkatriel
4 years agoFix import of HTTPError (GH-22304) (GH-26048)
Miss Islington (bot) [Tue, 11 May 2021 23:18:23 +0000 (16:18 -0700)] 
Fix import of HTTPError (GH-22304) (GH-26048)

Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71439187f00c661b16b80d398b74b00390e)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
4 years agoFix typo in blurb entry (GH-26043)
Jero Bado [Tue, 11 May 2021 22:28:57 +0000 (06:28 +0800)] 
Fix typo in blurb entry (GH-26043)

4 years agobpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045)
Miss Islington (bot) [Tue, 11 May 2021 22:23:54 +0000 (15:23 -0700)] 
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045)

(cherry picked from commit 23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH...
Miss Islington (bot) [Tue, 11 May 2021 20:55:24 +0000 (13:55 -0700)] 
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH-26041)

* Document os-system, subprocess Patch

* Update Doc/library/os.rst

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

Co-authored-by: uniocto <serit142sa33go@gmail.com>
Co-authored-by: uniocto <serit142sa33go@gmail.com>
4 years agobpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192...
Miss Islington (bot) [Tue, 11 May 2021 18:19:42 +0000 (11:19 -0700)] 
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192) (#26036)

(cherry picked from commit 12e7d10dfd28d4e26304e2c06b2e41c7418ec6f3)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agoDoc: http.server: directory is not a class attribute, but an argument. (GH-26017...
Miss Islington (bot) [Tue, 11 May 2021 01:59:22 +0000 (18:59 -0700)] 
Doc: http.server: directory is not a class attribute, but an argument. (GH-26017) (GH-26030)

* Doc: http.server: directory is not a class attribute, but an argument.
(cherry picked from commit d1b81574edd75e33ae85c525ac988ce772675a07)

Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-44070: Clarify NEWS message to specify the version when the behaviour was introdu...
Steve Dower [Mon, 10 May 2021 23:39:17 +0000 (00:39 +0100)] 
bpo-44070: Clarify NEWS message to specify the version when the behaviour was introduced (GH-26029)

4 years agobpo-44070: No longer eagerly makes import filenames absolute, except for extension...
Steve Dower [Mon, 10 May 2021 22:45:50 +0000 (23:45 +0100)] 
bpo-44070: No longer eagerly makes import filenames absolute, except for extension modules (GH-26025)

4 years agobpo-44074: let patchcheck infer the base branch name (GH-25991)
Miss Islington (bot) [Mon, 10 May 2021 18:58:45 +0000 (11:58 -0700)] 
bpo-44074: let patchcheck infer the base branch name (GH-25991)

(cherry picked from commit 21fbbb98bac8bfe56f8b931258c36750e84f9285)

Co-authored-by: Leonardo Lai <leonardo.lai@live.com>
4 years agobpo-43558: Add note about base class initialization to dataclasses doc (GH-25967...
Miss Islington (bot) [Mon, 10 May 2021 13:38:01 +0000 (06:38 -0700)] 
bpo-43558: Add note about base class initialization to dataclasses doc (GH-25967) (GH-26019)

(cherry picked from commit 2a031723eefcf6f1d678bbb4f6018610d43623c4)

Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
4 years agobpo-32924: Fix the Show Source url in the documentation (GH-25994)
Miss Islington (bot) [Sat, 8 May 2021 18:43:59 +0000 (11:43 -0700)] 
bpo-32924: Fix the Show Source url in the documentation (GH-25994)

(cherry picked from commit 03acfc50ac0be8b49847b94dee93e21b1efa0e76)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agoFix make libainstall. (GH-25980)
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>
4 years agoSimple Enhancement. Add missing return statements in ftplib documentation. (GH-25968...
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>
4 years agoFix minor grammar problems in dataclasses documentation (GH-25948) (#25959)
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>
4 years agodocs: clearly document that ":GH-X" string formatting results in "0X..." (GH-25941)
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>
4 years agobpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s...
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>
4 years ago[3.9] bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) (GH-25928)
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>
4 years agobpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue...
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>
4 years agobpo-44040: Update broken link in pathlib source (GH-25905) (GH-25911)
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>
4 years agobpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)
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>
4 years agoClarify rx parameter of compileall functions (GH-25857)
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>
4 years ago[3.9] bpo-44001: improve Literal documentation (GH-25877). (#25897)
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>
4 years ago[3.9] bpo-42083: Allow NULL doc in PyStructSequence_NewType (#25896)
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>
4 years agocloses bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680) (#25694)
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>
4 years agoFix typo in ast.py (GH-25740) (GH-25894)
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>
4 years agobpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) (#25890)
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>
4 years agobpo-38352: Add to typing.__all__ (GH-25821) (#25885)
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>
4 years agobpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment (GH-25095...
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>
4 years agoupdate docstring for `win_getpass` to reflect code changes (GH-24967)
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>
4 years agobpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25864)
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)

4 years ago[3.9] bpo-43882 Remove the newline, and tab early. From query and fragments. (#25853)
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.

4 years agoPost 3.9.5
Łukasz Langa [Mon, 3 May 2021 18:26:51 +0000 (20:26 +0200)] 
Post 3.9.5

4 years agoPython 3.9.5 v3.9.5
Łukasz Langa [Mon, 3 May 2021 14:54:42 +0000 (16:54 +0200)] 
Python 3.9.5

4 years agobpo-42800: Add audit events for f_code and tb_frame (GH-24182)
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

4 years ago[3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)
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
4 years ago[3.9] Update macOS installer readme for 3.9.5 (GH-25836)
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)

4 years agobpo-41129: Fix check for macOS SDK paths when building Python (GH-25785) (GH-25830)
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>
4 years agobpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ (GH-25818)
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)

4 years agobpo-43990: Fix the footnote ordering in the operator precedence docs (GH-25805) ...
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)

4 years agobpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH...
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)

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: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>
4 years agobpo-41100: Update Misc/ACKS (GH-25808) (GH-25809)
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>
4 years ago[3.9] bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25804) (GH...
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
4 years agoFix broken name in build.yml (GH-25759) (GH-25802)
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)

4 years agoFix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
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>
4 years agoFixing doc for callback for lambda (GG-25779) (GH-25788)
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>
4 years ago[3.9] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25782)
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)

4 years agobpo-43971: Add spaces around annotated arg default '=' (GH-25702)
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>
4 years agobpo-43935: Fix typo in Turtle.back() docstring (GH-25581)
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>
4 years agobpo-43954: Fix a missing word in the unittest docs (GH-25672)
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>
4 years agobpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)
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>
4 years ago[3.9] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and...
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>
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: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>
4 years ago[doc] Do some polishing in IDEs section (GH-22070) (GH-25703)
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>
4 years agobpo-43472: Ensure PyInterpreterState_New audit events are raised when called through...
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>
4 years agobpo-43961: Fix test_logging.test_namer_rotator_inheritance() (GH-25684) (GH-25688)
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>
4 years agobpo-43960: test_pdb resets breakpoints to make tests deterministic (GH-25691)
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)

4 years agobpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) (GH-25689)
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)

4 years agobpo-37751: Update `codecs.register()` doc. (GH-25643)
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>