]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years ago[3.8] bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24833)
Senthil Kumaran [Sat, 13 Mar 2021 00:53:13 +0000 (16:53 -0800)] 
[3.8] bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24833)

* bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118)

* 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)

* Set timeout to 15 directly.

Co-authored-by: Pandu E POLUAN <pepoluan@gmail.com>
4 years agobpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)
Miss Islington (bot) [Fri, 12 Mar 2021 01:52:50 +0000 (17:52 -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)
Miss Islington (bot) [Wed, 10 Mar 2021 14:49:27 +0000 (06:49 -0800)] 
bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815)

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>
4 years ago[3.8] bpo-43439: Add audit hooks for gc functions (GH-24794). (GH-24810)
Pablo Galindo [Wed, 10 Mar 2021 08:50:16 +0000 (08:50 +0000)] 
[3.8] bpo-43439: Add audit hooks for gc functions (GH-24794). (GH-24810)

(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:38 +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:27:19 +0000 (03:27 -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-24791)
Miss Islington (bot) [Mon, 8 Mar 2021 22:53:22 +0000 (14:53 -0800)] 
bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24791)

(cherry picked from commit 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c)

Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
4 years agoPut contextvars docs into the concurrency category (GH-24760)
Miss Islington (bot) [Sat, 6 Mar 2021 16:42:20 +0000 (08:42 -0800)] 
Put contextvars docs into the concurrency category (GH-24760)

(cherry picked from commit 5eb7796b7f3aae91b145ccea51b528662f3b5ce1)

Co-authored-by: Brett Cannon <brett@python.org>
4 years ago[3.8] bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to...
Antoine Pitrou [Sat, 6 Mar 2021 15:08:01 +0000 (16:08 +0100)] 
[3.8] bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to execute a non-Python signal handler (GH-24756) (GH-24762)

We can receive signals (at the C level, in `trip_signal()` in signalmodule.c) while `signal.signal` is being called to modify the corresponding handler.  Later when `PyErr_CheckSignals()` is called to handle the given signal, the handler may be a non-callable object and would raise a cryptic asynchronous exception..
(cherry picked from commit 68245b7a1030287294c65c298975ab9026543fd2)

Co-authored-by: Antoine Pitrou <antoine@python.org>
4 years agobpo-43407: Clarify comparisons of time.monotonic() et al results (GH-24757)
Miss Islington (bot) [Sat, 6 Mar 2021 01:34:27 +0000 (17:34 -0800)] 
bpo-43407: Clarify comparisons of time.monotonic() et al results (GH-24757)

Previous wording implied that only the result of call N and N+1 could be
meaningfully compared, whereas comparing call N and N+M is fine.
(cherry picked from commit ff5f05934db241dfafc604989b2de3487b09ca82)

Co-authored-by: Alex Willmer <alex@moreati.org.uk>
4 years agobpo-43396: Normalise naming in sqlite3 doc examples (GH-24746)
Miss Islington (bot) [Thu, 4 Mar 2021 17:12:06 +0000 (09:12 -0800)] 
bpo-43396: Normalise naming in sqlite3 doc examples (GH-24746)

(cherry picked from commit 40d1b831ecd1b5b6a4fce9a908a6e61b50b360a0)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years ago[3.8] bpo-37193: Remove thread objects which finished process its request (GH-23127...
Miss Islington (bot) [Thu, 4 Mar 2021 16:55:24 +0000 (08:55 -0800)] 
[3.8] bpo-37193: Remove thread objects which finished process its request (GH-23127) (GH-24749)

This reverts commit aca67da4fe68d5420401ac1782203d302875eb27.
(cherry picked from commit b5711c940f70af89f2b4cf081a3fcd83924f3ae7)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Automerge-Triggered-By: GH:jaraco
4 years agobpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)
Miss Islington (bot) [Wed, 3 Mar 2021 15:37:20 +0000 (07:37 -0800)] 
bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)

* Fail fast in shutil.move() to avoid creating destination directories on failure.

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
(cherry picked from commit 132131b404e06ee1a19b040a1f96cd1118abed0c)

Co-authored-by: Winson Luk <winson.luk@gmail.com>
4 years ago[3.8] Pin test runner to Ubuntu 18 to un-break CI (GH-24715) (GH-24717)
Miss Islington (bot) [Wed, 3 Mar 2021 09:56:41 +0000 (01:56 -0800)] 
[3.8] Pin test runner to Ubuntu 18 to un-break CI (GH-24715) (GH-24717)

(cherry picked from commit 94894dd45e4bad6efb27eac4497b24cdc18b3e2d)

Co-authored-by: Brandt Bucher <brandt@python.org>
Automerge-Triggered-By: GH:tiran
4 years agobpo-42840: Document providing kwargs to type. (GH-24173)
Miss Islington (bot) [Mon, 1 Mar 2021 23:30:42 +0000 (15:30 -0800)] 
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 ago[3.8] [doc] Document VIRTUAL_ENV environment variable (GH-21970) (GH-24363)
Miss Islington (bot) [Mon, 1 Mar 2021 15:07:31 +0000 (07:07 -0800)] 
[3.8] [doc] Document VIRTUAL_ENV environment variable (GH-21970) (GH-24363)

(cherry picked from commit 3584d4b64a5373440f78237eac734831cfd83f79)

4 years agocloses bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680)
Miss Islington (bot) [Mon, 1 Mar 2021 14:54:30 +0000 (06:54 -0800)] 
closes bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680)

(cherry picked from commit f4d7d46cb48aa3a1bf3c2c7e2d7d71cbf49dea69)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677)
Miss Islington (bot) [Mon, 1 Mar 2021 08:00:08 +0000 (00:00 -0800)] 
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677)

(cherry picked from commit 0242494a156970186cbc4121ccf03aefbddea716)

Co-authored-by: Ned Deily <nad@python.org>
4 years agocloses bpo-43266: Improve array formatting. (GH-24573) (GH-24585)
Miss Islington (bot) [Mon, 1 Mar 2021 02:20:08 +0000 (18:20 -0800)] 
closes bpo-43266: Improve array formatting. (GH-24573) (GH-24585)

(cherry picked from commit 2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-36346: Document removal schedule of deprecate APIs (GH-20879) (#24626)
Miss Islington (bot) [Mon, 1 Mar 2021 02:14:33 +0000 (18:14 -0800)] 
bpo-36346: Document removal schedule of deprecate APIs (GH-20879) (#24626)

We will remove wstr cache in Python 3.12. See PEP 623.
(cherry picked from commit 2d6f2eed14ff5d89155b52771cc8ef957e8145b4)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
Miss Islington (bot) [Fri, 26 Feb 2021 02:36:49 +0000 (18:36 -0800)] 
bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)

(cherry picked from commit 9525a18b5bb317d9fb206c992ab62aa41559b0c8)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
Miss Islington (bot) [Thu, 25 Feb 2021 11:52:11 +0000 (03:52 -0800)] 
bpo-43316:  gzip: CLI uses non-zero return code on error. (GH-24647)

Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is
the proper behaviour for a tool that can be used in scripts.
(cherry picked from commit cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f)

Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
4 years agobpo-43293: Doc: move note about GIL to top of threading module (GH-24622)
Miss Islington (bot) [Wed, 24 Feb 2021 18:49:19 +0000 (10:49 -0800)] 
bpo-43293: Doc: move note about GIL to top of threading module (GH-24622)

The note about the GIL was buried pretty deep in the threading documentation,
and this made it hard for first time users to discover why their attempts
at using threading to parallelizing their application did not work.

In this commit, the note is moved to the top of the module documention for
visibility.
(cherry picked from commit 32181be6081f6c70a1e0bd0540050805c8e88e83)

Co-authored-by: Guanzhong Chen <quantum2048@gmail.com>
4 years ago[3.8] bpo-41841: prepare for 3.8.9 (GH-24635)
Terry Jan Reedy [Wed, 24 Feb 2021 02:34:25 +0000 (21:34 -0500)] 
[3.8] bpo-41841: prepare for 3.8.9 (GH-24635)

4 years agobpo-43283: Add IDLE doc paragraph about print speed (GH-24615) (GH-24632)
Miss Islington (bot) [Wed, 24 Feb 2021 01:47:06 +0000 (17:47 -0800)] 
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) (GH-24632)

Printing to IDLE's Shell is often slower than printing to a system
terminal, but it can be made faster by pre-formatting a single
string before printing.
(cherry picked from commit 2827e8a177c2a6584fada594bca6829c53a2872f)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-23882: Doc: Clarify unittest discovery document (GH-21560)
Miss Islington (bot) [Mon, 22 Feb 2021 06:24:54 +0000 (22:24 -0800)] 
bpo-23882: Doc: Clarify unittest discovery document (GH-21560)

Unittest discovery support namespace package as start
directory. But it doesn't find namespace package in
the start directory automatically.

Otherwise, unittest discovery search into unexpected
directories like `vendor/` or `node_modules/`.
(cherry picked from commit 5a4aa4c03e27ca5007b86c9c1ee62c77ad08a120)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)
Inada Naoki [Mon, 22 Feb 2021 01:38:17 +0000 (10:38 +0900)] 
bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)

When very large data remains in TextIOWrapper, flush() may fail forever.

So prevent that data larger than chunk_size is remained in TextIOWrapper internal
buffer.

Co-Authored-By: Eryk Sun.
(cherry picked from commit 01806d5beba3d208bb56adba6829097d803bf54f)

4 years agobpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
Miss Islington (bot) [Sun, 21 Feb 2021 08:04:11 +0000 (00:04 -0800)] 
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)

In the Running User Code section, gather together paragraphs about two
processes and the sys.stdstream replacements, preparing to add another.
(cherry picked from commit 4cf7bb8e22bf37e6d65bf4cb5618d09c4a8ad612)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-27646: Say that 'yield from' expression can be any iterable (GH-24595)
Miss Islington (bot) [Sun, 21 Feb 2021 02:42:24 +0000 (18:42 -0800)] 
bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595)

Previously, the doc at least strongly implied that it had to be an iterator.
(cherry picked from commit 2f9ef514fb24b6a95bd3272885f197752810c107)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoFix typo in dis module doc (GH-24509)
Miss Islington (bot) [Sat, 20 Feb 2021 04:31:18 +0000 (20:31 -0800)] 
Fix typo in dis module doc (GH-24509)

(cherry picked from commit 292f23186c6573bc1c3fa4f6e91116e8ee444cf4)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years agobpo-43042: Augment tutorial sentence (GH-24514)
Miss Islington (bot) [Sat, 20 Feb 2021 00:36:07 +0000 (16:36 -0800)] 
bpo-43042: Augment tutorial sentence (GH-24514)

Calling same function also gets new local namespace.
(cherry picked from commit b30fcba3a8abaabd1087f2392ae8aec4c1b1f210)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoPost 3.8.8
Łukasz Langa [Fri, 19 Feb 2021 12:16:45 +0000 (13:16 +0100)] 
Post 3.8.8

4 years agoPython 3.8.8 v3.8.8
Łukasz Langa [Fri, 19 Feb 2021 10:28:41 +0000 (11:28 +0100)] 
Python 3.8.8

4 years agocloses bpo-43254: Fix *snprintf() man page refs. (GH-24563)
Miss Islington (bot) [Fri, 19 Feb 2021 02:03:34 +0000 (18:03 -0800)] 
closes bpo-43254: Fix *snprintf() man page refs. (GH-24563)

(cherry picked from commit e92d67dfbb4790df37aa6a0961fb6dc7e8d2fbbf)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoRemove all links to mingw.org (GH-24552)
Miss Islington (bot) [Thu, 18 Feb 2021 20:07:24 +0000 (12:07 -0800)] 
Remove all links to mingw.org (GH-24552)

This lease on this domain has lapsed. This not only makes these dead links, but a potential attack vector for readers of python.org as the domain can be obtained by an untrustworthy party.

I considered redirecting these links to http://mingw-w64.org/ which is a maintained fork of mingw, but beyond my unfamiliarity with the exact level of compatibility, at the time of this PR that site had an expired cert and so is not much of a vulnerability fix.

Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 743932d50815edbe4ffd530ae091c53ae47dd34b)

Co-authored-by: Jeremy Paige <ucodery@gmail.com>
4 years agoPost 3.8.8rc1
Łukasz Langa [Tue, 16 Feb 2021 19:07:06 +0000 (20:07 +0100)] 
Post 3.8.8rc1

4 years agoPython 3.8.8rc1 v3.8.8rc1
Łukasz Langa [Tue, 16 Feb 2021 18:12:03 +0000 (19:12 +0100)] 
Python 3.8.8rc1

4 years agobpo-42819, readline: Disable bracketed paste (GH-24108)
Miss Islington (bot) [Mon, 15 Feb 2021 23:47:52 +0000 (15:47 -0800)] 
bpo-42819, readline: Disable bracketed paste (GH-24108)

(cherry picked from commit 755f3c1521b422bc2177013d289f5439975fdc4f)

Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
4 years agoAdd a warning block around the get_referrers() documentation (GH-24511)
Miss Islington (bot) [Mon, 15 Feb 2021 23:12:34 +0000 (15:12 -0800)] 
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-43108: Fix a reference leak in the curses module (GH-24420) (GH-24429)
Miss Islington (bot) [Mon, 15 Feb 2021 18:43:52 +0000 (10:43 -0800)] 
bpo-43108: Fix a reference leak in the curses module (GH-24420) (GH-24429)

(cherry picked from commit bb739ec922c6992a2be38f9fd3c544c2cc322dde)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.8] bpo-42967: only use '&' as a query string separator (GH-24297) (#24529)
Senthil Kumaran [Mon, 15 Feb 2021 18:15:02 +0000 (10:15 -0800)] 
[3.8] bpo-42967: only use '&' as a query string separator (GH-24297)  (#24529)

* bpo-42967: only use '&' as a query string separator (#24297)

bpo-42967: [security] Address a web cache-poisoning issue reported in
urllib.parse.parse_qsl().

urllib.parse will only us "&" as query string separator by default
instead of both ";" and "&" as allowed in earlier versions. An optional
argument seperator with default value "&" is added to specify the
separator.

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)

* [3.8] bpo-42967: only use '&' as a query string separator (GH-24297)

bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl().

urllib.parse will only us "&" as query string separator by default instead of both ";" and "&" as allowed in earlier versions. An optional argument seperator with default value "&" is added to specify the separator.

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>.
(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)

Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
* Update correct version information.

* fix docs and make logic clearer

Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
Co-authored-by: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507...
Miss Islington (bot) [Sun, 14 Feb 2021 14:53:10 +0000 (06:53 -0800)] 
bpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507) (GH-24516)

Automerge-Triggered-By: GH:tiran
(cherry picked from commit 5ec7d535581bc99918e032891167a96abd224ed6)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)
Miss Islington (bot) [Sat, 13 Feb 2021 05:06:50 +0000 (21:06 -0800)] 
bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years ago[3.8] bpo-41824: Fix indentation issue in ForwardRef docs (#24495)
Ken Jin [Tue, 9 Feb 2021 17:57:20 +0000 (01:57 +0800)] 
[3.8] bpo-41824: Fix indentation issue in ForwardRef docs (#24495)

4 years ago[3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494)
Ken Jin [Tue, 9 Feb 2021 16:55:45 +0000 (00:55 +0800)] 
[3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494)

4 years agobpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
Miss Islington (bot) [Sun, 7 Feb 2021 05:38:54 +0000 (21:38 -0800)] 
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)

These 3 statements cannot be used at module scope -- nor in exec with one namespace.
(cherry picked from commit 0ec57e25c918b859b9f8d464e34e0ac859c2f8b3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoSimple typo fix (GH-24448)
Miss Islington (bot) [Fri, 5 Feb 2021 18:44:45 +0000 (10:44 -0800)] 
Simple typo fix (GH-24448)

(cherry picked from commit 5f18c223391eef8c7d01241b51a7b2429609dd84)

Co-authored-by: Andrew Tennikoff <atenni@users.noreply.github.com>
4 years agobuild(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)
Miss Islington (bot) [Thu, 4 Feb 2021 19:15:26 +0000 (11:15 -0800)] 
build(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.1 to v2.2.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.1...e448a9b857ee2131e752b06002bf0e093c65e571)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit aa4caf9887944ab280a87712460e2dd49b55fe5e)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agobpo-42773: fix tests not being run on pushes (GH-24004)
Miss Islington (bot) [Wed, 3 Feb 2021 23:34:21 +0000 (15:34 -0800)] 
bpo-42773: fix tests not being run on pushes (GH-24004)

There was a typo, we were checking if the "GITHUB_BASE_REF" string
literal was empty instead of the $GITHUB_BASE_REF value. When
$GITHUB_BASE_REF is empty, the action that triggered the run was not a
pull request, so we always run the full test suite.

Signed-off-by: Filipe Laíns <lains@riseup.net>
(cherry picked from commit 4ac923f2756f835f512339ee181348cc535ab07f)

Co-authored-by: Filipe Laíns <lains@riseup.net>
4 years agoFix typo (GH-23019)
Miss Islington (bot) [Wed, 3 Feb 2021 21:46:23 +0000 (13:46 -0800)] 
Fix typo (GH-23019)

Fixed possible typo in comment
(cherry picked from commit bfe544d2f2c2e7a7c03a764bed3276a1e27a0f5c)

Co-authored-by: Harry <harry.lees@gmail.com>
4 years agoAdd link to Microsoft docs for limitations in Windows Store package (GH-24422)
Miss Islington (bot) [Wed, 3 Feb 2021 01:23:27 +0000 (17:23 -0800)] 
Add link to Microsoft docs for limitations in Windows Store package (GH-24422)

(cherry picked from commit 1ba08a121a25fcf7c947d8d37e72e46dae59168c)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-41748: Handles unquoted attributes with commas (GH-24072)
Miss Islington (bot) [Mon, 1 Feb 2021 20:52:52 +0000 (12:52 -0800)] 
bpo-41748: Handles unquoted attributes with commas (GH-24072)

* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a139fac5514d8456626806a68b3e3b7eafb)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
4 years agobpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24408)
Miss Islington (bot) [Mon, 1 Feb 2021 07:37:12 +0000 (23:37 -0800)] 
bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24408)

(cherry picked from commit a1e9a1e120a11c563e166c15721169184c802f8b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when...
Miss Islington (bot) [Sun, 31 Jan 2021 20:51:23 +0000 (12:51 -0800)] 
[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)

(cherry picked from commit 3243e8a4b4b4cf321f9b28335d565742a34b1976)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
(cherry picked from commit 3c8d6934436e20163be802f5239c5b4e4925eeec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.8] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399) (GH-24401)
Serhiy Storchaka [Sun, 31 Jan 2021 17:44:12 +0000 (19:44 +0200)] 
[3.8] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399) (GH-24401)

(cherry picked from commit d64fd4bb5bb4fd2e3277f39d3ad99b5a8d193e1b).
(cherry picked from commit e9d4960d15c5282904cf26e469ce7cee39f634f7)

4 years agobpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH...
Miss Islington (bot) [Sun, 31 Jan 2021 14:46:17 +0000 (06:46 -0800)] 
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350) (GH-24397)

(cherry picked from commit 42b1806af90b86ec393ca7da14e99ce95ec6c53b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)
Miss Islington (bot) [Sun, 31 Jan 2021 05:21:54 +0000 (21:21 -0800)] 
bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)

(cherry picked from commit e60344364245a23a7a1b25d5ebce6833652a656c)

Co-authored-by: L <3177243+LukeLR@users.noreply.github.com>
4 years agoFixing typos in turtle.rst (GH-24376)
Miss Islington (bot) [Fri, 29 Jan 2021 21:49:57 +0000 (13:49 -0800)] 
Fixing typos in turtle.rst (GH-24376)

Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6baaae589d596ed3bb668448f2a22c5f62fc5fdf)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
4 years agoFixed typo in turtle.rst (GH-24371)
Miss Islington (bot) [Fri, 29 Jan 2021 21:39:03 +0000 (13:39 -0800)] 
Fixed typo in turtle.rst (GH-24371)

Found it while translating it to french 🤷

Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6372a4ceba126aa0a9f00eee0f8023308f13e77b)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
4 years agobpo-43008: Add 'Patch by Ken Hilton' (GH-24370)
Miss Islington (bot) [Fri, 29 Jan 2021 18:22:18 +0000 (10:22 -0800)] 
bpo-43008: Add 'Patch by Ken Hilton' (GH-24370)

(cherry picked from commit 11d75ec807f05eff1148c049e38b808d11c23b8a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163) (#24366)
Miss Islington (bot) [Fri, 29 Jan 2021 01:47:41 +0000 (17:47 -0800)] 
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163) (#24366)

Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 23a567c11ca36eedde0e119443c85cc16075deaf)

4 years agobpo-29076: Add fish support to macOS installer (GH-23302) (GH-23938)
Miss Islington (bot) [Thu, 28 Jan 2021 14:54:57 +0000 (06:54 -0800)] 
bpo-29076: Add fish support to macOS installer (GH-23302) (GH-23938)

(cherry picked from commit 7f162e867c674f57c308a87fffcdcca3540c8933)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43008: Make IDLE respect sys.excepthook (GH-24302)
Miss Islington (bot) [Wed, 27 Jan 2021 00:24:30 +0000 (16:24 -0800)] 
bpo-43008: Make IDLE respect sys.excepthook (GH-24302)

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

Co-authored-by: Ken <kenny2minecraft@gmail.com>
4 years ago[3.8] bpo-41841: Prepare IDLE NEWS for 3.8.8 (GH-24344)
Terry Jan Reedy [Tue, 26 Jan 2021 18:59:42 +0000 (13:59 -0500)] 
[3.8] bpo-41841: Prepare IDLE NEWS for 3.8.8 (GH-24344)

4 years ago [3.8] bpo-42383: pdb: do not fail to restart the target if the current directory...
Andrey Bienkowski [Tue, 26 Jan 2021 15:58:33 +0000 (15:58 +0000)] 
 [3.8] bpo-42383: pdb: do not fail to restart the target if the current directory changed (GH-23412) (#24323)

4 years ago[3.8] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24320)
Andrey Bienkowski [Mon, 25 Jan 2021 21:10:40 +0000 (21:10 +0000)] 
[3.8] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24320)

4 years agobpo-43013: Fix old tkinter module names in idlelib (GH-24326)
Miss Islington (bot) [Mon, 25 Jan 2021 11:51:49 +0000 (03:51 -0800)] 
bpo-43013: Fix old tkinter module names in idlelib (GH-24326)

Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
'tkMessageBox' and remove 'tk'.  Just lowercase 'tkFont' as 'font'
is already used.  Adjust import.
(cherry picked from commit 879986d8a932c4524cb6ff822afc9537de16e28d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchoos...
Miss Islington (bot) [Mon, 25 Jan 2021 10:02:52 +0000 (02:02 -0800)] 
[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)

(cherry picked from commit 6713e869c4989c04318158b406c30a147ea52904)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
(cherry picked from commit 3d5434d5cbc945c58be663e3dbd5ef4875677b7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-43013: Update idlelib code to 3.x (GH-24315) (#24317)
Miss Islington (bot) [Sun, 24 Jan 2021 22:16:03 +0000 (14:16 -0800)] 
bpo-43013: Update idlelib code to 3.x  (GH-24315) (#24317)

Remove 9 remaining '(object)' occurrences in class headers in idlelib
and 25 '()' occurrences in idlelib.idle_test class headers.
(cherry picked from commit 8dfe15625e6ea4357a13fec7989a0e6ba2bf1359)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agocloses bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
Miss Islington (bot) [Sat, 23 Jan 2021 16:55:20 +0000 (08:55 -0800)] 
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)

(cherry picked from commit f7fa64f0e87edc61d990ed51b4da722906a10928)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-40304: Correct type(name, bases, dict) doc (GH-19553)
Miss Islington (bot) [Fri, 22 Jan 2021 05:57:40 +0000 (21:57 -0800)] 
bpo-40304: Correct type(name, bases, dict) doc (GH-19553)

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit 644d52818a6391535e5838fd57d58ffcb1163056)

Co-authored-by: Борис Верховский <boris.verk@gmail.com>
4 years agobpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172)...
cptpcrd [Thu, 21 Jan 2021 10:46:53 +0000 (05:46 -0500)] 
bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172) (GH-24277)

(cherry picked from commit 7dc71c425cf6aa6a4070a418dce5d95ca435c79f)

4 years agoFix typos in unittest documentation (GH-24194)
Miss Islington (bot) [Wed, 20 Jan 2021 13:18:08 +0000 (05:18 -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 agobpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)
Miss Islington (bot) [Wed, 20 Jan 2021 10:43:22 +0000 (02:43 -0800)] 
bpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)

(cherry picked from commit e8d22642105d57007ab1242848a8cbadc7f179df)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)
Miss Islington (bot) [Wed, 20 Jan 2021 09:18:07 +0000 (01:18 -0800)] 
bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)

(cherry picked from commit 3554fa4abecfb77ac5fcaa5ce8310eeca5683960)

Co-authored-by: Zhiming Wang <i@zhimingwang.org>
4 years agocloses bpo-42938: Replace snprintf with Python unicode formatting in ctypes param...
Miss Islington (bot) [Mon, 18 Jan 2021 21:28:52 +0000 (13:28 -0800)] 
closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (GH-24248)

(cherry picked from commit 916610ef90a0d0761f08747f7b0905541f0977c7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Co-authored-by: Benjamin Peterson <benjamin@python.org>
4 years ago[3.8] bpo-42531: Teach importlib.resources.path to handle packages without __file__...
William Schwartz [Sat, 16 Jan 2021 17:22:21 +0000 (11:22 -0600)] 
[3.8] bpo-42531: Teach importlib.resources.path to handle packages without __file__ (GH-23611)

Fixes [bpo-42531]() for Python 3.8.

The issue also applies to 3.7. If this PR looks like it'll be accepted, I can cherry-pick it to the 3.7 branch and submit a follow-up PR.

Automerge-Triggered-By: GH:jaraco
4 years ago[3.8] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) (GH-24120)
Petr Viktorin [Tue, 12 Jan 2021 14:45:05 +0000 (15:45 +0100)] 
[3.8] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) (GH-24120)

Co-Authored-By: Andreas Schneider <asn@cryptomilk.org>
Co-Authored-By: Antoine Pitrou <antoine@python.org>.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit 056c08211b402b4dbc1530a9de9d00ad5309909f)
https://bugs.python.org/issue40052

4 years agobpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)
Miss Islington (bot) [Sun, 10 Jan 2021 07:30:59 +0000 (23:30 -0800)] 
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)

If __repr__ uses instance attributes, as normal, and one steps
through the __init__ method, debugger may try to get repr before
the instance attributes exist.  reprlib.repr handles the error.
(cherry picked from commit 81f87bbf9f65702062021a78abd9b8f82c98a414)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH...
Miss Islington (bot) [Thu, 7 Jan 2021 18:07:48 +0000 (10:07 -0800)] 
bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24144)

Automerge-Triggered-By: GH:brettcannon
(cherry picked from commit ff8458b918050168acda1ad6d079f52b8effa821)

Co-authored-by: Yair Frid <fridyair@gmail.com>
4 years agobpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)
Steve Dower [Wed, 6 Jan 2021 00:31:10 +0000 (00:31 +0000)] 
bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)
Miss Islington (bot) [Wed, 6 Jan 2021 00:23:37 +0000 (16:23 -0800)] 
bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)

The `pages` argument default value now reflects the implementation.
(cherry picked from commit abba83b4b91f78dc556dc0b7700ecb46cba22c01)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159)
Miss Islington (bot) [Wed, 6 Jan 2021 00:21:57 +0000 (16:21 -0800)] 
bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159)

(cherry picked from commit f9949f82e17c88609adb53eff3a7d5cd63a645bd)

Co-authored-by: Vladimir <greatvovan@gmail.com>
4 years agobpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125)
Steve Dower [Wed, 6 Jan 2021 00:07:51 +0000 (00:07 +0000)] 
bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125)

4 years ago[3.8] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674). (GH-24129)
Erlend Egeberg Aasland [Tue, 5 Jan 2021 22:46:31 +0000 (23:46 +0100)] 
[3.8] bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674). (GH-24129)

(cherry picked from commit c94ee13ad596d26d1859078bc09806aa59bb0000)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:ned-deily
4 years ago[3.8] [3.9] bpo-42681: Fix test_curses failures related to color pairs (GH-24089...
Serhiy Storchaka [Tue, 5 Jan 2021 14:04:25 +0000 (16:04 +0200)] 
[3.8] [3.9] bpo-42681: Fix test_curses failures related to color pairs (GH-24089) (GH-24113) (GH-24116)

On ncurses 6.1 pair numbers are limited by SHORT_MAX-1.

Improve error reporting and tests for color functions.
(cherry picked from commit 59f9b4e4509be67494f3d45489fa55523175ff69)
(cherry picked from commit 9b3a53a8264d4c469a3f3d8c037e74c010be3e5c)

4 years ago[3.8] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)
Terry Jan Reedy [Tue, 5 Jan 2021 09:18:02 +0000 (04:18 -0500)] 
[3.8] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)

Make menu items work with formatter, add docstrings, add 100% tests.

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit e40e2a2cc94c554e7e245a8ca5a7432d31a95766)

4 years agoFix broken NEWS markup (GH-24110)
Miss Islington (bot) [Tue, 5 Jan 2021 08:18:43 +0000 (00:18 -0800)] 
Fix broken NEWS markup (GH-24110)

(cherry picked from commit cde988e893793f58bf87e7a8c014926fd2e32904)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
4 years agobpo-42508: Keep IDLE running on macOS (GH-23577) (#23670)
Miss Islington (bot) [Tue, 5 Jan 2021 08:09:30 +0000 (00:09 -0800)] 
bpo-42508: Keep IDLE running on macOS (GH-23577) (#23670)

Remove obsolete workaround that prevented running files with
shortcuts when using new universal2 installers built on macOS 11.
Ignore buggy 2nd run_module_event call.
(cherry picked from commit 57e511361047895231f5ee7abfdfbbc60e11d2db)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)
Miss Islington (bot) [Mon, 4 Jan 2021 23:36:37 +0000 (15:36 -0800)] 
bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)

Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed59bcc41ed20674d4b2aa443d3b79e725f4)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoDo not remove x bit from published directories (GH-24101)
Miss Islington (bot) [Mon, 4 Jan 2021 21:14:51 +0000 (13:14 -0800)] 
Do not remove x bit from published directories (GH-24101)

(cherry picked from commit af4cd16479f2d55bee3db899e7679d7cde1d2ab7)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoRevert "[3.8] [doc] Fix erroneous backslashes in signatures and names (GH-23658)...
Julien Palard [Mon, 4 Jan 2021 16:19:16 +0000 (17:19 +0100)] 
Revert "[3.8] [doc] Fix erroneous backslashes in signatures and names (GH-23658)" (GH-24093)

This partially reverts commit
02349e2dc9d93202c658ae383b2de2e36b2366f8, which was removing
backslashes in documentations compiled with Sphinx < 3, used for
Python 3.8 and 3.9 docs.

4 years agobpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) (#24084)
Miss Islington (bot) [Mon, 4 Jan 2021 10:27:15 +0000 (02:27 -0800)] 
bpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) (#24084)

(cherry picked from commit 14097a2785414c728d41d8d730a469a8c46ecdb9)

Co-authored-by: Ned Deily <nad@python.org>
4 years agoUpdate Sphinx version for macOS installer build. (GH-24082) (GH-24088)
Miss Islington (bot) [Mon, 4 Jan 2021 10:21:01 +0000 (02:21 -0800)] 
Update Sphinx version for macOS installer build. (GH-24082) (GH-24088)

(cherry picked from commit 0f3b96b368dd7ebb5dcd3759a30322dbd027f292)

Co-authored-by: Ned Deily <nad@python.org>
4 years ago[3.8] [3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH...
Serhiy Storchaka [Mon, 4 Jan 2021 08:58:09 +0000 (10:58 +0200)] 
[3.8] [3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874). (GH-24077) (GH-24079)

(cherry picked from commit 1470edd6131c29b8a09ce012cdfee3afa269d553)
(cherry picked from commit b0ee2b492dbf550fbd2a63b82de0a4dc9d67f32e)

4 years ago[3.8] [3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076)...
Serhiy Storchaka [Sun, 3 Jan 2021 22:54:13 +0000 (00:54 +0200)] 
[3.8] [3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076) (GH-24078)

If __stdout__ is not attached to terminal, try to use __stderr__
if it is attached to terminal, or open the terminal device, or
use regular file as terminal, but some functions will be untested
in the latter case.
(cherry picked from commit 607501abb488fb37e33cf9d35260ab7baefa192f)
(cherry picked from commit 0303008ebceb6ac6035cd9722d1393267304171d)

4 years agobpo-42809: Improve pickle tests for recursive data. (GH-24060)
Miss Islington (bot) [Sat, 2 Jan 2021 17:50:28 +0000 (09:50 -0800)] 
bpo-42809: Improve pickle tests for recursive data. (GH-24060)

(cherry picked from commit a25011be8c6f62cb3333903befe6295d57f0bd30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.8] bpo-26407: Do not mask errors in csv. (GH-20536) (GH-24021)
Serhiy Storchaka [Fri, 1 Jan 2021 17:42:23 +0000 (19:42 +0200)] 
[3.8] bpo-26407: Do not mask errors in csv. (GH-20536) (GH-24021)

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in csv.reader(), csv.writer.writerow() and
csv.writer.writerows().
(cherry picked from commit c88239f864a27f673c0f0a9e62d2488563f9d081)

4 years ago[3.8] bpo-39068: Fix race condition in base64 (GH-17627) (GH-24022)
Serhiy Storchaka [Fri, 1 Jan 2021 17:41:49 +0000 (19:41 +0200)] 
[3.8] bpo-39068: Fix race condition in base64 (GH-17627) (GH-24022)

There was a race condition in base64 in lazy initialization of multiple globals.
(cherry picked from commit 9655434cca5dfbea97bf6d355aec028e840b289c)

Co-authored-by: Brandon Stansbury <brandonrstansbury@gmail.com>
4 years ago[3.8] bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766...
Serhiy Storchaka [Fri, 1 Jan 2021 17:40:38 +0000 (19:40 +0200)] 
[3.8] bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766) (GH-24023)

Return None instead of 1.
(cherry picked from commit 2bc343417a4de83fa6998ff91303877734ecd366)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>