Commit graph

108407 commits

Author SHA1 Message Date
Miss Islington (bot)
b348580da6
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
The check about the f argument type was removed in this commit:
2c94aa567e

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
(cherry picked from commit bd25bcd37a)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2021-04-26 07:24:17 -07:00
Miss Islington (bot)
d7a1a815d9
Update asyncio-subprocess.rst (GH-21680) (GH-25621)
(cherry picked from commit 3c4850e222)

Co-authored-by: Gabriel R F <github@gabrf.com>
2021-04-25 21:47:05 -07:00
Senthil Kumaran
debb23fae6
[3.9] documentation: clarification about the function remove in os library (GH-19024) (GH-25620)
(cherry picked from commit b6daab2f67)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
2021-04-25 21:30:32 -07:00
Miss Islington (bot)
4cb98169b3
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
(cherry picked from commit 7be870f945)

Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
2021-04-25 21:06:55 -07:00
Miss Islington (bot)
a3c6752f71
Quick pydoc update to smtplib.py (GH-22292) (GH-25615)
Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py.
(cherry picked from commit b3dec6f9ed)

Co-authored-by: uy-rrodriguez <5296200+uy-rrodriguez@users.noreply.github.com>
2021-04-25 21:03:54 -07:00
Miss Islington (bot)
b47f05157b
bpo-43534: Fix the turtle module working with multiple root windows GH-25593
(cherry picked from commit 8af929fc76)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-04-25 18:54:41 -07:00
Miss Islington (bot)
2b475dc1ff
Fix broken links and improve stand-alone tools list in FAQ GH-25609
(cherry picked from commit d28b346953)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-25 18:43:43 -07:00
Miss Islington (bot)
7349c12452
Fix id of 'Internet Message Format' RFC in email doc GH-25613
Previous ID (5233) refers to "Sieve Email Filtering: Subaddress
Extension". It seems that the actual reference should be "Internet
Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322).

(The typo probably comes from commit 29d1bc0842 in which the ID of
this RFC got updated from the obsolete 2822.)

Co-authored-by: Ambrose Chua <ambrose@hey.com>
(cherry picked from commit cb5c802dcf)
Co-authored-by: Denis Laxalde <denis@laxalde.org>
2021-04-25 18:42:56 -07:00
Miss Islington (bot)
b861ed1006
Fix copy.Error casing in documentation GH-22004 (#25611)
(cherry picked from commit 0d930f108c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-25 18:39:24 -07:00
Miss Islington (bot)
9b2c5b20a5
Remove mention of dst parameter from description of os.lstat() (GH-24704)
It looks like it was accidentally copy-pasted in
6fa7aada9b.
(cherry picked from commit 7f8e072c6d)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2021-04-25 14:47:54 -07:00
Miss Islington (bot)
ab99b6a8ba
Fix a typo in datamodel reference document (GH-24930)
(cherry picked from commit a1a5e3c4c8)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2021-04-25 14:36:57 -07:00
Senthil Kumaran
d2e2534751
[3.9] fix typo in warning (GH-20620) (#25601)
* Add space after period to warning in _tzpath.py

Currently:
InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ...

* Update _tzpath.py
(cherry picked from commit a31cf86bc2)

Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
2021-04-25 12:25:51 -07:00
Miss Islington (bot)
2825f906c7
BaseHTTPRequestHandler, that path includes query (GH-25597)
* Clarify, for BaseHTTPRequestHandler, that path includes query

Co-authored-by: David Jones <drj@pobox.com>
(cherry picked from commit a89d8a94a0)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2021-04-25 10:30:15 -07:00
Miss Islington (bot)
2178afffc0
Improve CDN purge script (GH-25251) (#25254)
(cherry picked from commit e35dd556e1)

Co-authored-by: Steve Dower <steve.dower@python.org>

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-25 08:19:32 -07:00
Serhiy Storchaka
9a165399ae
[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (GH-25187). (GH-25588)
(cherry picked from commit 3bb3fb3be0)
2021-04-25 13:49:31 +03:00
Miss Islington (bot)
7248ce30bb
bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again (GH-24923)
(cherry picked from commit b5adc8a7e5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-04-25 03:44:30 -07:00
Stéphane Bidoul
d962b00fcf
[3.9] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25578)
(cherry picked from commit 196983563d)
2021-04-24 23:27:44 +01:00
Miss Islington (bot)
52e9031fbd
bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500)
The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version.
Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part).
sys.getwindowsversion() is not updated to avoid launching executables from that module.
(cherry picked from commit 2a3f4899c6)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
2021-04-23 19:09:20 +01:00
Miss Islington (bot)
04bcfe001c
bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)
(cherry picked from commit 3513d55a61)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-23 10:28:05 -07:00
Christian Heimes
e259a77f21
[3.9] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25555)
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b9ad88be03)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-23 14:23:35 +02:00
Jason R. Coombs
d4fff1f580
bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)
Use a versionadded directive to generate the text "New in version
3.8." (to match with the documentation of other modules).

Automerge-Triggered-By: GH:jaraco.
(cherry picked from commit adf24bd835)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-23 15:46:16 +09:00
Miss Islington (bot)
987b65e956
Reformat idlelib colorizer (GH-25479)
Also replace if-then and and-or with conditional expressions.

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

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-04-22 23:32:33 -04:00
Miss Islington (bot)
8db72cd342
Add more tests. Fix code excerpt. (GH-25549) (GH-25550) 2021-04-22 20:26:56 -07:00
Miss Islington (bot)
34be48450f
bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)
Reported by Yahor Harunovich.
(cherry picked from commit 14092b5a4a)
2021-04-22 18:16:16 -07:00
Miss Islington (bot)
bc5a1a7adf
bpo-39572: Address typo in CHANGELOG. (GH-24999)
(cherry picked from commit 6afb0a8078)

Co-authored-by: Simon Charette <charette.s@gmail.com>
2021-04-22 17:58:42 -07:00
Miss Islington (bot)
28575923a9
bpo-38822: Check specifically for a drive, not just a colon (GH-25540)
(cherry picked from commit e07d809889)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-23 00:56:45 +01:00
Miss Islington (bot)
ab5d78ce41
bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529)
(cherry picked from commit 4696f1285d)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-22 13:30:29 -07:00
Miss Islington (bot)
8e7cebb497
bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)
It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a401a9)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-22 13:09:56 -07:00
Miss Islington (bot)
87a392db40
bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH-22608)
(cherry picked from commit 660592f67c)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2021-04-21 21:32:40 -07:00
Miss Islington (bot)
d8576b1d15
bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510)
(cherry picked from commit dc516ef839)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-21 16:43:40 -07:00
Miss Islington (bot)
fa03efda3d
Improve the error message for choices(population, 10) (GH-25267) (GH-25477) 2021-04-19 23:15:50 -07:00
Miss Islington (bot)
072ec69af5
bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) (GH-25472) 2021-04-19 08:56:38 -07:00
Miss Islington (bot)
0121f6792a
Fix typo in a dataclasses comment. (GH-25454)
(cherry picked from commit 76beadb8ff)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
2021-04-17 07:13:44 -07:00
Christian Heimes
cdf0287979
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25451)
Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.

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

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-17 11:35:24 +02:00
Victor Stinner
e1903e11a3
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437)
Fix a race condition in the SMTP test of test_logging. Don't close a
file descriptor (socket) from a different thread while
asyncore.loop() is polling the file descriptor.

(cherry picked from commit 75ec103b3a)
2021-04-16 16:06:38 +02:00
Terry Jan Reedy
56c76df6e8
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
Change threading.activeCount to synonym threading.active_count.
2021-04-16 02:08:07 -04:00
Miss Islington (bot)
95e4431804
bpo-20364: Improve sqlite3 placeholder docs (GH-25003)
(cherry picked from commit 3386ca0b36)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-04-14 16:28:11 +03:00
Miss Islington (bot)
57873af35a
bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)
(cherry picked from commit 133705b85c)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2021-04-13 22:34:39 -07:00
Pablo Galindo
4da5ca52b7
Revert "Add ignore file for the abidump check (GH-25323)" (GH-25394)
This reverts commit b3fec753bb.
2021-04-14 00:26:43 +01:00
Miss Islington (bot)
5ce227f3a7
[3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391)
The new checks are only executed when one or more OpenSSL-related files are modified. The checks run a handful of networking and hashing test suites. All SSL checks are optional. This PR also introduces ccache to speed up compilation. In common cases it speeds up configure and compile time from about 90 seconds to less than 30 seconds.

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


Co-authored-by: Christian Heimes <christian@python.org>

Automerge-Triggered-By: GH:tiran
2021-04-13 12:14:41 -07:00
Miss Islington (bot)
15ad30d88f
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) (GH-25387)
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
(cherry picked from commit 54db51c911)

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
2021-04-13 14:20:13 +02:00
Miss Islington (bot)
7d9d5bf863
[3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit a4833883c9)


Co-authored-by: Christian Heimes <christian@python.org>

Automerge-Triggered-By: GH:tiran
2021-04-12 23:40:52 -07:00
Ethan Furman
6379924ecd
[3.9] bpo-42248: [Enum] ensure exceptions raised in `_missing_` are released (GH-25350). (GH-25370)
(cherry picked from commit 8c14f5a787)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2021-04-12 15:03:29 -07:00
Miss Islington (bot)
de06baa9de
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)
(cherry picked from commit 67c0b3d89c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-12 09:03:08 -07:00
Miss Islington (bot)
0983e01837
bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3447750073)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-12 03:24:48 -07:00
Miss Islington (bot)
6ec2fb42f9
bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)
* coerce bytes separator to string

* Add news

* Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
(cherry picked from commit b38601d496)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-04-11 06:49:35 -07:00
Miss Islington (bot)
dbc0e19a48
Fix description of behaviour of an exception class in 'from' clause (GH-24303) (GH-25341)
(cherry picked from commit 79650d0118)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2021-04-11 10:27:51 +01:00
Miss Islington (bot)
28fb2d1c4d
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25333) 2021-04-10 09:19:49 -07:00
Pablo Galindo
b3fec753bb
Add ignore file for the abidump check (GH-25323) 2021-04-09 23:12:08 +01:00
Miss Islington (bot)
7c8796a750
bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)
ripemd160 is not available in OpenSSL 3.0.0's default crypto provider.
It's only present in legacy provider.

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

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 13:46:17 -07:00