Commit graph

108377 commits

Author SHA1 Message Date
Senthil Kumaran
c9f07813ab
[3.9] bpo-42967: only use '&' as a query string separator (GH-24297) (#24528)
(cherry picked from commit fcbe0cb04d)

* [3.9] bpo-42967: only use '&' as a query string separator (GH-24297)

bpo-42967: [security] Address a web cache-poisoning issue reported in urllib.parse.parse_qsl().

urllib.parse will only us "&" as query string separator by default instead of both ";" and "&" as allowed in earlier versions. An optional argument seperator with default value "&" is added to specify the separator.

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
2021-02-15 10:03:31 -08:00
Miss Islington (bot)
242f6c9ffe
bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 762fe7deed)
2021-02-13 00:20:24 -05:00
Miss Islington (bot)
df2197f2ec
bpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments (GH-24507)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit 5ec7d53558)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-02-12 03:18:38 -08:00
Miss Islington (bot)
68d6bc798b
bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)
(cherry picked from commit fedd86df24)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-12 13:33:35 +09:00
Ken Jin
917eca700a
bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24493) 2021-02-09 08:55:03 -08:00
Miss Islington (bot)
863eb7170b
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
These 3 statements cannot be used at module scope -- nor in exec with one namespace.
(cherry picked from commit 0ec57e25c9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-02-07 09:14:16 -05:00
Miss Islington (bot)
39aeb9ff90
Simple typo fix (GH-24448)
(cherry picked from commit 5f18c22339)

Co-authored-by: Andrew Tennikoff <atenni@users.noreply.github.com>
2021-02-05 10:44:23 -08:00
Miss Islington (bot)
c8b4375fe1
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH-24450) (GH-24457)
PyObject_RichCompareBool() returns -1 on error, but this case is
not handled by the find_in_strong_cache() function.  Any exception
raised by PyObject_RichCompareBool() should be propagated.
(cherry picked from commit effaec0bb5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-02-05 19:13:40 +02:00
Miss Islington (bot)
b0b01811bb
bpo-35295: Remove outdated comment. (GH-24453)
(cherry picked from commit d938816acf)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-04 20:44:17 -08:00
Miss Islington (bot)
29584aa6ac
bpo-43102: Set namedtuple __new__'s internal builtins to a dict. (GH-24439) (GH-24452) 2021-02-04 16:12:34 -08:00
Miss Islington (bot)
48d16b4b0f
build(deps): bump actions/upload-artifact from v2.2.1 to v2.2.2 (GH-24411)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.1 to v2.2.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.1...e448a9b857ee2131e752b06002bf0e093c65e571)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit aa4caf9887)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 11:21:37 -08:00
Miss Islington (bot)
0898dcb3a0
bpo-42773: fix tests not being run on pushes (GH-24004)
There was a typo, we were checking if the "GITHUB_BASE_REF" string
literal was empty instead of the $GITHUB_BASE_REF value. When
$GITHUB_BASE_REF is empty, the action that triggered the run was not a
pull request, so we always run the full test suite.

Signed-off-by: Filipe Laíns <lains@riseup.net>
(cherry picked from commit 4ac923f275)

Co-authored-by: Filipe Laíns <lains@riseup.net>
2021-02-03 15:38:55 -08:00
Miss Islington (bot)
2603d77a6b
Fix typo (GH-23019)
Fixed possible typo in comment
(cherry picked from commit bfe544d2f2)

Co-authored-by: Harry <harry.lees@gmail.com>
2021-02-03 13:48:22 -08:00
Miss Islington (bot)
12bfc595c4
bpo-43108: Fix a reference leak in the curses module (GH-24420)
(cherry picked from commit bb739ec922)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-02-03 05:41:09 -08:00
Miss Islington (bot)
f02ef7afcf
bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394) (GH-24427) 2021-02-02 19:33:35 -08:00
Miss Islington (bot)
3b9452691a
Add link to Microsoft docs for limitations in Windows Store package (GH-24422)
(cherry picked from commit 1ba08a121a)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-02-02 17:35:55 -08:00
Miss Islington (bot)
0874491bcc
bpo-41748: Handles unquoted attributes with commas (GH-24072)
* bpo-41748: Adds tests for unquoted attributes with comma

* bpo-41748: Handles unquoted attributes with comma

* bpo-41748: Addresses review comments

* bpo-41748: Addresses review comments

* Adds more test cases
* Simplifies the regex for handling spaces

* bpo-41748: Moves attributes tests under the right class

* bpo-41748: Addresses review about duplicate attributes

* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a139f)

Co-authored-by: Karl Dubost <karl+github@la-grange.net>
2021-02-01 12:54:43 -08:00
Miss Islington (bot)
304f9d2622
bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24407)
(cherry picked from commit a1e9a1e120)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-02-01 09:37:29 +02:00
Miss Islington (bot)
7e729978fa
bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH-23888)
Automerge-Triggered-By: GH:ronaldoussoren
(cherry picked from commit b3c77ecbbe)

Co-authored-by: erykoff <erykoff@stanford.edu>
2021-02-01 00:15:23 -05:00
Miss Islington (bot)
d6675fee1a
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bc)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2021-01-31 23:22:48 -05:00
Serhiy Storchaka
3c8d693443
[3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)
(cherry picked from commit 3243e8a4b4)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2021-01-31 21:44:31 +02:00
Serhiy Storchaka
e9d4960d15
[3.9] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399)
(cherry picked from commit d64fd4bb5b)
2021-01-31 18:11:13 +02:00
Miss Islington (bot)
8a833a6f94
bpo-43083: Fix error handling in _sqlite3 (GH-24395)
(cherry picked from commit 9073180db5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-31 08:06:15 -08:00
Miss Islington (bot)
995a6c0150
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)
(cherry picked from commit 42b1806af9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-31 06:20:14 -08:00
Miss Islington (bot)
926ca51be4
bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364)
(cherry picked from commit e603443642)

Co-authored-by: L <3177243+LukeLR@users.noreply.github.com>
2021-01-31 07:21:28 +02:00
Miss Islington (bot)
08867a0bfc
[doc] Document VIRTUAL_ENV environment variable (GH-21970)
(cherry picked from commit 3584d4b64a)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-01-30 02:38:44 -08:00
Miss Islington (bot)
d34be1ed57
Fixing typos in turtle.rst (GH-24376)
Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6baaae589d)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
2021-01-29 14:03:18 -08:00
Miss Islington (bot)
44cd24452a
Fixed typo in turtle.rst (GH-24371)
Found it while translating it to french 🤷

Automerge-Triggered-By: GH:JulienPalard
(cherry picked from commit 6372a4ceba)

Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
2021-01-29 13:38:16 -08:00
Miss Islington (bot)
bf782b2636
bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) (#24374)
(cherry picked from commit 11d75ec807)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-29 13:51:46 -05:00
Miss Islington (bot)
6d87dec581
bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)
Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-28 15:38:19 -08:00
Miss Islington (bot)
e9c6c26aff
bpo-29076: Add fish support to macOS installer (GH-23302) (GH-23937)
(cherry picked from commit 7f162e867c)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-01-28 09:54:03 -05:00
Miss Islington (bot)
895591c1f0
bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure (GH-24333) (GH-24351)
Importing datetime can fail.
(cherry picked from commit eeb701adc0)

Co-authored-by: Hai Shi <shihai1992@gmail.com>

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-01-27 12:08:45 +01:00
Miss Islington (bot)
cb77c5e1dd
bpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c (GH-24345) (GH-24349)
(cherry picked from commit 5327f37034)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-27 11:40:31 +02:00
Miss Islington (bot)
68102fb998
bpo-43008: Make IDLE respect sys.excepthook (GH-24302)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 7a34380ad7)

Co-authored-by: Ken <kenny2minecraft@gmail.com>
2021-01-26 16:24:14 -08:00
Terry Jan Reedy
fd668bc62b
[3.9] bpo-41841: Prepare IDLE NEWS for 3.9.2 (#GH-4343) 2021-01-26 13:59:18 -05:00
Andrey Bienkowski
f8cfe54e5a
[3.9] bpo-42383: pdb: do not fail to restart the target if the current directory changed (GH-23412) (#24322) 2021-01-26 07:57:58 -08:00
Andrey Bienkowski
f2df7958fb
[3.9] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24321) 2021-01-25 13:08:41 -08:00
Miss Islington (bot)
26af2fae18
bpo-43013: Fix old tkinter module names in idlelib (GH-24326)
Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
'tkMessageBox' and remove 'tk'.  Just lowercase 'tkFont' as 'font'
is already used.  Adjust import.
(cherry picked from commit 879986d8a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-25 08:25:39 -05:00
Serhiy Storchaka
3d5434d5cb
[3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)
(cherry picked from commit 6713e869c4)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2021-01-25 11:45:30 +02:00
Miss Islington (bot)
ff06957710
bpo-43013: Update idlelib code to 3.x (GH-24315)
Remove 9 remaining '(object)' occurrences in class headers in idlelib
and 25 '()' occurrences in idlelib.idle_test class headers.
(cherry picked from commit 8dfe15625e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-24 15:36:02 -08:00
Miss Islington (bot)
00e24cdca4
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
(cherry picked from commit f7fa64f0e8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-01-23 08:56:08 -08:00
Miss Islington (bot)
98e1f5c778
bpo-40304: Correct type(name, bases, dict) doc (GH-19553)
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit 644d52818a)

Co-authored-by: Борис Верховский <boris.verk@gmail.com>
2021-01-21 22:09:50 -08:00
cptpcrd
6893523bed
bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172) (GH-24278)
(cherry picked from commit 7dc71c425c)
2021-01-21 11:46:35 +01:00
Miss Islington (bot)
0654c4c4cc
bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)
(cherry picked from commit 3554fa4abe)

Co-authored-by: Zhiming Wang <i@zhimingwang.org>
2021-01-20 01:19:08 -08:00
Miss Islington (bot)
50938b63fb
bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635)
(cherry picked from commit f1ff800db1)

Co-authored-by: Yunlongs <lylgood@foxmail.com>
2021-01-20 01:03:28 -08:00
Miss Islington (bot)
c347cbe694
closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (GH-24247)
(cherry picked from commit 916610ef90)

Co-authored-by: Benjamin Peterson <benjamin@python.org>

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2021-01-18 15:29:31 -06:00
Miss Islington (bot)
a90539f572
bpo-42944 Fix Random.sample when counts is not None (GH-24235) (GH-24243) 2021-01-18 10:36:07 -08:00
Jason R. Coombs
799722cb0d
[3.9] bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (GH-23010) (#24232)
* Add test capturing missed expectation with uname_result._replace.

* bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'.

* Replace hard-coded length with one derived from the definition.

* Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189).

* bpo-42189: Exclude processor parameter when constructing uname_result.

* In _make, rely on __new__ to strip processor.

* Add blurb.

* iter is not necessary here.

* Rely on num_fields in __new__

* Add test for slices on uname

* Add test for copy and pickle.

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

* import pickle

* Fix equality test after pickling.

* Simply rely on __reduce__ for pickling.

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

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2021-01-16 14:45:30 -05:00
Miss Islington (bot)
17c1f0c8cb
bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225) 2021-01-15 10:21:52 -08:00
Miss Islington (bot)
ddc0fa3a1c
Docs: Remove stray semicolon in init.rst (GH-23974)
Removed stray semicolon which was causing the docs to render weirdly (it's the function right under the one [here](https://docs.python.org/3/c-api/init.htmlGH-c._PyInterpreterState_GetEvalFrameFunc)).
(cherry picked from commit 9712358277)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-01-14 08:17:44 -08:00