]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)
Miss Islington (bot) [Mon, 16 Nov 2020 23:42:49 +0000 (15:42 -0800)] 
bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)

(cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-42339: Adds note about KB2533623 to embeddable package docs (GH-23322)
Steve Dower [Mon, 16 Nov 2020 21:28:29 +0000 (21:28 +0000)] 
bpo-42339: Adds note about KB2533623 to embeddable package docs (GH-23322)

4 years agobpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
Miss Islington (bot) [Mon, 16 Nov 2020 05:12:34 +0000 (21:12 -0800)] 
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)

The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
(cherry picked from commit aa01011003bb855cd52abfd49f2443446590d913)

Co-authored-by: Yash Shete <universeyash4@gmail.com>
4 years agofix typo in ThreadedChildWatcher docs (GH-23277)
Miss Islington (bot) [Sat, 14 Nov 2020 12:11:23 +0000 (04:11 -0800)] 
fix typo in ThreadedChildWatcher docs (GH-23277)

(cherry picked from commit 8836574a0f34ae81643c8af79bbb9062e332a4e3)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
4 years agobpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)
Miss Islington (bot) [Fri, 13 Nov 2020 22:42:10 +0000 (14:42 -0800)] 
bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)

(cherry picked from commit 9b6934230c35e24d8582ea8c58456fa8eab72ae2)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23269)
Miss Islington (bot) [Fri, 13 Nov 2020 18:18:35 +0000 (10:18 -0800)] 
bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23269)

(cherry picked from commit bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
4 years agobpo-42042: Use ids attribute instead of names attribute (GH-22739)
Miss Islington (bot) [Fri, 13 Nov 2020 15:30:10 +0000 (07:30 -0800)] 
bpo-42042: Use ids attribute instead of names attribute (GH-22739)

(cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years ago[3.8] bpo-42237: Fix os.sendfile() on illumos (GH-23154). (GH-23246)
Jakub Stasiak [Thu, 12 Nov 2020 12:23:48 +0000 (13:23 +0100)] 
[3.8] bpo-42237: Fix os.sendfile() on illumos (GH-23154). (GH-23246)

(cherry picked from commit fd4ed57674c675e05bd5d577dd5047a333c76c78)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
4 years agobpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)
Miss Islington (bot) [Tue, 10 Nov 2020 16:27:02 +0000 (08:27 -0800)] 
bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)

The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open.

Not sure if this needs bug or not...

Automerge-Triggered-By: GH:hynek
(cherry picked from commit e59b2deffde61e5641cabd65034fa11b4db898ba)

Co-authored-by: Michal Čihař <michal@cihar.com>
4 years agobpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
Miss Islington (bot) [Tue, 10 Nov 2020 14:21:53 +0000 (06:21 -0800)] 
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)

The overflow occurs under some circumstances when a task or future
recursively returns itself.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) (GH...
Miss Islington (bot) [Sun, 8 Nov 2020 12:06:17 +0000 (04:06 -0800)] 
bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (GH-23075) (GH-23198)

It is not clear why this can happen, but several users have mentioned
getting this exception on macOS.
(cherry picked from commit 23831a7a90956e38b7d70304bb6afe30d37936de)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agoMinor wording change in concurrent.futures. (GH-23194)
Miss Islington (bot) [Sun, 8 Nov 2020 09:45:25 +0000 (01:45 -0800)] 
Minor wording change in concurrent.futures. (GH-23194)

Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
(cherry picked from commit fd6f6fa403789c8877b1099cc6fcc437d2e54634)

Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
5 years ago[3.8] bpo-35455: Fix thread_time for Solaris OS (GH-11118). (GH-23145)
Jakub Kulík [Wed, 4 Nov 2020 14:19:17 +0000 (15:19 +0100)] 
[3.8] bpo-35455: Fix thread_time for Solaris OS (GH-11118). (GH-23145)

(cherry picked from commit 9568622c9983b682b2a2a7bacfd3c341028ea099)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years agoEnable signing of nuget.org packages and update to supported timestamp server (GH...
Miss Skeleton (bot) [Tue, 3 Nov 2020 23:07:37 +0000 (15:07 -0800)] 
Enable signing of nuget.org packages and update to supported timestamp server (GH-23132)

(cherry picked from commit db6434c474f7389a98b8118ca87fca988416bf33)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)
Miss Skeleton (bot) [Tue, 3 Nov 2020 15:01:56 +0000 (07:01 -0800)] 
bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)

(cherry picked from commit 212d32f45c91849c17a82750df1ac498d63976be)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years ago[3.8] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23116)
Serhiy Storchaka [Tue, 3 Nov 2020 07:32:15 +0000 (09:32 +0200)] 
[3.8] bpo-42103: Improve validation of Plist files. (GH-22882) (GH-23116)

* Prevent some possible DoS attacks via providing invalid Plist files
  with extremely large number of objects or collection sizes.
* Raise InvalidFileException for too large bytes and string size instead of returning garbage.
* Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN).
* Raise InvalidFileException instead of TypeError for non-hashable dict keys.
* Add more tests for invalid Plist files.

(cherry picked from commit 34637a0ce21e7261b952fbd9d006474cc29b681f)

5 years agobpo-42224: Fix test_format when locale does not expect number grouping (GH-23067)
Miss Skeleton (bot) [Mon, 2 Nov 2020 15:46:00 +0000 (07:46 -0800)] 
bpo-42224: Fix test_format when locale does not expect number grouping (GH-23067)

(cherry picked from commit 301822859b3fc34801a06f1090d62f9f2ee5b092)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years ago[3.8] bpo-42230: Improve asyncio documentation regarding accepting sets vs iterables...
Jakub Stasiak [Mon, 2 Nov 2020 11:36:38 +0000 (12:36 +0100)] 
[3.8] bpo-42230: Improve asyncio documentation regarding accepting sets vs iterables (GH-23073) (GH-23105)

People call wait() and as_completed() with various non-set iterables,
a list should be the most common but there are others as well[1].

Considering typeshed also documents wait()[2] and as_completed()[3]
as accepting arbitrary iterables I think it's a good idea to document
the status quo better.

[1] https://github.com/aio-libs/aiokafka/pull/672
[2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L161
[3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyiGH-L40.
(cherry picked from commit 3d86d090dcbbdfdd3e5a5951cab30612d6131222)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years agobpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)
Miss Skeleton (bot) [Mon, 2 Nov 2020 04:49:59 +0000 (20:49 -0800)] 
bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)

They were occurring with both repeated 'force-calltip' invocations and by typing parentheses
 in expressions, strings, and comments in the argument code.

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

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
5 years ago[3.8] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059...
Miss Skeleton (bot) [Sun, 1 Nov 2020 09:39:16 +0000 (01:39 -0800)] 
[3.8] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059) (GH-23070)

[[bpo-29566]()]() notes that binhex.binhex uses inconsistent line endings (both Unix and MacOS9 line endings are used). This PR changes this to use the MacOS9 line endings everywhere.
(cherry picked from commit 2165cea548f961b308050f30d1f042a377651d44)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Automerge-Triggered-By: GH:ronaldoussoren
5 years agoGitHub Action: Add gdb to posix dependencies (GH-23043)
Miss Skeleton (bot) [Fri, 30 Oct 2020 22:36:31 +0000 (15:36 -0700)] 
GitHub Action: Add gdb to posix dependencies (GH-23043)

Sort also dependencies and remove duplicates (liblzma-dev).
(cherry picked from commit 6e03c0ad156797cd6e9132e895d55dac0344d340)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func...
Miss Skeleton (bot) [Thu, 29 Oct 2020 10:24:12 +0000 (03:24 -0700)] 
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (GH-22953)

func_dealloc() does not handle partially-created objects. Best not to give it any.
(cherry picked from commit 350526105fa9b131d8b941ae753378b741dabb2f)

Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
5 years agobpo-6761: Enhance __call__ documentation (GH-7987)
Miss Skeleton (bot) [Tue, 27 Oct 2020 16:28:00 +0000 (09:28 -0700)] 
bpo-6761: Enhance __call__ documentation (GH-7987)

(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoAdded some makefile generated files to .gitignore (GH-22435)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:51:03 +0000 (22:51 -0700)] 
Added some makefile generated files to .gitignore (GH-22435)

(cherry picked from commit 96a9eed2457c05af6953890d89463704c9d99c57)

Co-authored-by: Marco Sulla <github@marco.sulla.e4ward.com>
5 years agobpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:46:10 +0000 (22:46 -0700)] 
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)

* When the parameters argument is a list, correctly handle the case
  of changing it during iteration.
* When the parameters argument is a custom sequence, no longer
  override an exception raised in ``__len__()``.
(cherry picked from commit 0b419b791077414bbc011a412698ebb362b63761)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-39871: Fix an error in a news entry (GH-21749)
Zackery Spytz [Mon, 26 Oct 2020 05:37:16 +0000 (23:37 -0600)] 
bpo-39871: Fix an error in a news entry (GH-21749)

(cherry picked from commit 54636355805dd2877bb54fbad8d967e1ddd8b553)

5 years agoAdd a link to buffer protocol in bytearray() doc (GH-22675)
Miss Skeleton (bot) [Mon, 26 Oct 2020 05:35:55 +0000 (22:35 -0700)] 
Add a link to buffer protocol in bytearray() doc (GH-22675)

(cherry picked from commit 0f25c231b3a024e358c3e55d9aba2f7bcc49630c)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
5 years agobpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
Miss Skeleton (bot) [Sun, 25 Oct 2020 18:21:35 +0000 (11:21 -0700)] 
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)

(cherry picked from commit c32f2976b8f4034724c3270397aa16f38daf470f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)
Miss Skeleton (bot) [Sun, 25 Oct 2020 03:41:26 +0000 (20:41 -0700)] 
bpo-33987: Add master ttk Frame to IDLE search dialogs (GH-22942)

(cherry picked from commit 5df6c99cb450fe2f30be681dbf68cd1d34d3bbe4)

Co-authored-by: Mark Roseman <mark@markroseman.com>
5 years agobpo-29981: Add examples and update index for set, dict, and generator comprehensions...
Miss Skeleton (bot) [Sun, 25 Oct 2020 02:53:18 +0000 (19:53 -0700)] 
bpo-29981: Add examples and update index for set, dict, and generator comprehensions'(GH-20272)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
(cherry picked from commit 2d55aa9e37c9c84f4f6a8135d0326da0bcd8f38b)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years ago[doc] Fix link to abc.ABCMeta.register in Glossary (GH-22932)
Miss Skeleton (bot) [Sun, 25 Oct 2020 00:32:36 +0000 (17:32 -0700)] 
[doc] Fix link to abc.ABCMeta.register in Glossary (GH-22932)

(cherry picked from commit e01e442125bbc98e6dab66f38ecc6c45f69e6587)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-33987: Use master ttk Frame for IDLE config dialog (GH-22943)
Miss Skeleton (bot) [Sun, 25 Oct 2020 00:03:34 +0000 (17:03 -0700)] 
bpo-33987: Use master ttk Frame for IDLE config dialog (GH-22943)

(cherry picked from commit c579ad14d3b5bb9a45d7b9cc708eaf0bf4884c50)

Co-authored-by: Mark Roseman <mark@markroseman.com>
5 years agobpo-33987: Use ttk Label on IDLE statusbar (GH-22941)
Miss Skeleton (bot) [Sat, 24 Oct 2020 23:51:03 +0000 (16:51 -0700)] 
bpo-33987: Use ttk Label on IDLE statusbar (GH-22941)

(cherry picked from commit e53e54425d9b7b9b7b082817da104d60bb25e3a2)

Co-authored-by: Mark Roseman <mark@markroseman.com>
5 years agobuild(deps): bump actions/upload-artifact from v1 to v2.2.0 (GH-22920)
Miss Skeleton (bot) [Fri, 23 Oct 2020 21:53:39 +0000 (14:53 -0700)] 
build(deps): bump actions/upload-artifact from v1 to v2.2.0 (GH-22920)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v1 to v2.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's releases</a>.</em></p>
<blockquote>
<h2>v2.2.0</h2>
<ul>
<li>Support for artifact retention</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/upload-artifact/commit/27bce4eee761b5bc643f46a8dfb41b430c8d05f6"><code>27bce4e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/upload-artifact/issues/112">GH-112</a> from thboop/main</li>
<li><a href="https://github.com/actions/upload-artifact/commit/f8b42f7ab442a66b3d51a5ca02855b194a36ae2d"><code>f8b42f7</code></a> update licensed files</li>
<li><a href="https://github.com/actions/upload-artifact/commit/2106e8cf10e032ca9d5724c4c676543febe74f0b"><code>2106e8c</code></a> update contributing.md</li>
<li><a href="https://github.com/actions/upload-artifact/commit/db66798ebcfbaa7f3f8ff66bce013213265c30d1"><code>db66798</code></a> Ignore Generated Files in Git PR's</li>
<li><a href="https://github.com/actions/upload-artifact/commit/d359fd0772ed6802a84728dd6b09ec99f41a67b7"><code>d359fd0</code></a> Manual Verification of licenses</li>
<li><a href="https://github.com/actions/upload-artifact/commit/350822c32f871c559dbe1667c24424e06c4f03e3"><code>350822c</code></a> Add Licensed Workflow and config</li>
<li><a href="https://github.com/actions/upload-artifact/commit/abecf4abf4b70bc636949d61150be883b87416c2"><code>abecf4a</code></a> Updated README.md (<a href="https://github-redirect.dependabot.com/actions/upload-artifact/issues/118">GH-118</a>)</li>
<li><a href="https://github.com/actions/upload-artifact/commit/604e071d21906545dedcfaf210deae74f8c5276a"><code>604e071</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/upload-artifact/issues/126">GH-126</a> from yacaovsnc/main</li>
<li><a href="https://github.com/actions/upload-artifact/commit/4560c23b396d494f0cb7066e1d6e258e8feb8051"><code>4560c23</code></a> Check for invalid retention-days input</li>
<li><a href="https://github.com/actions/upload-artifact/commit/59018c2f85dd0e101b75544aa87f13bb0c94e0b7"><code>59018c2</code></a> Add an option to specify retention period</li>
<li>Additional commits viewable in <a href="https://github.com/actions/upload-artifact/compare/v1...27bce4eee761b5bc643f46a8dfb41b430c8d05f6">compare view</a></li>
</ul>
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: GH- (dependabot-automerge-start)
[//]: GH- (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years agobuild(deps): bump actions/cache from v1 to v2.1.2 (GH-22919)
Miss Skeleton (bot) [Fri, 23 Oct 2020 21:49:15 +0000 (14:49 -0700)] 
build(deps): bump actions/cache from v1 to v2.1.2 (GH-22919)

Bumps [actions/cache](https://github.com/actions/cache) from v1 to v2.1.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/cache/releases">actions/cache's releases</a>.</em></p>
<blockquote>
<h2>v2.1.2</h2>
<ul>
<li>Adds input to limit the chunk upload size, useful for self-hosted runners with slower upload speeds</li>
<li>No-op when executing on GHES</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/cache/commit/d1255ad9362389eac595a9ae406b8e8cb3331f16"><code>d1255ad</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/cache/issues/424">GH-424</a> from actions/dhadka/upload-chunk-size</li>
<li><a href="https://github.com/actions/cache/commit/68cfb2ccb73b1982be3fa55e3d7c842697d7f1ed"><code>68cfb2c</code></a> Add units to description</li>
<li><a href="https://github.com/actions/cache/commit/cce3c03a74623545a53c433d301f3f7725c72454"><code>cce3c03</code></a> Add new input to action.yml</li>
<li><a href="https://github.com/actions/cache/commit/4bceb75b5b7743784c63c94b81c50a485cbdcda0"><code>4bceb75</code></a> Use parseInt instead of Number to handle empty strings</li>
<li><a href="https://github.com/actions/cache/commit/a6f1f4b32eec85780fedc5b354a583e9b2999100"><code>a6f1f4b</code></a> Adds input for upload chunk size</li>
<li><a href="https://github.com/actions/cache/commit/d606e039ae32f64a8593bf4a37b0bf205c695237"><code>d606e03</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/actions/cache/issues/421">GH-421</a> from actions/dhadka/ghes</li>
<li><a href="https://github.com/actions/cache/commit/d3e4f218f30bd71a2c29e2b2a1e4f811f4327162"><code>d3e4f21</code></a> Use warning instead of info</li>
<li><a href="https://github.com/actions/cache/commit/55a58944386e69f7c5bad52ef43a61c578b6c1c6"><code>55a5894</code></a> Update dist</li>
<li><a href="https://github.com/actions/cache/commit/3f6dfcbcc44a8e2fd9e539c1dd15af6559e74ced"><code>3f6dfcb</code></a> Merge branch 'main' of <a href="http://github.com/actions/cache">http://github.com/actions/cache</a> into dhadka/ghes</li>
<li><a href="https://github.com/actions/cache/commit/0f71d4ac9a7f4c36aba5ac3cfc4567d2d4eae813"><code>0f71d4a</code></a> Add tests for isGhes</li>
<li>Additional commits viewable in <a href="https://github.com/actions/cache/compare/v1...d1255ad9362389eac595a9ae406b8e8cb3331f16">compare view</a></li>
</ul>
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: GH- (dependabot-automerge-start)
[//]: GH- (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago[3.8] bpo-40592: shutil.which will not return None anymore if ; is the last char...
Miss Skeleton (bot) [Fri, 23 Oct 2020 21:37:58 +0000 (14:37 -0700)] 
[3.8] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22913)

shutil.which will not return None anymore for empty str in PATHEXT
Empty PATHEXT will now be defaulted to _WIN_DEFAULT_PATHEXT
(cherry picked from commit da6f098188c9825f10ae60db8987056b3a54c2e8)

Co-authored-by: Christopher Marchfelder <marchfelder@googlemail.com>
5 years ago[3.8] bpo-38486: Fix dead qmail links in the mailbox docs (GH-22239) (GH-22902)
Miss Skeleton (bot) [Thu, 22 Oct 2020 23:42:01 +0000 (16:42 -0700)] 
[3.8] bpo-38486: Fix dead qmail links in the mailbox docs (GH-22239) (GH-22902)

(cherry picked from commit ec388cfb4ede56dace2bb78851ff6f38fa2a6abe)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Automerge-Triggered-By: GH:warsaw
5 years agobpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433) (GH-22900)
Miss Skeleton (bot) [Thu, 22 Oct 2020 19:58:30 +0000 (12:58 -0700)] 
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433) (GH-22900)

(cherry picked from commit facb522d44fceaf15de6bc95de1cd680c4621c2a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 years agobpo-25655: Improve Win DLL loading failures doc (GH-22372)
Miss Skeleton (bot) [Thu, 22 Oct 2020 15:48:51 +0000 (08:48 -0700)] 
bpo-25655: Improve Win DLL loading failures doc (GH-22372)

Add documentation to help diagnose CDLL dependent DLL loading errors
on windows for OSError with message:
"[WinError 126] The specified module could not be found"
This error is otherwise difficult to diagnose.
(cherry picked from commit b6f2fc90409e291822166d74ce7402e0ef4dba91)

Co-authored-by: Philippe Ombredanne <pombredanne@gmail.com>
5 years ago[3.8] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22889)
larryhastings [Thu, 22 Oct 2020 14:29:54 +0000 (07:29 -0700)] 
[3.8] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22889)

(cherry picked from commit 283f9a253b4ff4df728558205629b3bb3af6e47f)

5 years agobpo-41910: specify the default implementations of object.__eq__ and object.__ne__...
Miss Skeleton (bot) [Thu, 22 Oct 2020 00:07:59 +0000 (17:07 -0700)] 
bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874) (#22877)

See Objects/typeobject.c:object_richcompare() for the implementation of this in CPython.

Co-authored-by: Brett Cannon <brett@python.org>
5 years agobpo-35181: Correct importlib documentation for some module attributes (GH-15190)
Miss Skeleton (bot) [Wed, 21 Oct 2020 21:27:10 +0000 (14:27 -0700)] 
bpo-35181: Correct importlib documentation for some module attributes (GH-15190)

@ericsnowcurrently This PR will change the following:

In the library documentation importlib.rst:

- `module.__package__` can be `module.__name__` for packages;
- `spec.parent` can be `spec.__name__` for packages;
- `spec.loader` is not `None` for namespaces packages.

In the language documentation import.rst:

- `spec.loader` is not `None` for namespace packages.

Automerge-Triggered-By: GH:warsaw
(cherry picked from commit 27f1bd8787d24ac53cc3dc6ea5eb00b8a3499839)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
5 years ago[3.8] bpo-41959: Fix grammar around class asyncio.MultiLoopChildWatcher text (GH...
Miss Skeleton (bot) [Wed, 21 Oct 2020 20:33:12 +0000 (13:33 -0700)] 
[3.8] bpo-41959: Fix grammar around class asyncio.MultiLoopChildWatcher text (GH-22580) (GH-22866)

While translating the following document to Spanish we found there is a grammar issue on the original documentation.
(cherry picked from commit caff2934f46510920a6169e192707d59e9c55f6b)

Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
5 years ago[3.8] bpo-39416: Document some restrictions on the default string representations...
Miss Skeleton (bot) [Wed, 21 Oct 2020 18:56:20 +0000 (11:56 -0700)] 
[3.8] bpo-39416: Document some restrictions on the default string representations of numeric classes (GH-18111) (GH-22861)

[[bpo-39416]()](): Document string representations of the Numeric classes

This is a change to the specification of the Python language.

The idea here is to put sane minimal limits on the Python language's default
representations of its Numeric classes.  That way "Marty's Robotic Massage Parlor
and Python Interpreter" implementation of Python won't do anything too
crazy.

Some discussion in the email thread:
Subject: Documenting Python's float.__str__()
https://mail.python.org/archives/list/python-dev@python.org/thread/FV22TKT3S2Q3P7PNN6MCXI6IX3HRRNAL/
(cherry picked from commit c60394c7fc9cc09b16e9675a3eeb5844b6d8523f)

Co-authored-by: kpinc <kop@karlpinc.com>
Automerge-Triggered-By: GH:merwok
5 years ago[3.8] bpo-39524: Fixed doc-string in ast._pad_whitespace (GH-18340) (GH-22857)
Irit Katriel [Wed, 21 Oct 2020 16:20:56 +0000 (17:20 +0100)] 
[3.8] bpo-39524: Fixed doc-string in ast._pad_whitespace (GH-18340) (GH-22857)

Automerge-Triggered-By: GH:zware
5 years agobpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Miss Skeleton (bot) [Wed, 21 Oct 2020 08:55:38 +0000 (01:55 -0700)] 
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)

Fix the compiler warning:

format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
(cherry picked from commit c322948892438a387d752ec18d1eb512699a4d67)

Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
5 years agoDoc: Fix a typo/error in the docs for cached bytecode (GH-22445)
Miss Skeleton (bot) [Wed, 21 Oct 2020 08:46:22 +0000 (01:46 -0700)] 
Doc: Fix a typo/error in the docs for cached bytecode (GH-22445)

(cherry picked from commit cb115e36e1aba04b90b0ecac6f043e60064ac65b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agoDoc: Do not suggest `s[::-1]` for reversed order (GH-22457)
Miss Skeleton (bot) [Wed, 21 Oct 2020 08:34:36 +0000 (01:34 -0700)] 
Doc: Do not suggest `s[::-1]` for reversed order (GH-22457)

(cherry picked from commit fb2e94692e3a8eb66915575f4a122d56fe8999a0)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agoDoc: Remove old Python version from future stmt (GH-21802)
Miss Skeleton (bot) [Wed, 21 Oct 2020 05:54:36 +0000 (22:54 -0700)] 
Doc: Remove old Python version from future stmt (GH-21802)

(cherry picked from commit eba109a28f48b20b05f08abbe6604eebb07788f9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-41316: Make tarfile follow specs for FNAME (GH-21511)
Miss Skeleton (bot) [Wed, 21 Oct 2020 05:29:44 +0000 (22:29 -0700)] 
bpo-41316: Make tarfile follow specs for FNAME (GH-21511)

tarfile writes full path to FNAME field of GZIP format instead of just basename if user specified absolute path. Some archive viewers may process file incorrectly. Also it creates security issue because anyone can know structure of directories on system and know username or other personal information.

RFC1952 says about FNAME:
This is the original name of the file being compressed, with any directory components removed.

So tarfile must remove directory names from FNAME and write only basename of file.

Automerge-Triggered-By: @jaraco
(cherry picked from commit 22748a83d927d3da1beaed771be30887c42b2500)

Co-authored-by: Artem Bulgakov <ArtemSBulgakov@ya.ru>
5 years agobpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)
Miss Skeleton (bot) [Wed, 21 Oct 2020 05:16:21 +0000 (22:16 -0700)] 
bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)

(cherry picked from commit 8f2b991eef062c22c429a96983c78be007180b66)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41192: Add documentation of undocumented audit events (GH-22832)
Miss Skeleton (bot) [Tue, 20 Oct 2020 20:05:55 +0000 (13:05 -0700)] 
bpo-41192: Add documentation of undocumented audit events (GH-22832)

(cherry picked from commit 3f7e990fd49dbabc1dde41ce58c1bdda9f56ead7)

5 years agobpo-38439: Add 256px IDLE icon to the .ico, drop gifs from it (GH-19648)
Miss Skeleton (bot) [Tue, 20 Oct 2020 17:17:31 +0000 (10:17 -0700)] 
bpo-38439: Add 256px IDLE icon to the .ico, drop gifs from it (GH-19648)

(cherry picked from commit faddc7449d07e883b8ad8bb95dd68ce6dbdc06e8)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-38439: Update the Windows Store package's icons for IDLE. Artwork by Andrew Clove...
Miss Skeleton (bot) [Tue, 20 Oct 2020 17:17:17 +0000 (10:17 -0700)] 
bpo-38439: Update the Windows Store package's icons for IDLE. Artwork by Andrew Clover (GH-22817)

(cherry picked from commit 6d883fbe14751b58d9ed2fd708322613d8931035)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41192: Clarify the sys module's description of the auditing feature (GH-22820)
Miss Skeleton (bot) [Tue, 20 Oct 2020 15:15:02 +0000 (08:15 -0700)] 
bpo-41192: Clarify the sys module's description of the auditing feature (GH-22820)

Co-authored-by: Éric Araujo <merwok@netwok.org>
(cherry picked from commit 0c37269be7065b9b15b7b3a4406084f9535a793a)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
Co-authored-by: Andrew Kuchling <amk@amk.ca>
5 years agoDoc: Add missing spaces after period for `posix_spawn` (GH-22730)
Miss Skeleton (bot) [Tue, 20 Oct 2020 15:01:38 +0000 (08:01 -0700)] 
Doc: Add missing spaces after period for `posix_spawn` (GH-22730)

(cherry picked from commit 5b57fa69408c4856bf0ae02f2eaa3db1ef980ea6)

Co-authored-by: Tomer Cohen <tomer@users.noreply.github.com>
5 years agobpo-30612: Tweak Windows registry path syntax in the docs (GH-20281)
Miss Skeleton (bot) [Tue, 20 Oct 2020 12:11:25 +0000 (05:11 -0700)] 
bpo-30612: Tweak Windows registry path syntax in the docs (GH-20281)

(cherry picked from commit ff1ae3dd334faa2006394c2318db385cdc42030a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-38324: Fix test__locale.py Windows failures (GH-20529)
Miss Skeleton (bot) [Tue, 20 Oct 2020 11:58:06 +0000 (04:58 -0700)] 
bpo-38324: Fix test__locale.py Windows failures (GH-20529)

Use wide-char _W_* fields of lconv structure on Windows
Remove "ps_AF" from test__locale.known_numerics on Windows
(cherry picked from commit f2312037e3a974d26ed3e23884f94c6af111a27a)

Co-authored-by: TIGirardi <tiagoigirardi@gmail.com>
5 years agobpo-41491: plistlib: accept hexadecimal integer values in xml plist files (GH-22764...
Miss Skeleton (bot) [Tue, 20 Oct 2020 08:05:40 +0000 (01:05 -0700)] 
bpo-41491: plistlib: accept hexadecimal integer values in xml plist files (GH-22764) (GH-22807)

(cherry picked from commit 3185267400be853404f22a1e06bb9fe1210735c7)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agobpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762...
Miss Skeleton (bot) [Tue, 20 Oct 2020 07:17:58 +0000 (00:17 -0700)] 
bpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762) (GH-22774)

(cherry picked from commit 93a1ccabdede416425473329b8c718d507c55e29)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agobpo-42051: Reject XML entity declarations in plist files (GH-22760)
Miss Skeleton (bot) [Tue, 20 Oct 2020 02:35:23 +0000 (19:35 -0700)] 
bpo-42051: Reject XML entity declarations in plist files (GH-22760)

(cherry picked from commit 05ee790f4d1cd8725a90b54268fc1dfe5b4d1fa2)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
5 years agobpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)
Miss Skeleton (bot) [Tue, 20 Oct 2020 01:44:05 +0000 (18:44 -0700)] 
bpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)

Reduces the rate at which the ENV CHANGED failure occurs in test_asyncio SSL tests (due to unclosed transport), but does not 100% resolve it.
(cherry picked from commit de73d432bb29f6439f2db16cb991e15e09c70c26)

Co-authored-by: Justin Turner Arthur <justinarthur@gmail.com>
5 years agobpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)
Miss Skeleton (bot) [Mon, 19 Oct 2020 23:07:20 +0000 (16:07 -0700)] 
bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074)

This PR replaces GH-1977. The reason for the replacement is two-fold.

The fix itself is different is that if the CTE header doesn't exist in the original message, it is inserted. This is important because the new CTE could be quoted-printable whereas the original is implicit 8bit.

Also the tests are different. The test_nonascii_as_string_without_cte test in GH-1977 doesn't actually test the issue in that it passes without the fix. The test_nonascii_as_string_without_content_type_and_cte test is improved here, and even though it doesn't fail without the fix, it is included for completeness.

Automerge-Triggered-By: @warsaw
(cherry picked from commit bf838227c35212709dc43b3c3c57f8e1655c1d24)

Co-authored-by: Mark Sapiro <mark@msapiro.net>
5 years agobpo-40901: Describe what "interface name" means on Windows (GH-20694)
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:39:50 +0000 (15:39 -0700)] 
bpo-40901: Describe what "interface name" means on Windows (GH-20694)

(cherry picked from commit f85658a09878c658ae0e0590bfa30e4ce51c9a04)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years agobpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:29:37 +0000 (15:29 -0700)] 
bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394)

Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit 5456e78f4593edc277ab72fb9a9db1ebae7d4c2d)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 years agobpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360)
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:19:00 +0000 (15:19 -0700)] 
bpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360)

On Windows, the default asyncio event loop is ProactorEventLoop (as of 3.8).
(cherry picked from commit 4dfb190a33a1deac60306f15d52d2fe11fb93464)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)
Miss Skeleton (bot) [Mon, 19 Oct 2020 22:12:57 +0000 (15:12 -0700)] 
bpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463)

(cherry picked from commit 33242a9328cb3912f02819d2d092bf89681000b2)

Co-authored-by: Michel Samia <m.samia@seznam.cz>
5 years agoLink to the msvcrt module from the Windows FAQ (GH-22268)
Miss Skeleton (bot) [Mon, 19 Oct 2020 21:55:43 +0000 (14:55 -0700)] 
Link to the msvcrt module from the Windows FAQ (GH-22268)

(cherry picked from commit 5d9e6575177f3e5f9aa20d6a08ae1204f122e672)

Co-authored-by: abdo <abd.nh25@gmail.com>
5 years agoRemove extra pip package (GH-22778)
Miss Skeleton (bot) [Mon, 19 Oct 2020 20:22:34 +0000 (13:22 -0700)] 
Remove extra pip package (GH-22778)

(cherry picked from commit 6b487e07d0525f7721dcb4dc1aa96eb2eec97a78)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22770)
Miss Skeleton (bot) [Mon, 19 Oct 2020 18:52:27 +0000 (11:52 -0700)] 
bpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22770)

(cherry picked from commit ebc8c3828779374b9be4fae5c8ffc0059d36ac8c)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
5 years agobpo-40492: Fix --outfile with relative path when the program changes it working dir...
Anthony Sottile [Sun, 18 Oct 2020 21:14:18 +0000 (14:14 -0700)] 
bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910)

(cherry picked from commit 3c0ac18504cfeed822439024339d5717f42bdd66)

5 years ago[3.8] bpo-32498: Improve exception message on passing bytes to urllib.parse.unquote...
Irit Katriel [Sun, 18 Oct 2020 21:06:34 +0000 (22:06 +0100)] 
[3.8] bpo-32498: Improve exception message on passing bytes to urllib.parse.unquote (GH-22746)

5 years agobpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22748)
Miss Skeleton (bot) [Sun, 18 Oct 2020 15:33:28 +0000 (08:33 -0700)] 
bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22748)

(cherry picked from commit c304c9a7efa8751b5bc7526fa95cd5f30aac2b92)

Co-authored-by: scaramallion <scaramallion@users.noreply.github.com>
5 years agobpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
Miss Skeleton (bot) [Sun, 18 Oct 2020 06:16:52 +0000 (23:16 -0700)] 
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)

(cherry picked from commit 3635388f52b42e5280229104747962117104c453)

Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
5 years agobpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22724)
Miss Skeleton (bot) [Fri, 16 Oct 2020 17:20:24 +0000 (10:20 -0700)] 
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22724)

(cherry picked from commit e9959c71185d0850c84e3aba0301fbc238f194a9)

5 years ago[3.8] bpo-41855: Fix duplicate results in FastPath.zip_children() (#22404)
Jason R. Coombs [Thu, 15 Oct 2020 21:05:12 +0000 (17:05 -0400)] 
[3.8] bpo-41855: Fix duplicate results in FastPath.zip_children() (#22404)

* bpo-41855: Backport fixes from importlib_metadata 1.5.2.

* Add blurb.

* Add anchor for finders and loaders

5 years agobpo-41984: GC track all user classes (GH-22701/GH-22707)
Miss Skeleton (bot) [Thu, 15 Oct 2020 15:51:48 +0000 (08:51 -0700)] 
bpo-41984: GC track all user classes (GH-22701/GH-22707)

(cherry picked from commit c13b847a6f913b72eeb71651ff626390b738d973)

5 years agobpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)
Miss Skeleton (bot) [Thu, 15 Oct 2020 02:11:08 +0000 (19:11 -0700)] 
bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)

When running in a non-UTF-8 locale, if an error occurs while importing a
native Python module (say because a dependent share library is missing),
the error message string returned may contain non-ASCII code points
causing a UnicodeDecodeError.

PyUnicode_DecodeFSDefault is used for buffers which may contain
filesystem  paths. For consistency with os.strerror(),
PyUnicode_DecodeLocale is used for buffers which contain system error
messages. While the shortname parameter is always encoded in ASCII
according to PEP 489, it is left decoded using PyUnicode_FromString to
minimize the changes and since it should not affect the decoding (albeit
_potentially_ slower).

In dynload_hpux, since the error buffer contains a message generated
from a static ASCII string and the module filesystem path,
PyUnicode_DecodeFSDefault is used instead of PyUnicode_DecodeLocale as
is used elsewhere.

* bpo-41894: Fix bugs in dynload error msg handling

For both dynload_aix and dynload_hpux, properly handle the possibility
that decoding strings may return NULL and when such an error happens,
properly decrement any previously decoded strings and return early.

In addition, in dynload_aix, ensure that we pass the decoded string
*object* pathname_ob to PyErr_SetImportError instead of the original
pathname buffer.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 2d2af320d94afc6561e8f8adf174c9d3fd9065bc)

Co-authored-by: Kevin Adler <kadler@us.ibm.com>
5 years agobpo-41939: always enable test_site.test_license_exists_at_url (GH-22688)
Miss Skeleton (bot) [Wed, 14 Oct 2020 01:59:12 +0000 (18:59 -0700)] 
bpo-41939: always enable test_site.test_license_exists_at_url (GH-22688)

(cherry picked from commit 6a48518e8dac3521ff387ee67cdf33783114a257)

Co-authored-by: Ned Deily <nad@python.org>
5 years ago[3.8] bpo-32793: Fix a duplicate debug message in smtplib (GH-15341) (GH-22683)
Dong-hee Na [Tue, 13 Oct 2020 15:18:58 +0000 (00:18 +0900)] 
[3.8] bpo-32793: Fix a duplicate debug message in smtplib (GH-15341) (GH-22683)

_get_socket() already prints a debug message for the host and port.

https://bugs.python.org/issue32793

Automerge-Triggered-By: @maxking
(cherry picked from commit 46a7564578f208df1e0c54fc0520d3b7ca32c981)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) ...
Miss Skeleton (bot) [Mon, 12 Oct 2020 08:51:10 +0000 (01:51 -0700)] 
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656) (GH-22662)

The test now waits until all threads complete to avoid leaking
running threads.

Also, use regular threads rather than daemon threads.

(cherry picked from commit 13ff396c019d548ba181cf22c6f39309a300723c)
(cherry picked from commit f5393dc2a0ced7bf670ebc56b5fd10a3eb328d1a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-21602) (GH-22592)
Miss Skeleton (bot) [Sun, 11 Oct 2020 18:21:31 +0000 (11:21 -0700)] 
bpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-21602) (GH-22592)

`site.getusersitepackages()` returns the location of the user-specific site-packages directory
even when the user-specific site-packages is disabled.

```
$ python -s -m site
sys.path = [
    '/home/user/conda/lib/python37.zip',
    '/home/user/conda/lib/python3.7',
    '/home/user/conda/lib/python3.7/lib-dynload',
    '/home/user/conda/lib/python3.7/site-packages',
]
USER_BASE: '/home/user/.local' (exists)
USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist)
ENABLE_USER_SITE: False
```

It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`).
(cherry picked from commit 35f041dd0171f575fc3adce1709b31fdf45a5ff6)

Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
5 years ago[3.8] [doc] Fix link to abc.collections.Iterable (GH-22502) (#22504)
Andre Delfino [Sun, 11 Oct 2020 17:32:02 +0000 (14:32 -0300)] 
[3.8] [doc] Fix link to abc.collections.Iterable (GH-22502) (#22504)

Automerge-Triggered-By: @gvanrossum.
(cherry picked from commit d4b9edd5052a2d9ae3d2be69975cc933afb37737)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API...
Miss Skeleton (bot) [Sat, 10 Oct 2020 14:28:49 +0000 (07:28 -0700)] 
bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API (GH-22621)

(cherry picked from commit 637a09b0d6e3ad4e34e0b5e0fc82f5afeae6f74b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agoFix incorrect parameter name (GH-22613)
Miss Skeleton (bot) [Sat, 10 Oct 2020 04:50:23 +0000 (21:50 -0700)] 
Fix incorrect parameter name (GH-22613)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit a42759351bff7b07fa8bf2cece0088f8539721d1)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
5 years agobpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
Miss Skeleton (bot) [Fri, 9 Oct 2020 20:21:15 +0000 (13:21 -0700)] 
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)

(cherry picked from commit eb38c6b7aa35d3003ec0958533421902d19ce408)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)
Miss Skeleton (bot) [Fri, 9 Oct 2020 19:05:26 +0000 (12:05 -0700)] 
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354)

(cherry picked from commit f25323a307a72c40862c87c2df822f83be6645da)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)
Miss Skeleton (bot) [Thu, 8 Oct 2020 18:57:33 +0000 (11:57 -0700)] 
bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)

(cherry picked from commit bfe6e03cd6931813dd61b50f5fdf7d8a8848f4cd)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
5 years ago[3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc...
Pablo Galindo [Thu, 8 Oct 2020 18:50:28 +0000 (19:50 +0100)] 
[3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22600)

(cherry picked from commit 27ac19cca2c639caaf6fedf3632fe6beb265f24f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-41306: Allow scale value to not be rounded (GH-21715)
Miss Skeleton (bot) [Thu, 8 Oct 2020 16:14:33 +0000 (09:14 -0700)] 
bpo-41306: Allow scale value to not be rounded (GH-21715)

This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed).

Going into more detail for those who want it, the Tk change was made in [commit 591f68c](https://github.com/tcltk/tk/commit/591f68cb382525b72664c6fecaab87742b6cc87a) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.cGH-L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`).

Automerge-Triggered-By: @pablogsal
(cherry picked from commit aecf036738a404371303e770f4ce4fd9f7d43de7)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
5 years agobpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests...
Miss Skeleton (bot) [Tue, 6 Oct 2020 12:38:54 +0000 (05:38 -0700)] 
bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) (GH-22577)

(cherry picked from commit 2ef5caa58febc8968e670e39e3d37cf8eef3cab8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559)
Miss Skeleton (bot) [Tue, 6 Oct 2020 07:03:27 +0000 (00:03 -0700)] 
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559)

Call urllib.request.urlcleanup() to reset the global
urllib.request._opener.
(cherry picked from commit 1fce240d6c4b2b2cc17a86e88c65169e15b9feeb)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-41584: clarify when the reflected method of a binary arithemtic operator is calle...
Miss Skeleton (bot) [Mon, 5 Oct 2020 16:52:02 +0000 (09:52 -0700)] 
bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (GH-22505)

(cherry picked from commit d02d824e05e2cb86f4df381be18832e76e2c475f)

Co-authored-by: Brett Cannon <brett@python.org>
5 years agobpo-41774: Tweak new programming FAQ entry (GH-22562)
Miss Skeleton (bot) [Mon, 5 Oct 2020 14:42:10 +0000 (07:42 -0700)] 
bpo-41774: Tweak new programming FAQ entry (GH-22562)

Remove mention of space in "remove multiple items from list".
(cherry picked from commit 060937da988347a887a5f165b023d972fcb97802)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959)
Miss Skeleton (bot) [Mon, 5 Oct 2020 08:27:53 +0000 (01:27 -0700)] 
bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959)

https://sqlite.org/releaselog/3_33_0.html
(cherry picked from commit 9a7642667a71a27b38b96eb63df45f17f48b3467)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
5 years agobpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifyin...
Miss Skeleton (bot) [Sun, 4 Oct 2020 23:23:43 +0000 (16:23 -0700)] 
bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464)

(cherry picked from commit 40db798692ca783fc2163656f196ac77e8b9e792)

Co-authored-by: scoder <stefan_ml@behnel.de>
5 years ago[3.8] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (GH-22551)
Serhiy Storchaka [Sun, 4 Oct 2020 22:28:00 +0000 (01:28 +0300)] 
[3.8] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (GH-22551)

Enable recursion checks which were disabled when get __bases__ of
non-type objects in issubclass() and isinstance() and when intern
strings. It fixes a stack overflow when getting __bases__ leads
to infinite recursion.

Originally recursion checks was disabled for PyDict_GetItem() which
silences all errors including the one raised in case of detected
recursion and can return incorrect result. But now the code uses
PyDict_GetItemWithError() and PyDict_SetDefault() instead.
(cherry picked from commit 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac)

5 years ago[3.8] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22545)
Pablo Galindo [Sun, 4 Oct 2020 17:11:31 +0000 (18:11 +0100)] 
[3.8] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22545)

(cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoDelete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22543)
Miss Skeleton (bot) [Sun, 4 Oct 2020 16:32:15 +0000 (09:32 -0700)] 
Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22543)

(cherry picked from commit a619af43ccd10bab363b1e59814a2e2727422545)

5 years agobpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526...
Miss Skeleton (bot) [Sun, 4 Oct 2020 13:27:14 +0000 (06:27 -0700)] 
bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526) (GH-22537)

(cherry picked from commit 1ed54435268b285964141fb74d47ceaa33ea79ab)