Commit Graph

110104 Commits

Author SHA1 Message Date
Miss Islington (bot) 7e59ef10e8
Correct the changelog entry for the syntax error message for multiple exception types (GH-26038)
(cherry picked from commit c1df8808e0)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2021-05-11 16:58:18 -07:00
Miss Islington (bot) c90ed8e2e7
bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (GH-25438) (#26050)
Co-authored-by: Thomas Kluyver <takowl@gmail.com>
(cherry picked from commit 8563a7052c)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-05-12 00:48:05 +01:00
Miss Islington (bot) 6098214b98
Fix import of HTTPError (GH-22304) (GH-26047)
Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71439)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2021-05-11 16:18:13 -07:00
Miss Islington (bot) 1e4ca09d82
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)
(cherry picked from commit 23ae2c3bac)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2021-05-11 23:23:40 +01:00
Miss Islington (bot) 6fc6f4366d
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH-26040)
* Document os-system, subprocess Patch

* Update Doc/library/os.rst

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>

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

Co-authored-by: uniocto <serit142sa33go@gmail.com>

Co-authored-by: uniocto <serit142sa33go@gmail.com>
2021-05-11 13:55:15 -07:00
Miss Islington (bot) 7bef7a180d
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192) (#26035)
(cherry picked from commit 12e7d10dfd)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2021-05-11 19:19:27 +01:00
Miss Islington (bot) 90904011bd
Doc: http.server: directory is not a class attribute, but an argument. (GH-26017)
* Doc: http.server: directory is not a class attribute, but an argument.
(cherry picked from commit d1b81574ed)

Co-authored-by: Julien Palard <julien@palard.fr>
2021-05-10 19:20:22 -07:00
Miss Islington (bot) 4cc836983e
bpo-44074: let patchcheck infer the base branch name (GH-25991)
(cherry picked from commit 21fbbb98ba)

Co-authored-by: Leonardo Lai <leonardo.lai@live.com>
2021-05-10 11:58:42 -07:00
Miss Islington (bot) f47305aa1f
bpo-43558: Add note about base class initialization to dataclasses doc (GH-25967) (GH-26018)
(cherry picked from commit 2a031723ee)

Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>

Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
2021-05-10 09:38:46 -04:00
Miss Islington (bot) 9a0e65c8e0
bpo-43149: Correct the syntax error message for multiple exception types (GH-25996) GH-25997)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 6692dc1ca9)

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

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-05-09 22:13:50 +01:00
Miss Islington (bot) c3eb3c18f1
Revert test for Tix deprecation warning (GH-26005)
Added in bpo-41730 (GH-22186), the test apparently causes refleaks.  The
test isn't worth hunting them down, so it's simply reverted.

This partially reverts commit 4a2d98a1e9.
(cherry picked from commit 8e8307d70b)

Co-authored-by: Zachary Ware <zach@python.org>
2021-05-09 00:19:43 -07:00
Miss Islington (bot) 70ff820046
Fix a word in dataclasses docs. (GH-26003) (GH-26004)
(cherry picked from commit 801497a115)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
2021-05-08 22:22:48 -04:00
Pablo Galindo 03acfc50ac
bpo-32924: Fix the Show Source url in the documentation (GH-25994) 2021-05-08 17:15:01 +01:00
Miss Islington (bot) 90d584a2ab
bpo-42725: mention the changes on what's new (GH-25974)
(cherry picked from commit 17229ab4a2)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
2021-05-08 05:20:48 -07:00
Miss Islington (bot) 6e7fe19016
[3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965) (GH-25983)
The error string on VxWorks is "no such file or directory" for FileNotFoundError. That is, the 1st letter of the error string has lower case.
(cherry picked from commit b063b02eab)


Co-authored-by: pxinwr <peixing.xin@windriver.com>

Automerge-Triggered-By: GH:gpshead
2021-05-08 02:09:29 -07:00
Miss Islington (bot) a2c72d52dd
Fix make libainstall. (GH-25980)
Initial patch by Benno Leslie.
(cherry picked from commit 80d250d68c)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2021-05-07 23:58:53 -07:00
Pablo Galindo f46ef57c25
Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25978) 2021-05-08 03:43:43 +01:00
Miss Islington (bot) 5a5237c6d0
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)
A C function accessible by the default exception handler, but not by python code,
finds the existing name closest to the name causing a name or attribute error.  For
such errors, call the default handler after capturing stderr and retrieve its message line.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 092f9ddb5e)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-05-07 20:35:25 -04:00
Miss Islington (bot) 13de28f17a
bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)
(cherry picked from commit b2ec37a722)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
2021-05-07 23:40:09 +03:00
Miss Islington (bot) ec6a1ea1ee
bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Zachary Ware <zach@python.org>
(cherry picked from commit 4a2d98a1e9)

Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
2021-05-07 09:14:48 -07:00
Miss Islington (bot) a8fa6b248f
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25969)
(cherry picked from commit b32c8e9795)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2021-05-07 07:13:15 -07:00
Miss Islington (bot) 569ca81adf
bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)
`convertitem()` raises `SystemError` when 'GH-' is used without `PY_SSIZE_T_CLEAN`.
This commit makes `skipitem()` raise it too.
(cherry picked from commit 4ebf4a6bfa)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-05-06 20:18:42 -07:00
Miss Islington (bot) ba5076f34b
Fix minor grammar problems in dataclasses documentation (GH-25948) (GH-25958)
Some missing words; some odd word choices.
(cherry picked from commit ee8e7c2fa9)

Co-authored-by: Scott Noyes <snoyes@gmail.com>

Co-authored-by: Scott Noyes <snoyes@gmail.com>
2021-05-06 17:54:32 -04:00
Miss Islington (bot) fbefdaf92e
bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH-25950)
(cherry picked from commit 329a47f052)

Co-authored-by: Linus Groh <mail@linusgroh.de>
2021-05-06 12:49:26 -07:00
Miss Islington (bot) 058f9b27d3
bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705)
* Set content-length for simple http server 301s

When http.server.SimpleHTTPRequestHandler sends a 301 (Moved
Permanently) due to a missing file, it does not set a Content-Length
of 0. Unfortunately, certain clients can be left waiting for the
connection to be closed in this circumstance, even though no body
will be sent. At time of writing, both curl and Firefox demonstrate
this behavior.

* Test Content-Length on simple http server redirect

When serving a redirect, the SimpleHTTPRequestHandler will now send
`Content-Length: 0`. Several tests for http.server already cover
various behaviors and checks including redirection. This change only
adds one check for the expected Content-Length on the simplest case
for a redirect.

* Add news entry for SimpleHTTPRequestHandler fix

* Clarify the specific kind of 301

Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
(cherry picked from commit fb42725561)

Co-authored-by: Stephen Rosen <sirosen@globus.org>
2021-05-06 12:48:36 -07:00
Miss Islington (bot) 34fc6dd8fd
docs: clearly document that ":GH-X" string formatting results in "0X..." (GH-25941)
* clearly document that ":GH-X" string formatting results in "0X..."

* put back the "serial comma"
(cherry picked from commit 92ceb1c840)

Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
2021-05-06 12:46:08 -07:00
Miss Islington (bot) 8e3cb61da9
Eliminate duplicated calculations and unnecessary work for linear regression (GH-25922) (GH-25945) 2021-05-06 08:26:55 -07:00
Miss Islington (bot) f8778f96e8
bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)
Also use new make target to install FIPS provider.
(cherry picked from commit e8525567dd)

Co-authored-by: Christian Heimes <christian@python.org>
2021-05-06 07:53:11 -07:00
Mark Shannon 8d4b18429d
Correct location for syntax error in try-except (GH-25939) 2021-05-06 13:38:50 +01:00
Miss Islington (bot) 60ba0b6847
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25931)
Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.

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

Co-authored-by: Gen Xu <xgbarry@gmail.com>
2021-05-05 16:14:28 -07:00
Miss Islington (bot) 24f1d1a8a2
bpo-43882 Remove the newline, and tab early. From query and fragments. (GH-25936)
(cherry picked from commit 985ac01637)
2021-05-05 16:04:38 -07:00
Miss Islington (bot) 3b2a45ff95
bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)
Contributed-By: Matthias Klose

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

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2021-05-05 15:05:22 -07:00
Miss Islington (bot) 8f3ef457ad
bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI (GH-25920)
(cherry picked from commit cf86996a8e)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2021-05-05 11:15:25 -07:00
Miss Islington (bot) 10d6f6bfd7
bpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926)
Ignore objects that inspect.unwrap throws due to
too many wrappers.  This is a very rare case, however
it can easily be surfaced when a module under doctest
imports unitest.mock.call into its namespace.

We simply skip any object that throws this exception.
This should handle the majority of cases.
(cherry picked from commit 565a31804c)

Co-authored-by: Alfred Perlstein <alfred@fb.com>
2021-05-05 20:01:21 +02:00
Miss Islington (bot) ce4fee210b
bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25910)
(cherry picked from commit 96d5c7038b)

Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
2021-05-05 10:54:05 +02:00
Miss Islington (bot) b19ec7f9df
Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909) 2021-05-04 21:39:09 -07:00
Miss Islington (bot) 7b4725a210
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)
The address tuple for CAN_RAW no longer returns the address family
after the introduction of CAN ISO-TP support in a30f6d45ac. However,
updating test_socket.CANTest.testSendFrame was missed as part of the
change, so the test incorrectly attempts to index past the last tuple
item to retrieve the address family.

This removes the now-redundant check for equality against socket.AF_CAN,
as the tuple will not contain the address family.
(cherry picked from commit 355bae8882)

Co-authored-by: karl ding <karlding@users.noreply.github.com>
2021-05-04 14:01:42 -07:00
Miss Islington (bot) 5dffd79ee9
Clarify rx parameter of compileall functions (GH-25857)
(cherry picked from commit 09490298d4)

Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
2021-05-04 12:57:35 -07:00
Miss Islington (bot) af14e1df37
Fix inconsistent fsum vs sum and fmean vs mean (GH-25898) (GH-25899) 2021-05-04 11:55:33 -07:00
Miss Islington (bot) 62a983d866
Fix typo in ast.py (GH-25740)
parantheses -> parentheses
(cherry picked from commit 9ee8448243)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
2021-05-04 06:39:16 -07:00
Miss Islington (bot) 377f3d43aa
fix enum.property reference in docs (GH-25875) (#25876)
(cherry picked from commit 6fee0835cb)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-05-04 06:24:46 -07:00
Miss Islington (bot) 4bb0a815ef
bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)
(cherry picked from commit b451bc8d7e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-05-04 15:21:40 +02:00
Miss Islington (bot) 8655521de8
bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) (#25893)
This documents in the tutorial docs the behavior of a finally clause in
case it should re-raise an exception but contains a
return/break/continue statement.
(cherry picked from commit a0b9915a8b)

Co-authored-by: Roberto Hueso <robertohueso96@gmail.com>
2021-05-04 15:17:40 +02:00
Miss Islington (bot) 31debfa524
Fix error in Enum documentation example code that was referring to the wrong enum. (GH-25837) (#25891)
(cherry picked from commit 33d9bf298b)

Co-authored-by: krisaoe <krisaoe@users.noreply.github.com>
2021-05-04 14:44:14 +02:00
Miss Islington (bot) 912ef3f248
Add C-API tests (GH-25886) (#25887)
(cherry picked from commit 2f5baa1750)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-05-04 14:29:56 +02:00
Miss Islington (bot) ae4f857499
bpo-44025: Clarify when '_' is a keyword. (GH-25873)
In match statements, in case patterns and nowhere else.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 3b200b2aa6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-05-04 04:36:50 -07:00
Miss Islington (bot) aa0ce1615f
Copyedits to 3.10 What's New (GH-25787) (#25883)
Co-authored-by: Dominic Davis-Foster <dominic@davis-foster.co.uk>
(cherry picked from commit f6d7abc6e7)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-05-04 13:04:46 +02:00
Miss Islington (bot) e1bcc88a50
bpo-38352: Add to typing.__all__ (GH-25821) (#25884)
This adds IO, TextIO, BinaryIO, Match, and Pattern.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit b115579734)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-05-04 11:51:33 +02:00
Miss Islington (bot) 2046fb35e4
bpo-44001: improve Literal documentation (GH-25877) (#25882)
(cherry picked from commit 87109f4d85)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-05-04 11:17:35 +02:00
Miss Islington (bot) 20380df6d8
update docstring for `win_getpass` to reflect code changes (GH-24967)
The code was updated in
0ec88b33d0
but the docstring was left untouched.

=> updated the docstring to reflect the code changes
(cherry picked from commit d4222ea6b0)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
2021-05-04 00:08:09 -07:00