]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr...
Miss Islington (bot) [Mon, 29 Mar 2021 23:24:33 +0000 (16:24 -0700)] 
bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) (GH-25083)

(cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3)

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

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

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

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

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

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

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

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

(cherry picked from commit c1b073a630bb731de18bb17afb2b8b1388b92a72)

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

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

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

(cherry picked from commit fb1d01b9630b5069fe975f16e07a027d90b89434)

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

(cherry picked from commit af50c84643ce21cfbdfdabbdfae6bd5e1368c542)

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

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

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

(cherry picked from commit a53e9a7cf5912a44c5143e353912e44cfcfca7dc)

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

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

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

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

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

(cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc)

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

(cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc)

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

(cherry picked from commit 96eeff516204b7cc751103fa33dcc665e387846e)

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

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

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

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

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

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

(cherry picked from commit 66c8adfa27aeea004657ef29b6db4e4c360ad611)

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

(cherry picked from commit 2fd16ef406bba239b1334057fb499496a84b3aa2)

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

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

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

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

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

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

(cherry picked from commit 813db24f7c2c536d587d1832c3c52b44fa9e242e)

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

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

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

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

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

(cherry picked from commit 3b3b83c965447a8329b34cb4befe6e9908880ee5)

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

Fix warning:

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

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

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

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

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

Covers the ftplib security fix.

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

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

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

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

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

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

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

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

(cherry picked from commit 35cacce5253c50eed0d285836f9ca0ac568991ca)

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

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

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

(cherry picked from commit 06e3a27a3c863495390a07c695171a8e62a6e0d2)

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

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

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

* Update gcmodule.c

* Update gcmodule.c

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

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

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

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

(cherry picked from commit b6884ad2688451dd3cbc5984b23da5840e1b6df8)

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

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

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

* Fix auth_login logic (bpo-27820)

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

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

(cherry picked from commit bbba28212ce0f58096a4043f32442c6e727b74fc)

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

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

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

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

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

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

(cherry picked from commit b4f9089d4aa787c5b74134c98e5f0f11d9e63095)

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

(cherry picked from commit 62a03cd490f81c0fb01eaceb31aa8a4c7800ed0e)

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

(cherry picked from commit 0d6bd1ca7c683137d52041194f3a2b02219f225a)

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

(cherry picked from commit 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c)

Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
4 years agobpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)
Miss Islington (bot) [Mon, 8 Mar 2021 07:59:37 +0000 (23:59 -0800)] 
bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)

We now buffer the CONNECT request + tunnel HTTP headers into a single
send call.  This prevents the OS from generating multiple network
packets for connection setup when not necessary, improving efficiency.
(cherry picked from commit c25910a135c2245accadb324b40dd6453015e056)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoPut contextvars docs into the concurrency category (GH-24760)
Miss Islington (bot) [Sat, 6 Mar 2021 16:48:12 +0000 (08:48 -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.9] bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to...
Miss Islington (bot) [Sat, 6 Mar 2021 15:07:46 +0000 (07:07 -0800)] 
[3.9] bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to execute a non-Python signal handler (GH-24756) (GH-24761)

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:48:33 +0000 (17:48 -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-43400: Remove "easy to use" from mock docs (GH-24752) (GH-24758)
Miss Islington (bot) [Fri, 5 Mar 2021 00:35:43 +0000 (16:35 -0800)] 
bpo-43400: Remove "easy to use" from mock docs (GH-24752) (GH-24758)

4 years agobpo-43396: Normalise naming in sqlite3 doc examples (GH-24746)
Miss Islington (bot) [Thu, 4 Mar 2021 17:11:40 +0000 (09:11 -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.9] bpo-37193: Remove thread objects which finished process its request (GH-23127...
Miss Islington (bot) [Thu, 4 Mar 2021 16:36:41 +0000 (08:36 -0800)] 
[3.9] bpo-37193: Remove thread objects which finished process its request (GH-23127) (GH-24750)

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 agoAdd an attribution to the Green Tree Snakes in the AST docs (GH-24727)
Miss Islington (bot) [Wed, 3 Mar 2021 18:48:56 +0000 (10:48 -0800)] 
Add an attribution to the Green Tree Snakes in the AST docs (GH-24727)

(cherry picked from commit 62e3b6370cf9aa990485d9c7c3ea3f6f150daa47)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001) (#24725)
Senthil Kumaran [Wed, 3 Mar 2021 16:04:00 +0000 (08:04 -0800)] 
[3.9] bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001) (#24725)

* 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>
Co-authored-by: Winson Luk <winson.luk@gmail.com>
4 years agoPin test runner to Ubuntu 18 to un-break CI (GH-24715)
Miss Islington (bot) [Wed, 3 Mar 2021 09:56:36 +0000 (01:56 -0800)] 
Pin test runner to Ubuntu 18 to un-break CI (GH-24715)

(cherry picked from commit 94894dd45e4bad6efb27eac4497b24cdc18b3e2d)

Co-authored-by: Brandt Bucher <brandt@python.org>
4 years agobpo-42500: Fix recursion in or after except (GH-23568) (#24501)
Mark Shannon [Tue, 2 Mar 2021 10:36:38 +0000 (10:36 +0000)] 
bpo-42500: Fix recursion in or after except (GH-23568) (#24501)

* Use counter, rather boolean state when handling soft overflows.

(cherry picked from commit 4e7a69bdb63a104587759d7784124492dcdd496e)

4 years agoDoc: Improve library/json document. (GH-24390)
Miss Islington (bot) [Tue, 2 Mar 2021 02:15:05 +0000 (18:15 -0800)] 
Doc: Improve library/json document. (GH-24390)

(cherry picked from commit a347bc0b35c982e9600838d5a545e244bb76a4bf)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
4 years agoFixed linenumber missing when audit hook has an error (GH-24692)
Miss Islington (bot) [Mon, 1 Mar 2021 22:23:21 +0000 (14:23 -0800)] 
Fixed linenumber missing when audit hook has an error (GH-24692)

See https://github.com/sphinx-doc/sphinx/issues/8932

Co-authored-by: tk0miya <i.tkomiya@gmail.com>
(cherry picked from commit dbfabcc0c306742e34b9b0e162c63ccebe9d2b05)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
4 years agoFix grammar in enum documentation. (GH-24689)
Miss Islington (bot) [Mon, 1 Mar 2021 19:21:05 +0000 (11:21 -0800)] 
Fix grammar in enum documentation. (GH-24689)

There is an extra `s` in the singular word `method`.
Reported in docs mailing list by Steven Nguyen.

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

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
4 years agobpo-41837: Update macOS installer build to use OpenSSL 1.1.1j. (GH-24677)
Miss Islington (bot) [Mon, 1 Mar 2021 08:01:43 +0000 (00:01 -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 agobpo-43335: Update macro to check gcc version (GH-24662)
Miss Islington (bot) [Sun, 28 Feb 2021 00:51:36 +0000 (16:51 -0800)] 
bpo-43335: Update macro to check gcc version (GH-24662)

(cherry picked from commit bf9de7ab24d9d7068645b202bc47146b9a4f2726)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650)
Miss Islington (bot) [Fri, 26 Feb 2021 05:44:17 +0000 (21:44 -0800)] 
bpo-43144: Mark unicodedata's test_normalization as requiring network (GH-24650)

Co-authored-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
(cherry picked from commit c6ccdfb479cb0a4a491575ef0bafaa0d29daae1a)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
4 years agobpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
Miss Islington (bot) [Fri, 26 Feb 2021 02:36:27 +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) [Fri, 26 Feb 2021 01:13:17 +0000 (17:13 -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 19:01:33 +0000 (11:01 -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.9] bpo-41841: revise header (GH-24634)
Terry Jan Reedy [Wed, 24 Feb 2021 02:32:20 +0000 (21:32 -0500)] 
[3.9] bpo-41841: revise header (GH-24634)

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

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-36346: Document removal schedule of deprecate APIs (GH-20879)
Miss Islington (bot) [Mon, 22 Feb 2021 23:30:52 +0000 (15:30 -0800)] 
bpo-36346: Document removal schedule of deprecate APIs (GH-20879)

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>
4 years agobpo-23882: Doc: Clarify unittest discovery document (GH-21560)
Miss Islington (bot) [Mon, 22 Feb 2021 06:37:18 +0000 (22:37 -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:32:55 +0000 (10:32 +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 01806d5)

4 years ago[3.9] bpo-43288: Fix bug in test_importlib test. (GH-24616)
Neil Schemenauer [Sun, 21 Feb 2021 23:24:41 +0000 (15:24 -0800)] 
[3.9] bpo-43288: Fix bug in test_importlib test. (GH-24616)

* bpo-43288: Fix bug in test_importlib test. (GH-24612)
* Fix failed merge of bpo-43288. (GH-24614)

4 years agobpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
Miss Islington (bot) [Sun, 21 Feb 2021 08:07:33 +0000 (00:07 -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:55:49 +0000 (18:55 -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:46:34 +0000 (20:46 -0800)] 
Fix typo in dis module doc (GH-24509)

(cherry picked from commit 292f23186c6573bc1c3fa4f6e91116e8ee444cf4)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
4 years ago[3.9] bpo-43272: Fix old parser test failures for backported grammar constructs ...
Pablo Galindo [Sat, 20 Feb 2021 01:36:15 +0000 (01:36 +0000)] 
[3.9] bpo-43272: Fix old parser test failures for backported grammar constructs (GH-24591)

4 years agobpo-43042: Augment tutorial sentence (GH-24514)
Miss Islington (bot) [Sat, 20 Feb 2021 00:46:57 +0000 (16:46 -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 agocloses bpo-43266: Improve array formatting. (GH-24573)
Miss Islington (bot) [Fri, 19 Feb 2021 15:55:44 +0000 (07:55 -0800)] 
closes bpo-43266: Improve array formatting. (GH-24573)

(cherry picked from commit 2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoPost 3.9.2
Łukasz Langa [Fri, 19 Feb 2021 12:32:44 +0000 (13:32 +0100)] 
Post 3.9.2

4 years agoPython 3.9.2 v3.9.2
Łukasz Langa [Fri, 19 Feb 2021 12:31:44 +0000 (13:31 +0100)] 
Python 3.9.2

4 years agocloses bpo-43254: Fix *snprintf() man page refs. (GH-24563)
Miss Islington (bot) [Fri, 19 Feb 2021 02:16:30 +0000 (18:16 -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:30 +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 agobpo-43155: Add PyCMethod_New to PC/python3.def (GH-24500) (GH-24554)
Zackery Spytz [Wed, 17 Feb 2021 10:53:45 +0000 (03:53 -0700)] 
bpo-43155: Add PyCMethod_New to PC/python3.def (GH-24500) (GH-24554)

(cherry picked from commit 8a8b5df93f379f561aab4f2fc5b2ad54f5009f7a)

4 years agoPost 3.9.2rc1
Łukasz Langa [Tue, 16 Feb 2021 21:34:29 +0000 (22:34 +0100)] 
Post 3.9.2rc1

4 years agoPython 3.9.2rc1 v3.9.2rc1
Łukasz Langa [Tue, 16 Feb 2021 20:10:19 +0000 (21:10 +0100)] 
Python 3.9.2rc1

4 years agobpo-42819, readline: Disable bracketed paste (GH-24108) (GH-24545)
Miss Islington (bot) [Tue, 16 Feb 2021 00:18:07 +0000 (16:18 -0800)] 
bpo-42819, readline: Disable bracketed paste (GH-24108) (GH-24545)

(cherry picked from commit 755f3c1521b422bc2177013d289f5439975fdc4f)

Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
4 years ago[3.9] Minor improvements to the convolve() recipe (GH-24520)
Pablo Galindo [Mon, 15 Feb 2021 23:02:41 +0000 (23:02 +0000)] 
[3.9] Minor improvements to the convolve() recipe (GH-24520)

4 years ago[3.9] bpo-42967: only use '&' as a query string separator (GH-24297) (#24528)
Senthil Kumaran [Mon, 15 Feb 2021 18:03:31 +0000 (10:03 -0800)] 
[3.9] bpo-42967: only use '&' as a query string separator (GH-24297) (#24528)

(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)

* [3.9] 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: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
4 years agobpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)
Miss Islington (bot) [Sat, 13 Feb 2021 05:20:24 +0000 (21:20 -0800)] 
bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)

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

4 years agobpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507)
Miss Islington (bot) [Fri, 12 Feb 2021 11:18:38 +0000 (03:18 -0800)] 
bpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507)

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

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)
Miss Islington (bot) [Fri, 12 Feb 2021 04:33:35 +0000 (20:33 -0800)] 
bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)

(cherry picked from commit fedd86df2448370cdf62a229fd6f31dc92daf379)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24493)
Ken Jin [Tue, 9 Feb 2021 16:55:03 +0000 (00:55 +0800)] 
bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24493)

4 years agobpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
Miss Islington (bot) [Sun, 7 Feb 2021 14:14:16 +0000 (06:14 -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>
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:23 +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 agobpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH...
Miss Islington (bot) [Fri, 5 Feb 2021 17:13:40 +0000 (09:13 -0800)] 
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH-24450) (GH-24457)

PyObject_RichCompareBool() returns -1 on error, but this case is
not handled by the find_in_strong_cache() function.  Any exception
raised by PyObject_RichCompareBool() should be propagated.
(cherry picked from commit effaec0bb54f381db8ccfa62514bc26b00946b40)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-35295: Remove outdated comment. (GH-24453)
Miss Islington (bot) [Fri, 5 Feb 2021 04:44:17 +0000 (20:44 -0800)] 
bpo-35295: Remove outdated comment. (GH-24453)

(cherry picked from commit d938816acf71a74f1bd13fdf0534b3d9ea962e44)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-43102: Set namedtuple __new__'s internal builtins to a dict. (GH-24439) (GH...
Miss Islington (bot) [Fri, 5 Feb 2021 00:12:34 +0000 (16:12 -0800)] 
bpo-43102:  Set namedtuple __new__'s internal builtins to a dict. (GH-24439) (GH-24452)

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:21:37 +0000 (11:21 -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:38:55 +0000 (15:38 -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:48:22 +0000 (13:48 -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 agobpo-43108: Fix a reference leak in the curses module (GH-24420)
Miss Islington (bot) [Wed, 3 Feb 2021 13:41:09 +0000 (05:41 -0800)] 
bpo-43108: Fix a reference leak in the curses module (GH-24420)

(cherry picked from commit bb739ec922c6992a2be38f9fd3c544c2cc322dde)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>