]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years ago[3.9] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009) (GH... 28048/head
Łukasz Langa [Sun, 29 Aug 2021 15:07:45 +0000 (17:07 +0200)] 
[3.9] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009) (GH-28040)

(cherry picked from commit d3bdbbf9a4352a24fc2bfc7a63a024b244b61aba)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28035)
Miss Islington (bot) [Sun, 29 Aug 2021 14:45:25 +0000 (07:45 -0700)] 
bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28035)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 0897253f426068ea6a6fbe0ada01689af9ef1019)

Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
4 years agobpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28032)
Miss Islington (bot) [Sun, 29 Aug 2021 14:36:36 +0000 (07:36 -0700)] 
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28032)

Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the
fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy
is most used on Windows and macOS.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3fc5d84046ddbd66abac5b598956ea34605a4e5d)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc ...
Miss Islington (bot) [Sun, 29 Aug 2021 12:56:45 +0000 (05:56 -0700)] 
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc (GH-23200) (GH-28025)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c9227df5a9d8e958a2324cf0deba8524d1ded26a)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years ago[3.9] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005). ...
Serhiy Storchaka [Sun, 29 Aug 2021 12:08:32 +0000 (15:08 +0300)] 
[3.9] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005). (GH-28028)

(cherry picked from commit 2a8127cafe1d196f858a3ecabf5f1df3eebf9a12)

4 years ago[3.9] bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) (GH-28023)
Serhiy Storchaka [Sun, 29 Aug 2021 11:03:11 +0000 (14:03 +0300)] 
[3.9] bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) (GH-28023)

(cherry picked from commit 07d3d54)

4 years ago[3.9] bpo-25130: Make unit-test about restricting the maximum number of nested blocks...
Serhiy Storchaka [Sat, 28 Aug 2021 19:24:39 +0000 (22:24 +0300)] 
[3.9] bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only (GH-28002) (GH-28017)

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only..
(cherry picked from commit eb263f9a356f5c5f21b8d5ce20bac92f31c40cad)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
4 years agobpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads...
Miss Islington (bot) [Sat, 28 Aug 2021 18:54:48 +0000 (11:54 -0700)] 
bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads attempt to commit the last pending removal (GH-27921) (GH-28014)

Fixes:
Traceback (most recent call last):
  File "/home/graingert/projects/asyncio-demo/demo.py", line 36, in <module>
    sys.exit(main())
  File "/home/graingert/projects/asyncio-demo/demo.py", line 30, in main
    test_all_tasks_threading()
  File "/home/graingert/projects/asyncio-demo/demo.py", line 24, in test_all_tasks_threading
    results.append(f.result())
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 438, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 390, in __get_result
    raise self._exception
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.10/asyncio/runners.py", line 47, in run
    _cancel_all_tasks(loop)
  File "/usr/lib/python3.10/asyncio/runners.py", line 56, in _cancel_all_tasks
    to_cancel = tasks.all_tasks(loop)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 53, in all_tasks
    tasks = list(_all_tasks)
  File "/usr/lib/python3.10/_weakrefset.py", line 60, in __iter__
    with _IterationGuard(self):
  File "/usr/lib/python3.10/_weakrefset.py", line 33, in __exit__
    w._commit_removals()
  File "/usr/lib/python3.10/_weakrefset.py", line 57, in _commit_removals
    discard(l.pop())
IndexError: pop from empty list

Also fixes:
Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
    del self.data[k]
KeyError: <weakref at 0x00007fe76e8d8180; dead>
Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
    del self.data[k]
KeyError: <weakref at 0x00007fe76e8d81a0; dead>
Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0>
Traceback (most recent call last):
  File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove
    del self.data[k]
KeyError: <weakref at 0x000056548f1e24a0; dead>

See: https://github.com/agronholm/anyio/issues/362GH-issuecomment-904424310
See also: https://bugs.python.org/issue29519

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 206b21ed9f64fedff67bfea7cf73e423e3e32393)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-45022: Pin current libffi build to fixed version in preparation for upcoming...
Miss Islington (bot) [Fri, 27 Aug 2021 16:28:30 +0000 (09:28 -0700)] 
bpo-45022: Pin current libffi build to fixed version in preparation for upcoming update (GH-27982)

Also improve the build script for libffi, which is not used as part of the regular build.
(cherry picked from commit 969ae7f7356584e30667b4e490ffa2ffa1810429)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoFix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) (GH-27998)
Miss Islington (bot) [Fri, 27 Aug 2021 11:59:23 +0000 (04:59 -0700)] 
Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) (GH-27998)

(cherry picked from commit 28db1f61f20352c02e4ae1518e5aeb6505df3045)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
4 years agobpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27995)
Miss Islington (bot) [Fri, 27 Aug 2021 11:36:17 +0000 (04:36 -0700)] 
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27995)

Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
(cherry picked from commit 2ec9428e3516b6e7c6583687aa3b39fb96925577)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) (GH-27991)
Miss Islington (bot) [Fri, 27 Aug 2021 10:52:07 +0000 (03:52 -0700)] 
bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) (GH-27991)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2)

Co-authored-by: chilaxan <chilaxan@gmail.com>
4 years agobpo-40635: Fix getfqdn() docstring and docs (GH-27971)
Miss Islington (bot) [Thu, 26 Aug 2021 19:55:22 +0000 (12:55 -0700)] 
bpo-40635: Fix getfqdn() docstring and docs (GH-27971)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit fdcb675eed47b1f6054fae381af4388b16a6fff4)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years ago[3.9] bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968) (GH-27970)
Miss Islington (bot) [Thu, 26 Aug 2021 17:56:50 +0000 (10:56 -0700)] 
[3.9] bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968) (GH-27970)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7dc505b8655b3e48b93a4274dfd26e5856d9c64f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-45001: Make email date parsing more robust against malformed input (GH-27946...
Miss Islington (bot) [Thu, 26 Aug 2021 15:48:20 +0000 (08:48 -0700)] 
bpo-45001: Make email date parsing more robust against malformed input (GH-27946) (GH-27973)

Various date parsing utilities in the email module, such as
email.utils.parsedate(), are supposed to gracefully handle invalid
input, typically by raising an appropriate exception or by returning
None.

The internal email._parseaddr._parsedate_tz() helper used by some of
these date parsing routines tries to be robust against malformed input,
but unfortunately it can still crash ungracefully when a non-empty but
whitespace-only input is passed. This manifests as an unexpected
IndexError.

In practice, this can happen when parsing an email with only a newline
inside a ‘Date:’ header, which unfortunately happens occasionally in the
real world.

Here's a minimal example:

    $ python
    Python 3.9.6 (default, Jun 30 2021, 10:22:16)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import email.utils
    >>> email.utils.parsedate('foo')
    >>> email.utils.parsedate(' ')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
        t = parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
        res = _parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
        if data[0].endswith(',') or data[0].lower() in _daynames:
    IndexError: list index out of range

The fix is rather straight-forward: guard against empty lists, after
splitting on whitespace, but before accessing the first element.
(cherry picked from commit 989f6a3800f06b2bd31cfef7c3269a443ad94fac)

Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
4 years agobpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951) (GH...
Miss Islington (bot) [Thu, 26 Aug 2021 07:03:18 +0000 (00:03 -0700)] 
bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951) (GH-27962)

(cherry picked from commit 806e25fd3173a80021e6df87b81263b5f6056f38)

Co-authored-by: Objectivitix <79152594+Objectivitix@users.noreply.github.com>
4 years ago[3.9] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922) (GH-27952)
Erlend Egeberg Aasland [Wed, 25 Aug 2021 19:26:28 +0000 (21:26 +0200)] 
[3.9] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922) (GH-27952)

(cherry picked from commit 7903a1096343d8018e889029f025d39bdd077170)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years ago[3.9] bpo-27334: roll back transaction if sqlite3 context manager fails to commit...
Erlend Egeberg Aasland [Wed, 25 Aug 2021 19:02:25 +0000 (21:02 +0200)] 
[3.9] bpo-27334: roll back transaction if sqlite3 context manager fails to commit (GH-26202) (GH-27944)

4 years ago[3.9] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH...
Miss Islington (bot) [Tue, 24 Aug 2021 15:07:31 +0000 (08:07 -0700)] 
[3.9] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)

(cherry picked from commit bb21e28fd08f894ceff2405544a2f257d42b1354)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
4 years ago[doc] Fix typo c-api/exceptions.rst (GH-27847) (GH-27919)
Miss Islington (bot) [Mon, 23 Aug 2021 20:09:52 +0000 (13:09 -0700)] 
[doc] Fix typo c-api/exceptions.rst (GH-27847) (GH-27919)

Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
(cherry picked from commit dcbf7ff6a700b63e637a0445d68866670a398024)

Co-authored-by: Sunny Bean <ptq008@gmail.com>
4 years ago[doc] Added mailing list link for comp.lang.python (GH-27852) (GH-27916)
Miss Islington (bot) [Mon, 23 Aug 2021 19:24:12 +0000 (12:24 -0700)] 
[doc] Added mailing list link for comp.lang.python (GH-27852) (GH-27916)

(cherry picked from commit 7b550dfce64bd134c5604fd1f2d4c43ae2b669e4)

Co-authored-by: Mike Smith <mikesmith@screamingjoypad.com>
4 years agobpo-44980: fix test_constructor to return None value (GH-27898) (GH-27914)
Miss Islington (bot) [Mon, 23 Aug 2021 19:20:29 +0000 (12:20 -0700)] 
bpo-44980: fix test_constructor to return None value (GH-27898) (GH-27914)

(cherry picked from commit 27b761a11a14521617a01257eb3767150bec3a74)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years ago[3.9] bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904) (GH-27910)
Łukasz Langa [Mon, 23 Aug 2021 18:48:04 +0000 (20:48 +0200)] 
[3.9] bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904) (GH-27910)

Test also PyObject_Repr(NULL) and PyObject_Bytes(NULL)..
(cherry picked from commit 4d689173861257c69adc6dc1dca4171946ddb57f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[doc] Fix typo in idle.rst (GH-27903)
Miss Islington (bot) [Mon, 23 Aug 2021 17:57:05 +0000 (10:57 -0700)] 
[doc] Fix typo in idle.rst (GH-27903)

intially -> initially
(cherry picked from commit 0e8695ece0d3569eeb1b89c91a1b0aa3d34f228e)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
4 years ago[3.9] bpo-4442: Document use of __new__ for subclasses of immutable types (GH-27866...
Łukasz Langa [Sun, 22 Aug 2021 20:14:25 +0000 (22:14 +0200)] 
[3.9] bpo-4442:  Document use of __new__ for subclasses of immutable types (GH-27866) (GH-27900)

(cherry picked from commit eec340ea3af27887fcaac4029ebdee99f3713bff)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years ago[3.9] bpo-42560: rework external references in Tkinter docs (GH-27838) (GH-27896)
Łukasz Langa [Sun, 22 Aug 2021 19:06:06 +0000 (21:06 +0200)] 
[3.9] bpo-42560: rework external references in Tkinter docs (GH-27838) (GH-27896)

- reorganized from two sections (tkinter vs. tcl/tk) into three (tkinter, tcl/tk, and books)
- main (recommended) tkinter docs have one tutorial (tkdocs) and one reference (shipman), added better descriptions
- dropped link to Tkinter page on wiki (suggestion by E. Paine; outdated, most material already linked to from python.org)
- replaced Tcl/Tk recent man pages and core dev home with single link to main Tcl/Tk page (which holds both of these)
- updated Modern Tkinter link to book page on TkDocs site (was Amazon link to old version), dropped description
- replaced Grayson book by Moore book (newer, covers ttk)
- changed Ousterhout ref to second edition, covers ttk
- dropped link to Welch book (old).
(cherry picked from commit d1049d1d6b43296d4db1aa8668aa4ca807bf7adb)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-42560: reorganize Tkinter docs modules section for clarity (GH-27840) (GH-27895)
Miss Islington (bot) [Sun, 22 Aug 2021 19:05:46 +0000 (12:05 -0700)] 
bpo-42560: reorganize Tkinter docs modules section for clarity (GH-27840) (GH-27895)

- move description of internal modules (_tkinter and tkinter.constants) from section intro to list of additional modules at end of section, as not most important info
- added missing ttk and tix here
- emphasized up front that most apps will need tkinter and ttk
(cherry picked from commit d5dbe8bca792350f4997c027535e0ca498abd1bb)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-42560: tweaks to intro of Tkinter docs- add macOS, drop ActiveState (GH-27835...
Miss Islington (bot) [Sun, 22 Aug 2021 19:02:12 +0000 (12:02 -0700)] 
bpo-42560: tweaks to intro of Tkinter docs- add macOS, drop ActiveState (GH-27835) (GH-27892)

(cherry picked from commit 141c7a4fce8def67baa9d24f542c105b8502893e)

Co-authored-by: Mark Roseman <mark@markroseman.com>
4 years agobpo-44940: Clarify the documentation of re.findall() (GH-27849) (GH-27880)
Miss Islington (bot) [Sun, 22 Aug 2021 18:15:38 +0000 (11:15 -0700)] 
bpo-44940: Clarify the documentation of re.findall() (GH-27849) (GH-27880)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Vedran Čačić <vedgar+github@gmail.com>
(cherry picked from commit 64f9e7b19dc1603fcbd07c17c9860085b9d21465)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH...
Miss Islington (bot) [Sun, 22 Aug 2021 18:15:10 +0000 (11:15 -0700)] 
bpo-44955: Always call stopTestRun() for implicitly created TestResult objects (GH-27831) (GH-27882)

Method stopTestRun() is now always called in pair with method startTestRun()
for TestResult objects implicitly created in TestCase.run().
Previously it was not called for test methods and classes decorated with
a skipping decorator.
(cherry picked from commit a9640d75531d6cbbfd254b65435f238c26bf5cd9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876)
Miss Islington (bot) [Sun, 22 Aug 2021 00:36:54 +0000 (17:36 -0700)] 
bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876)

4 years agobpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870)
Miss Islington (bot) [Sat, 21 Aug 2021 20:29:18 +0000 (13:29 -0700)] 
bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870)

The code of the test was never executed because the test function
was unintentionally converted to a generator function.
(cherry picked from commit 585390fdd8661b4bc08bdfc27551292da9b4b9b8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44954: Fix wrong result in float.fromhex corner case (GH-27834) (GH-27855)
Miss Islington (bot) [Fri, 20 Aug 2021 11:37:41 +0000 (04:37 -0700)] 
bpo-44954: Fix wrong result in float.fromhex corner case (GH-27834) (GH-27855)

(cherry picked from commit 60b93d9e4922eeae25052bc15909d1f4152babde)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-44949: Fix test_readline auto history tests (GH-27813) (GH-27822)
Miss Islington (bot) [Thu, 19 Aug 2021 10:35:28 +0000 (03:35 -0700)] 
bpo-44949: Fix test_readline auto history tests (GH-27813) (GH-27822)

(cherry picked from commit 6fb62b42f4db56ed5efe0ca4c1059049276c1083)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824) (GH-27827)
Miss Islington (bot) [Thu, 19 Aug 2021 09:20:47 +0000 (02:20 -0700)] 
bpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824) (GH-27827)

(cherry picked from commit 0fd66e46b2f472d0d206a185dc8892f4f0347cb6)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44830: [doc] Restore missing Mozilla devguide link (GH-27818) (GH-27821)
Miss Islington (bot) [Thu, 19 Aug 2021 08:36:55 +0000 (01:36 -0700)] 
bpo-44830: [doc] Restore missing Mozilla devguide link (GH-27818) (GH-27821)

(cherry picked from commit 942d1a4284e9341df47c48d7c63e921136dc9719)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years ago[3.9] bpo-44947: Refine the syntax error for trailing commas in import statements...
Łukasz Langa [Wed, 18 Aug 2021 21:03:59 +0000 (23:03 +0200)] 
[3.9] bpo-44947: Refine the syntax error for trailing commas in import statements (GH-27814) (GH-27817)

(cherry picked from commit b2f68b190035540872072ac1d2349e7745e85596)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.9] bpo-44815: Always show deprecation in asyncio.gather/sleep() (GH-27569)
Sam Bull [Wed, 18 Aug 2021 18:47:55 +0000 (19:47 +0100)] 
[3.9] bpo-44815: Always show deprecation in asyncio.gather/sleep() (GH-27569)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44852: Support filtering over warnings without a set message (GH-27793) (GH-27810)
Miss Islington (bot) [Wed, 18 Aug 2021 12:10:39 +0000 (05:10 -0700)] 
bpo-44852: Support filtering over warnings without a set message (GH-27793) (GH-27810)

Additional improvements:

- messages which were compiled regular expressions aren't unpacked back into
  strings for unmatched warnings;

- removed unnecessary "if tokens:" check (there's one before the for loop);

- took `endswith` calculation out of the for loop.
(cherry picked from commit 8cf07d3db3eed02b43350a5f9dbf68f1c839ea82)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688) ...
Miss Islington (bot) [Tue, 17 Aug 2021 23:18:22 +0000 (16:18 -0700)] 
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688) (GH-27805)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3240bc62f4e0afa09964f3afc845697f0a0806b9)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
4 years agointroduce omitted index default before using it (GH-27775) (GH-27803)
Miss Islington (bot) [Tue, 17 Aug 2021 21:49:53 +0000 (14:49 -0700)] 
introduce omitted index default before using it (GH-27775) (GH-27803)

(cherry picked from commit 599f5c8481ca258ca3a5d13eaee7d07a9103b5f2)

Co-authored-by: Jefferson Oliveira <jefferson.dev.insights@gmail.com>
4 years agobpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772)...
Miss Islington (bot) [Tue, 17 Aug 2021 17:38:39 +0000 (10:38 -0700)] 
bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27797)

(cherry picked from commit 4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762) (GH-27790)
Miss Islington (bot) [Tue, 17 Aug 2021 10:09:09 +0000 (03:09 -0700)] 
bpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762) (GH-27790)

(cherry picked from commit 6a358bb9482f7595b858ea7b800cbe66f0de5fa1)

Co-authored-by: Gautam Chaudhuri <gautam.chaudhuri.1803@gmail.com>
4 years ago[3.9] bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) (GH...
Łukasz Langa [Tue, 17 Aug 2021 09:17:00 +0000 (11:17 +0200)] 
[3.9] bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) (GH-27788)

Co-authored-by: Micky Yun Chan <michan@redhat.com>.
(cherry picked from commit 1512bc21d60f098a9e9f37b44a2f6a9b49a3fd4f)

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
4 years ago[3.9] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest...
Łukasz Langa [Mon, 16 Aug 2021 20:47:08 +0000 (22:47 +0200)] 
[3.9] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest (GH-27634) (GH-27785)

(cherry picked from commit a0a6d39295a30434b088f4b66439bf5ea21a3e4e)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-44907: Update error messages in tutorial examples (GH-27755) 27781/head
Miss Islington (bot) [Sat, 14 Aug 2021 00:25:38 +0000 (17:25 -0700)] 
bpo-44907: Update error messages in tutorial examples (GH-27755)

(cherry picked from commit ed524b4569b1e4a166886c880018418d46284378)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
4 years ago[3.9] Fix the test suite for the old parser (GH-27749)
Pablo Galindo Salgado [Fri, 13 Aug 2021 10:26:07 +0000 (11:26 +0100)] 
[3.9] Fix the test suite for the old parser (GH-27749)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.9] bpo-44885: Correct the ast locations of f-strings with format specs and repeate...
Pablo Galindo Salgado [Thu, 12 Aug 2021 17:46:35 +0000 (18:46 +0100)] 
[3.9] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27744)

(cherry picked from commit 8e832fb2a2cb54d7262148b6ec15563dffb48d63)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.9] bpo-33930: Fix typo in the test name. (GH-27733) (GH-27734)
Miss Islington (bot) [Thu, 12 Aug 2021 02:20:21 +0000 (19:20 -0700)] 
[3.9] bpo-33930: Fix typo in the test name. (GH-27733) (GH-27734)

[bpo-33930](): Fix typo in the test name. (GH-27733)
(cherry picked from commit f08e6d1bb3c5655f184af88c6793e90908bb6338)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Automerge-Triggered-By: GH:benjaminp
4 years agoAdd .DS_Store on ignore (GH-27711) (GH-27724)
Miss Islington (bot) [Wed, 11 Aug 2021 11:09:43 +0000 (04:09 -0700)] 
Add .DS_Store on ignore (GH-27711) (GH-27724)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 1841c70f2bdab9d29c1c74a8afffa45d5555af98)

Co-authored-by: 180909 <wjh180909@gmail.com>
4 years agobpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678...
Miss Islington (bot) [Wed, 11 Aug 2021 08:32:24 +0000 (01:32 -0700)] 
bpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678) (GH-27720)

(cherry picked from commit bfc2d5a5c4550ab3a2fadeb9459b4bd948ff61a2)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638) (GH...
Miss Islington (bot) [Tue, 10 Aug 2021 17:22:15 +0000 (10:22 -0700)] 
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638) (GH-27714)

(cherry picked from commit c0ab59f7de1906feee21c057ad433fad924d1e38)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694) (GH-27698)
Miss Islington (bot) [Tue, 10 Aug 2021 13:09:42 +0000 (06:09 -0700)] 
bpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694) (GH-27698)

(cherry picked from commit 8ed183391241f0c73e7ba7f42b1d49fc02985f7b)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years agobpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its...
Miss Islington (bot) [Tue, 10 Aug 2021 11:08:41 +0000 (04:08 -0700)] 
bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its context chain (GH-27626) (GH-27707)

Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com
(cherry picked from commit d5c217475c4957a8084ac3f92ae012ece5edc7cb)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years agobpo-33479: Remove unqualified tkinter threadsafe claim. (GH-6990) (GH-27705)
Miss Islington (bot) [Tue, 10 Aug 2021 09:58:05 +0000 (02:58 -0700)] 
bpo-33479: Remove unqualified tkinter threadsafe claim. (GH-6990) (GH-27705)

It has not been true for several years and likely never was.
(cherry picked from commit 6b37d0d5300813de31d66df1c77dad7e1027e4d8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agomake lib2to3 parse async generators everywhere (GH-6588) (GH-27703)
Miss Islington (bot) [Tue, 10 Aug 2021 09:56:50 +0000 (02:56 -0700)] 
make lib2to3 parse async generators everywhere (GH-6588) (GH-27703)

(cherry picked from commit 149addd4960d634ce672ab5fc17e0e785a0cdcd0)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
4 years agobpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27691)
Irit Katriel [Tue, 10 Aug 2021 07:55:39 +0000 (08:55 +0100)] 
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27691)

4 years agobpo-39498 Start linking the security warnings in the stdlib modules (GH-18272) (GH...
Miss Islington (bot) [Tue, 10 Aug 2021 07:51:33 +0000 (00:51 -0700)] 
bpo-39498 Start linking the security warnings in the stdlib modules (GH-18272) (GH-27699)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c5c5326d4799fe4ae566aff32ed3461af95859cc)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
4 years agobpo-41402: Fix email ContentManager calling .encode() on bytes (GH-21631) (GH-27687)
Miss Islington (bot) [Mon, 9 Aug 2021 22:34:58 +0000 (15:34 -0700)] 
bpo-41402: Fix email ContentManager calling .encode() on bytes (GH-21631) (GH-27687)

(cherry picked from commit b33186bc43bb5aaf652dd9d093a08fdde796d499)

Co-authored-by: Johannes Reiff <mail@jreiff.de>
4 years agobpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) (GH-27684)
Miss Islington (bot) [Mon, 9 Aug 2021 17:31:10 +0000 (10:31 -0700)] 
bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) (GH-27684)

This was causing test___all__ to fail on platforms lacking a shared
memory implementation.

Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit d0978761118856e8ca8ea7b162a6585b8da83df9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years ago[3.9] Upgrade bundled pip and setuptools (GH-27625) (GH-27658)
Tzu-ping Chung [Mon, 9 Aug 2021 14:46:15 +0000 (22:46 +0800)] 
[3.9] Upgrade bundled pip and setuptools (GH-27625) (GH-27658)

pip is now 21.2.3
setuptools is now 57.4.0.
(cherry picked from commit 738ac00a08cb6a9d104ec85ccb1a44c2399d6baa)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
4 years agobpo-44522: Fix inaccurate information in open() function (GH-27650) (GH-27682)
Miss Islington (bot) [Mon, 9 Aug 2021 14:39:31 +0000 (07:39 -0700)] 
bpo-44522: Fix inaccurate information in open() function (GH-27650) (GH-27682)

- Use "Low surrogate code units" instead of "Unicode Private Use Area"
(cherry picked from commit b05e9b63fcfcd4bd7a6434fa9f9a7028d12f91c4)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
4 years agobpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470...
Miss Islington (bot) [Mon, 9 Aug 2021 10:30:00 +0000 (03:30 -0700)] 
bpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470) (GH-27674)

Co-Authored-By: Bo Bayles <bbayles@gmail.com>
(cherry picked from commit eb2d4a66ff07aa6e51cfaaa31afed31addf76936)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-44830 - Remove the broken Broken Mozilla devguide link. (GH-27664) (GH-27665) 27670/head
Miss Islington (bot) [Sun, 8 Aug 2021 03:44:08 +0000 (20:44 -0700)] 
bpo-44830 - Remove the broken Broken Mozilla devguide link. (GH-27664) (GH-27665)

(cherry picked from commit ebecffdb6d5fffa4249f9a813f1fc1915926feb5)

Co-authored-by: Senthil Kumaran <senthil@python.org>
Co-authored-by: Senthil Kumaran <senthil@python.org>
4 years agobpo-44856: Possible reference leak in error paths of update_bases() and __build_class...
Miss Islington (bot) [Sat, 7 Aug 2021 11:17:41 +0000 (04:17 -0700)] 
bpo-44856: Possible reference leak in error paths of update_bases() and __build_class__ (GH-27647) (GH-27651)

(cherry picked from commit a40675c659cd8c0699f85ee9ac31660f93f8c2f5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.9] bpo-44822: Don't truncate `str`s with embedded NULL chars returned by `sqlite3...
Erlend Egeberg Aasland [Fri, 6 Aug 2021 21:02:06 +0000 (23:02 +0200)] 
[3.9] bpo-44822: Don't truncate `str`s with embedded NULL chars returned by `sqlite3` UDF callbacks (GH-27588). (GH-27639)

(cherry picked from commit 8f010dc920e1f6dc6a357e7cc1460a7a567c05c6)

4 years agobpo-27752: improve documentation of csv.Dialect (GH-26795) (GH-27644)
Miss Islington (bot) [Fri, 6 Aug 2021 20:33:21 +0000 (13:33 -0700)] 
bpo-27752: improve documentation of csv.Dialect (GH-26795) (GH-27644)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 0ffdced3b64ba5886fcde64266a31a15712da284)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years agobpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27641)
Miss Islington (bot) [Fri, 6 Aug 2021 19:57:52 +0000 (12:57 -0700)] 
bpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27641)

4 years agobpo-44756: [docs] revert automated virtual environment creation on `make html` (GH...
Miss Islington (bot) [Fri, 6 Aug 2021 18:42:27 +0000 (11:42 -0700)] 
bpo-44756: [docs] revert automated virtual environment creation on `make html` (GH-27635) (GH-27636)

It turned out to be disruptive for downstream distributors.
(cherry picked from commit 55fa87b1ef46bbb9db7612b2dc2dd7fb039d9bc3)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.9] bpo-43853: Handle sqlite3_value_text() errors (GH-25422). (GH-27627)
Erlend Egeberg Aasland [Fri, 6 Aug 2021 17:57:39 +0000 (19:57 +0200)] 
[3.9] bpo-43853: Handle sqlite3_value_text() errors (GH-25422). (GH-27627)

(cherry picked from commit 006fd869e4798b68e266f5de89c83ddb531a756b)

4 years agobpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619)
Miss Islington (bot) [Fri, 6 Aug 2021 15:38:21 +0000 (08:38 -0700)] 
bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619)

(cherry picked from commit 938e84b4fa410f1a86f5e0708ebc3af6bb8efb0e)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years agobpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)
Miss Islington (bot) [Fri, 6 Aug 2021 13:42:51 +0000 (06:42 -0700)] 
bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623)

Fix the os.set_inheritable() function on FreeBSD 14 for file
descriptor opened with the O_PATH flag: ignore the EBADF error on
ioctl(), fallback on the fcntl() implementation.
(cherry picked from commit c24896c0e3b32c8a9f614ef51366007b67d5c665)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH...
Łukasz Langa [Fri, 6 Aug 2021 13:35:11 +0000 (15:35 +0200)] 
[3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) (GH-27629)

* When trying to allocate very large regions on macOS, malloc does not   fail silently. It sends a noisy error out to STDERR
* This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 15d3c14df32a35ac69898a7852115722e30d7857)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
4 years agobpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166) (GH-27608)
Miss Islington (bot) [Wed, 4 Aug 2021 20:09:45 +0000 (13:09 -0700)] 
bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166) (GH-27608)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com>
(cherry picked from commit a8dc4893d2b28827e82447326ea47759c161a722)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years ago[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899...
Miss Islington (bot) [Wed, 4 Aug 2021 20:00:52 +0000 (13:00 -0700)] 
[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899) (GH-27606)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7c5dab4340032eb15d3797d8b601ef11649bbab3)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agoFix typo in 'xml.dom.minidom' documentation (GH-27602) (GH-27604)
Miss Islington (bot) [Wed, 4 Aug 2021 19:53:29 +0000 (12:53 -0700)] 
Fix typo in 'xml.dom.minidom' documentation (GH-27602) (GH-27604)

(cherry picked from commit cc77193127381be16467ad10f421d3ba147ed972)

Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
4 years agoFix 404 link to the pyporting mailing list (GH-27320) (GH-27601)
Miss Islington (bot) [Wed, 4 Aug 2021 19:23:48 +0000 (12:23 -0700)] 
Fix 404 link to the pyporting mailing list (GH-27320) (GH-27601)

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 977d99d1cca6ddd87fe6f218bca46e7ef105bd72)

Co-authored-by: Rohit Nishad <47008599+rohitnishad613@users.noreply.github.com>
4 years agoNote that tp_clear and m_clear are not always called (GH-27581) (GH-27597)
Miss Islington (bot) [Wed, 4 Aug 2021 18:24:03 +0000 (11:24 -0700)] 
Note that tp_clear and m_clear are not always called (GH-27581) (GH-27597)

(cherry picked from commit 10faada709561663d6b1f623d308ff45e3808cca)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 years agoFix hyperlink conflict in turtle docs (GH-27592) (GH-27595)
Miss Islington (bot) [Wed, 4 Aug 2021 18:15:19 +0000 (11:15 -0700)] 
Fix hyperlink conflict in turtle docs (GH-27592) (GH-27595)

(cherry picked from commit 3d2b4c6f18d7e644e5850d2af74ac5dc530eb24c)

Co-authored-by: Harry <harry.lees@gmail.com>
4 years agobpo-41886: Fix documented type of PyType_Type (GH-22454)
Miss Islington (bot) [Tue, 3 Aug 2021 17:48:08 +0000 (10:48 -0700)] 
bpo-41886: Fix documented type of PyType_Type (GH-22454)

(cherry picked from commit ac811f9b5a68ce8756911ef2c8be83b46696018f)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
4 years agobpo-41737: expand doc for NotADirectoryError (GH-27471) (GH-27577)
Miss Islington (bot) [Tue, 3 Aug 2021 12:03:40 +0000 (05:03 -0700)] 
bpo-41737: expand doc for NotADirectoryError (GH-27471) (GH-27577)

(cherry picked from commit f7c23a99cd4f8179b6ba2cffaeb78b852c0f6488)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-39091: Fix segfault when Exception constructor returns non-exception for gen...
Miss Islington (bot) [Tue, 3 Aug 2021 10:10:54 +0000 (03:10 -0700)] 
bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27573)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit 83ca46b7784b7357d82ec47b33295e09ed7380cb)

Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
4 years agobpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) (GH-27567)
Miss Islington (bot) [Mon, 2 Aug 2021 18:37:42 +0000 (11:37 -0700)] 
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) (GH-27567)

4 years agobpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27564)
Miss Islington (bot) [Mon, 2 Aug 2021 18:08:10 +0000 (11:08 -0700)] 
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27564)

(cherry picked from commit aa0894b3792901adb91e5f6d049154b7bcb980ec)

Co-authored-by: Jake Stockwin <jake.stockwin@optimorlabs.com>
4 years agoDocument PyMember_GetOne and PyMember_SetOne (GH-27555) (GH-27561)
Miss Islington (bot) [Mon, 2 Aug 2021 16:53:55 +0000 (09:53 -0700)] 
Document PyMember_GetOne and PyMember_SetOne (GH-27555) (GH-27561)

(cherry picked from commit d382bde220b4c07cce2b924ffeb7525ea1a969f4)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agobpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)
Miss Islington (bot) [Mon, 2 Aug 2021 16:52:16 +0000 (09:52 -0700)] 
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)

Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
(cherry picked from commit 043cd60abed09edddc7185bcf7d039771acc734d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-44785: Silence deprecation warnings in test_pickle (GH-27538) (#27557)
Miss Islington (bot) [Mon, 2 Aug 2021 16:39:25 +0000 (09:39 -0700)] 
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) (#27557)

(cherry picked from commit 36d952d228582b0ffc7a86c520d4ddbe8943d803)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agodoc: "Mac OS " -> "macOS" (GH-27534) (GH-27549)
Miss Islington (bot) [Mon, 2 Aug 2021 13:13:52 +0000 (06:13 -0700)] 
doc: "Mac OS " -> "macOS" (GH-27534) (GH-27549)

(cherry picked from commit 1342248f3a2b321b7b00867f47c92ba6549f9497)

Co-authored-by: partev <petrosyan@gmail.com>
4 years agodoc: "Mac OS X" -> "macOS" (GH-27535) (GH-27547)
Miss Islington (bot) [Mon, 2 Aug 2021 13:13:34 +0000 (06:13 -0700)] 
doc: "Mac OS X" -> "macOS" (GH-27535) (GH-27547)

(cherry picked from commit 414dcb13aaa4fd42f264fdee47782dede5c83d6c)

Co-authored-by: partev <petrosyan@gmail.com>
4 years agobpo-44667: Treat correctly lines ending with comments and no newlines in the Python...
Miss Islington (bot) [Mon, 2 Aug 2021 09:44:01 +0000 (02:44 -0700)] 
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27501)

(cherry picked from commit b6bde9fc42aecad5be0457198d17cfe7b481ad79)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agoTrivial typo in docstring (#27505)
Miss Islington (bot) [Sat, 31 Jul 2021 05:04:38 +0000 (22:04 -0700)] 
Trivial typo in docstring (#27505)

(cherry picked from commit 4b4227b907a262446b9d276c274feda2590a4e6e)

Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
4 years agobpo-42892: fix email multipart attribute error (GH-26903) (GH-27493)
Miss Islington (bot) [Fri, 30 Jul 2021 17:30:58 +0000 (10:30 -0700)] 
bpo-42892: fix email multipart attribute error (GH-26903) (GH-27493)

(cherry picked from commit e3f877c32d7cccb734f45310f26beeec793364ce)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-41911: Update docs for various expressions (GH-27470) (GH-27491)
Miss Islington (bot) [Fri, 30 Jul 2021 17:25:58 +0000 (10:25 -0700)] 
bpo-41911: Update docs for various expressions (GH-27470) (GH-27491)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 4bd9caafb64589288e5171087070bde726178c58)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27489)
Miss Islington (bot) [Fri, 30 Jul 2021 17:12:29 +0000 (10:12 -0700)] 
bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27489)

When sys.stdout.encoding is None compile_file will fall back to
sys.getdefaultencoding to encode/decode error messages.

Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de>
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
(cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)

4 years agobpo-44753: Don't use logfile extension when determining old files to be deleted ...
Miss Islington (bot) [Fri, 30 Jul 2021 16:20:24 +0000 (09:20 -0700)] 
bpo-44753: Don't use logfile extension when determining old files to be deleted (GH-27475) (GH-27486)

(cherry picked from commit 6ff890380971752299325bd28eab80ec936975cf)

4 years ago[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)
Pablo Galindo Salgado [Fri, 30 Jul 2021 14:51:13 +0000 (15:51 +0100)] 
[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)

(cherry picked from commit 7cad0bee80a536c7e47f54cf43174175834f30a0)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)
Łukasz Langa [Fri, 30 Jul 2021 14:34:04 +0000 (16:34 +0200)] 
[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)

(cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c)

Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
4 years agoAdd missing gdbm dependencies to the UNIX CI (GH-27467) (GH-27468)
Miss Islington (bot) [Fri, 30 Jul 2021 12:07:30 +0000 (05:07 -0700)] 
Add missing gdbm dependencies to the UNIX CI (GH-27467) (GH-27468)

(cherry picked from commit 851cca8c22795a2f143ad5ebc10adab3c7784ad0)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431...
Erlend Egeberg Aasland [Thu, 29 Jul 2021 21:12:55 +0000 (23:12 +0200)] 
[3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431) (GH-27465)

(cherry picked from commit 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agoFix typo in ast.rst (GH-27449) (GH-27455)
Miss Islington (bot) [Thu, 29 Jul 2021 17:41:51 +0000 (10:41 -0700)] 
Fix typo in ast.rst (GH-27449) (GH-27455)

Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
(cherry picked from commit 6b61d74a3bab43a44fa47b1facd1bec3d74e12b1)