]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years ago[3.7] bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772... 11783/head
Antoine Pitrou [Thu, 7 Feb 2019 11:34:12 +0000 (11:34 +0000)] 
[3.7] bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772) (GH-11780)

multiprocessing: provide unittests for manager classes and shareable types.
(cherry picked from commit 2848d9d29914948621bce26bf0d9a89f2e19b97b)

Co-authored-by: Giampaolo Rodola <g.rodola@gmail.com>
6 years agoFix url to core-mentorship mailing list (GH-11775)
Miss Islington (bot) [Wed, 6 Feb 2019 20:58:00 +0000 (12:58 -0800)] 
Fix url to core-mentorship mailing list (GH-11775)

(cherry picked from commit e9bc4172d18db9c182d8e04dd7b033097a994c06)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
6 years agobpo-20001: update pathlib landing image (GH-11304)
Inada Naoki [Tue, 5 Feb 2019 10:39:42 +0000 (19:39 +0900)] 
bpo-20001: update pathlib landing image (GH-11304)

(cherry picked from commit cd90f6a3692e0f7ef0a13aae651e19a08d1f9b31)

6 years agobpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
Miss Islington (bot) [Tue, 5 Feb 2019 01:54:59 +0000 (17:54 -0800)] 
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)

(cherry picked from commit 85e102a2b090dd693d0801ae2edb9660cfa0f281)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)
Steve Dower [Mon, 4 Feb 2019 15:20:19 +0000 (07:20 -0800)] 
bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)

After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use.
Make the same changes for macOS to avoid extra platform checks.

6 years agobpo-35692: pathlib no longer raises when checking file and directory existence on...
Miss Islington (bot) [Mon, 4 Feb 2019 07:27:37 +0000 (23:27 -0800)] 
bpo-35692: pathlib no longer raises when checking file and directory existence on drives that are not ready (GH-11746)

(cherry picked from commit 2f6fae6e510dba653391cb510a2aca8322eec03b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-35642: Remove asynciomodule.c from pythoncore.vcxproj (GH-11410)
Miss Islington (bot) [Sun, 3 Feb 2019 00:46:12 +0000 (16:46 -0800)] 
bpo-35642: Remove asynciomodule.c from pythoncore.vcxproj (GH-11410)

This module is built by _asyncio.vcxproj and does not need to be included in pythoncore.
(cherry picked from commit fbf50683b3a2301097d5cd48bc68b530c1e1720f)

Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
6 years agobpo-34691: Compile _contextvars module into main Python library (GH-11741)
Miss Islington (bot) [Sat, 2 Feb 2019 22:54:42 +0000 (14:54 -0800)] 
bpo-34691: Compile _contextvars module into main Python library (GH-11741)

(cherry picked from commit 4c70d9f79c9b371990c8e054ccde53f7ff15946b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-29734: nt._getfinalpathname handle leak (GH-740)
Miss Islington (bot) [Sat, 2 Feb 2019 21:29:07 +0000 (13:29 -0800)] 
bpo-29734: nt._getfinalpathname handle leak (GH-740)

Make sure that failure paths call CloseHandle outside of the function that failed
(cherry picked from commit b82bfac4369c0429e562a834b3752e66c4821eab)

Co-authored-by: Mark Becwar <mark@thebecwar.com>
6 years agobpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
Miss Islington (bot) [Sat, 2 Feb 2019 19:38:16 +0000 (11:38 -0800)] 
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)

https://bugs.python.org/issue32560
(cherry picked from commit cb0904762681031edc50f9d7d7ef48cffcf96d9a)

Co-authored-by: Shiva Saxena <shivasaxena911@gmail.com>
6 years agobpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character...
Miss Islington (bot) [Sat, 2 Feb 2019 17:36:48 +0000 (09:36 -0800)] 
bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517)

Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm).
(cherry picked from commit 2de576e16d42ce43698d384d0dd46ba6cf165424)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
6 years agobpo-33316: PyThread_release_lock always fails (GH-6541)
Miss Islington (bot) [Sat, 2 Feb 2019 16:45:50 +0000 (08:45 -0800)] 
bpo-33316: PyThread_release_lock always fails (GH-6541)

Use correct interpretation of return value from APIs.
(cherry picked from commit 05e922136a3286893bd489a8f2ecfa0dba4da368)

Co-authored-by: native-api <ivan_pozdeev@mail.ru>
6 years agobpo-26256: Document algorithm speed for the Decimal module. (GH-4808) (#11736)
Miss Islington (bot) [Sat, 2 Feb 2019 14:46:09 +0000 (06:46 -0800)] 
bpo-26256: Document algorithm speed for the Decimal module. (GH-4808) (#11736)

(cherry picked from commit 00e9c55d27aff3e445ab4c8629cf4d59f46ff945)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agoConsistently move the misses update to just before the user function call (GH-11715...
Miss Islington (bot) [Thu, 31 Jan 2019 23:35:00 +0000 (15:35 -0800)] 
Consistently move the misses update to just before the user function call (GH-11715) (GH-11716)

6 years agodoc: http: Fix enum name for status code 416 (GH-11689)
Miss Islington (bot) [Thu, 31 Jan 2019 10:15:29 +0000 (02:15 -0800)] 
doc: http: Fix enum name for status code 416 (GH-11689)

(cherry picked from commit d97daebfa69b4df95231bcae4123eacad6a48d14)

Co-authored-by: Phil Jones <philip.graham.jones@googlemail.com>
6 years agobpo-35865: doc: Remove wrong note and directives (GH-11711)
Inada Naoki [Thu, 31 Jan 2019 08:54:55 +0000 (17:54 +0900)] 
bpo-35865: doc: Remove wrong note and directives (GH-11711)

*  note about random dict order
* Remove wrong versionchanged directive

6 years agobpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)
Miss Islington (bot) [Wed, 30 Jan 2019 22:14:35 +0000 (14:14 -0800)] 
bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)

(cherry picked from commit a1f9a3332bd4767e47013ea787022f06b6dbcbbd)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoDocument differences between random.choices() and random.choice(). (GH-11703) (GH...
Miss Islington (bot) [Wed, 30 Jan 2019 21:49:23 +0000 (13:49 -0800)] 
Document differences between random.choices() and random.choice(). (GH-11703) (GH-11706)

6 years agobpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation...
Miss Islington (bot) [Wed, 30 Jan 2019 17:41:51 +0000 (09:41 -0800)] 
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)

(cherry picked from commit cf991e653ac550a9f011631447c61ce583404a57)

Co-authored-by: João Matos <jcrmatos@gmail.com>
6 years agobpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523)...
Miss Islington (bot) [Wed, 30 Jan 2019 17:36:51 +0000 (09:36 -0800)] 
bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523) (GH-11669)

https://bugs.python.org/issue17467
(cherry picked from commit 1fd06f1eca80dcbf3a916133919482a8327f3da4)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years agobpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11701)
Miss Islington (bot) [Wed, 30 Jan 2019 15:56:51 +0000 (07:56 -0800)] 
bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11701)

(cherry picked from commit 598e15d4feaee3849a91d92c9ca51f17baafe19c)

Co-authored-by: jdemeyer <J.Demeyer@UGent.be>
6 years agobpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694)
Miss Islington (bot) [Tue, 29 Jan 2019 21:11:36 +0000 (13:11 -0800)] 
bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694)

This fixes the ctypes.test.test_structures.StructureTestCase test.

https://bugs.python.org/issue35847
(cherry picked from commit 742d768656512a469ce9571b1cbd777def7bc5ea)

Co-authored-by: Andreas Schwab <schwab@linux-m68k.org>
6 years agoFix typo: class declaration (GH-11678)
Miss Islington (bot) [Sun, 27 Jan 2019 22:25:49 +0000 (14:25 -0800)] 
Fix typo: class declaration (GH-11678)

(cherry picked from commit dfc8bb987d1fcba9225a19542c0fb9132b846b5b)

Co-authored-by: nu_no <nuno.an@gmail.com>
6 years agoClarify U-mode deprecation in open() (GH-11646)
Miss Islington (bot) [Sun, 27 Jan 2019 16:27:58 +0000 (08:27 -0800)] 
Clarify U-mode deprecation in open() (GH-11646)

The previous wording could be read as saying that universal
newlines mode itself was deprecated, when it's only the 'U'
character in the mode field that should be avoided.

The update also moves the description of the 'U' mode character
out of the mode table, as the longer explanation was overly
intrusive as a table entry and overshadowed the actually useful
mode characters.
(cherry picked from commit 3171df34141c1f26ec16dccb4357184c0cf6c58f)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-35780: Fix errors in lru_cache() C code (GH-11623) (GH-11682)
Miss Islington (bot) [Sat, 26 Jan 2019 08:23:40 +0000 (00:23 -0800)] 
bpo-35780: Fix errors in lru_cache() C code (GH-11623) (GH-11682)

6 years agobpo-35811: Avoid propagating venv settings when launching via py.exe (GH-11677)
Miss Islington (bot) [Fri, 25 Jan 2019 23:31:18 +0000 (15:31 -0800)] 
bpo-35811: Avoid propagating venv settings when launching via py.exe (GH-11677)

(cherry picked from commit adad9e68013aac166c84ffe4e23f3a5464f41840)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-35797: Fix default executable used by the multiprocessing module (GH-11676)
Miss Islington (bot) [Fri, 25 Jan 2019 23:14:41 +0000 (15:14 -0800)] 
bpo-35797: Fix default executable used by the multiprocessing module (GH-11676)

(cherry picked from commit 4e02f8f8b4baab63f927cfd87b401200ba2969e9)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-34134: Advise to use imap or imap_unordered when handling long iterables. (gh...
Miss Islington (bot) [Fri, 25 Jan 2019 12:08:14 +0000 (04:08 -0800)] 
bpo-34134: Advise to use imap or imap_unordered when handling long iterables. (gh-8324) (gh-11673)

(cherry picked from commit 3bab40db96efda2e127ef84e6501fda0cdc4f5b8)

Co-authored-by: Windson yang <wiwindson@outlook.com>
6 years agobpo-35767: Fix unittest.loader to allow partials as test_functions (GH-11600) (#11662) 11672/head
Miss Islington (bot) [Thu, 24 Jan 2019 17:30:59 +0000 (09:30 -0800)] 
bpo-35767: Fix unittest.loader to allow partials as test_functions (GH-11600) (#11662)

(cherry picked from commit fd628cf5adaeee73eab579393cdff71c8f70cdf2)

Co-authored-by: Jason Fried <me@jasonfried.info>
6 years agobpo-35781: Changed references to deprecated 'warn' method in logging documentation...
Miss Islington (bot) [Wed, 23 Jan 2019 07:43:37 +0000 (23:43 -0800)] 
bpo-35781: Changed references to deprecated 'warn' method in logging documentation in favour of 'warning' (GH-11654) (GH-11657)

(cherry picked from commit cda73a5af2ff064ca82140342b3158851d43868f)

Co-authored-by: yuji38kwmt <yuji38kwmt@yahoo.co.jp>
6 years agobpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter...
Miss Islington (bot) [Wed, 23 Jan 2019 07:21:32 +0000 (23:21 -0800)] 
bpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter (GH-11525) (GH-11655)

(cherry picked from commit f0c743604fc841d35a48822b936ef2e5919e43c1)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
6 years agobpo-35683: Improve Azure Pipelines steps (GH-11493)
Steve Dower [Tue, 22 Jan 2019 20:31:30 +0000 (12:31 -0800)] 
bpo-35683: Improve Azure Pipelines steps (GH-11493)

6 years agobpo-35720: Fixing a memory leak in pymain_parse_cmdline_impl() (GH-11528)
Miss Islington (bot) [Tue, 22 Jan 2019 16:42:13 +0000 (08:42 -0800)] 
bpo-35720: Fixing a memory leak in pymain_parse_cmdline_impl() (GH-11528)

When the loop in the pymain_read_conf function in this same file
calls pymain_init_cmdline_argv() a 2nd time, the pymain->command
buffer of wchar_t is overriden and the previously allocated memory
is never freed.
(cherry picked from commit 35ca1820e19f81f69073f294503cdcd708fe490f)

Co-authored-by: Lucas Cimon <lucas.cimon@gmail.com>
6 years agobpo-35772: Fix test_tarfile on ppc64 (GH-11606)
Miss Islington (bot) [Mon, 21 Jan 2019 09:44:30 +0000 (01:44 -0800)] 
bpo-35772: Fix test_tarfile on ppc64 (GH-11606)

Fix sparse file tests of test_tarfile on ppc64le with the tmpfs
filesystem.

Fix the function testing if the filesystem supports sparse files:
create a file which contains data and "holes", instead of creating a
file which contains no data.

tmpfs effective block size is a page size (tmpfs lives in the page
cache). RHEL uses 64 KiB pages on aarch64, ppc64 and ppc64le, only
s390x and x86_64 use 4 KiB pages, whereas the test punch holes of
4 KiB.

test.pythoninfo: Add resource.getpagesize().
(cherry picked from commit b2385458ceddaf3d0d91456923716259d3915023)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-20239: Allow repeated deletion of unittest.mock.Mock attributes (GH-11629)
Miss Islington (bot) [Mon, 21 Jan 2019 09:37:54 +0000 (01:37 -0800)] 
bpo-20239: Allow repeated deletion of unittest.mock.Mock attributes (GH-11629)

* Allow repeated deletion of unittest.mock.Mock attributes

* fixup! Allow repeated deletion of unittest.mock.Mock attributes

* fixup! fixup! Allow repeated deletion of unittest.mock.Mock attributes
(cherry picked from commit 222d303ade8aadf0adcae5190fac603bdcafe3f0)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495) 11628/head
Miss Islington (bot) [Sun, 20 Jan 2019 19:06:08 +0000 (11:06 -0800)] 
bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495)

(cherry picked from commit b2dc4a3313c236fedbd6df664722cd47f3d91a72)

Co-authored-by: Marc Schlaich <marc.schlaich@googlemail.com>
6 years agobpo-35770: Fix off-by-1 error. (GH-11618)
Miss Islington (bot) [Fri, 18 Jan 2019 22:23:51 +0000 (14:23 -0800)] 
bpo-35770: Fix off-by-1 error. (GH-11618)

(cherry picked from commit 2cf1ddaff4c869780d9e796b21ef3e506f8ad321)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35770: IDLE macosx deletes Options => Configure IDLE. (GH-11614)
Miss Islington (bot) [Fri, 18 Jan 2019 19:16:01 +0000 (11:16 -0800)] 
bpo-35770: IDLE macosx deletes Options => Configure IDLE. (GH-11614)

It previously deleted Window => Zoom Height by mistake.
(Zoom Height is now on the Options menu).  On Mac, the settings
dialog is accessed via Preferences on the IDLE menu.
(cherry picked from commit 39ed289a3511d2e9bf0950a9d5dc53c8194f61b9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35045: Accept TLSv1 default in min max test (GH-11510)
Miss Islington (bot) [Fri, 18 Jan 2019 15:29:08 +0000 (07:29 -0800)] 
bpo-35045: Accept TLSv1 default in min max test (GH-11510)

Make ssl tests less strict and also accept TLSv1 as system default. The
changes unbreaks test_min_max_version on Fedora 29.

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-35283: Add pending deprecation warning for Thread.isAlive (GH-11604)
Dong-hee Na [Fri, 18 Jan 2019 14:09:43 +0000 (23:09 +0900)] 
bpo-35283: Add pending deprecation warning for Thread.isAlive (GH-11604)

Add a pending deprecated warning for the threading.Thread.isAlive() method.

6 years agobpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
Miss Islington (bot) [Fri, 18 Jan 2019 07:24:09 +0000 (23:24 -0800)] 
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)

'Untitled' violates the PEP 8 standard for .py files
(cherry picked from commit a902239f22c322d8988c514dd1c724aade3e4ef3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35730: IDLE - test squeezer reload() by checking load_font() (GH-11585)
Miss Islington (bot) [Fri, 18 Jan 2019 02:44:09 +0000 (18:44 -0800)] 
bpo-35730: IDLE - test squeezer reload() by checking load_font() (GH-11585)

(cherry picked from commit e55cf024cae203f63b4f78f1b21c1375fe424441)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-34162: Update idlelib/NEWS.txt to 2019 Jan 17 (GH-11597) (GH-11598)
Miss Islington (bot) [Fri, 18 Jan 2019 00:49:04 +0000 (16:49 -0800)] 
bpo-34162: Update idlelib/NEWS.txt to 2019 Jan 17 (GH-11597) (GH-11598)

(cherry picked from commit 56c16057c639acc2fb89c6b783425320f23a5f6c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-23156: Remove obsolete tix install directions (GH-11595)
Miss Islington (bot) [Fri, 18 Jan 2019 00:07:10 +0000 (16:07 -0800)] 
bpo-23156: Remove obsolete tix install directions (GH-11595)

Tix was deprecated in 3.6 and the doc is wrong.  New users should use ttk.
(cherry picked from commit cf27c06229eb4b8280bb5f2b93a57e33163411f4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282)
Miss Islington (bot) [Thu, 17 Jan 2019 14:32:59 +0000 (06:32 -0800)] 
bpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282)

(cherry picked from commit 17f05bbc78dbcd1db308266c31370da9ec1b1d47)

Co-authored-by: Timo Furrer <tuxtimo@gmail.com>
6 years agoFixes typo in asyncio.queue doc (GH-11581)
Miss Islington (bot) [Thu, 17 Jan 2019 11:58:37 +0000 (03:58 -0800)] 
Fixes typo in asyncio.queue doc (GH-11581)

Typo fix for method doc, I'm pretty sure coro is meant, because there's no consumer threads for thread-unsafe queue.

Most probably this piece of doc was copied from `queue.Queue`

There's not BPO bug for this, afaik.
(cherry picked from commit 97e12996f31f6ada4173e2cd4b6807c98ba379a4)

Co-authored-by: Slam <3lnc.slam@gmail.com>
6 years agobpo-35486: Note Py3.6 import system API requirement change (GH-11540)
Miss Islington (bot) [Thu, 17 Jan 2019 10:48:15 +0000 (02:48 -0800)] 
bpo-35486: Note Py3.6 import system API requirement change (GH-11540)

While the introduction of ModuleNotFoundError was fully backwards
compatible on the import API consumer side, folks providing alternative
implementations of `__import__` need to make an update to be
forward compatible with clients that start relying on the new subclass.

https://bugs.python.org/issue35486
(cherry picked from commit cee29b46a19116261b083dc803217aa754c7df40)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-35746: Fix segfault in ssl's cert parser (GH-11569)
Miss Islington (bot) [Tue, 15 Jan 2019 23:03:36 +0000 (15:03 -0800)] 
bpo-35746: Fix segfault in ssl's cert parser (GH-11569)

Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL
distribution points with empty DP or URI correctly. A malicious or buggy
certificate can result into segfault.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue35746
(cherry picked from commit a37f52436f9aa4b9292878b72f3ff1480e2606c3)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566) 11568/head
Miss Islington (bot) [Tue, 15 Jan 2019 13:17:05 +0000 (05:17 -0800)] 
bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566)

asyncio.ProactorEventLoop now catchs and logs send errors when the
self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs
and logs OSError exceptions, as done by
BaseSelectorEventLoop._write_to_self().
(cherry picked from commit c9f872b0bdce5888f1879fa74e098bf4a05430c5)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years ago[3.7] bpo-34323: Enhance IocpProactor.close() log (GH-11565)
Victor Stinner [Tue, 15 Jan 2019 12:05:28 +0000 (13:05 +0100)] 
[3.7] bpo-34323: Enhance IocpProactor.close() log (GH-11565)

* IocpProactor: prevent modification if closed (GH-11494)

* _wait_for_handle(), _register() and _unregister() methods of
  IocpProactor now raise an exception if closed
* Add "closed" to IocpProactor.__repr__()
* Simplify IocpProactor.close()

(cherry picked from commit 9b07681c09182d4b9d23cd52566a4992b8afecbb)

* bpo-34323: Enhance IocpProactor.close() log (GH-11555)

IocpProactor.close() now uses time to decide when to log: wait 1
second before the first log, then log every second. Log also the
number of seconds since close() was called.

(cherry picked from commit b1e45739d832e1e402a563c6727defda92e193b7)

* bpo-34323: Enhance IocpProactor.close() log again (GH-11563)

Add repr(self) to the log to display the number of pending overlapped
in the log.

(cherry picked from commit b91140fdb17472d03a7b7971f143c08a40fde923)

6 years agobpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
Miss Islington (bot) [Tue, 15 Jan 2019 11:45:57 +0000 (03:45 -0800)] 
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)

Handle the case of an empty module name in PYTHONBREAKPOINT.

Fixes a regression introduced in bpo-34756.
(cherry picked from commit 3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
Miss Islington (bot) [Tue, 15 Jan 2019 10:49:16 +0000 (02:49 -0800)] 
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)

Show correct number of repeats.
(cherry picked from commit 06f8b57212b2e2cd2e63af36cecdfa3075b324a2)

Co-authored-by: Henry Chen <tahafut@gmail.com>
6 years agobpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts...
Miss Islington (bot) [Tue, 15 Jan 2019 09:01:15 +0000 (01:01 -0800)] 
bpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts. (GH-11238)

(cherry picked from commit 32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-34756: Silence only ImportError and AttributeError in sys.breakpointhook(). ...
Miss Islington (bot) [Mon, 14 Jan 2019 11:17:06 +0000 (03:17 -0800)] 
bpo-34756: Silence only ImportError and AttributeError in sys.breakpointhook(). (GH-9457)

(cherry picked from commit 6fe9c446f8302553952f63fc6d96be4dfa48ceba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692)
Miss Islington (bot) [Mon, 14 Jan 2019 10:41:33 +0000 (02:41 -0800)] 
bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692)

Previously, calling the strftime() method on a datetime object with a
trailing '%' in the format string would result in an exception. However,
this only occured when the datetime C module was being used; the python
implementation did not match this behavior. Datetime is now PEP-399
compliant, and will not throw an exception on a trailing '%'.
(cherry picked from commit 454b3d4ea246e8751534e105548d141ed7b0b032)

Co-authored-by: MichaelSaah <mike.saah@gmail.com>
6 years agobpo-35730: Disable IDLE test_reload assertion. (GH-11543)
Miss Islington (bot) [Sun, 13 Jan 2019 18:05:50 +0000 (10:05 -0800)] 
bpo-35730: Disable IDLE test_reload assertion. (GH-11543)

IDLE's test_squeezer.SqueezerTest.test_reload, added for issue 35196,
failed on both Gentoo buildbots.
(cherry picked from commit 5bb146aaea1484bcc117ab6cb38dda39ceb5df0f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35196: Optimize Squeezer's write() interception (GH-10454)
Miss Islington (bot) [Sun, 13 Jan 2019 16:43:08 +0000 (08:43 -0800)] 
bpo-35196: Optimize Squeezer's write() interception (GH-10454)

The new functionality of Squeezer.reload() is also tested, along with some general
re-working of the tests in test_squeezer.py.
(cherry picked from commit 39a33e99270848d34628cdbb1fdb727f9ede502a)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-34512: Document platform-specific strftime() behavior for non-ASCII format string...
Miss Islington (bot) [Sat, 12 Jan 2019 17:27:30 +0000 (09:27 -0800)] 
bpo-34512: Document platform-specific strftime() behavior for non-ASCII format strings (GH-8948)

(cherry picked from commit 1cffd0eed313011c0c2bb071c8affeb4a7ed05c7)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
6 years agobpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat...
Miss Islington (bot) [Sat, 12 Jan 2019 08:52:55 +0000 (00:52 -0800)] 
bpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat(). (GH-11276)

Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat()
no longer read memory past the limit if precision is specified.
(cherry picked from commit d586ccb04f79863c819b212ec5b9d873964078e4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)
Miss Islington (bot) [Sat, 12 Jan 2019 07:40:09 +0000 (23:40 -0800)] 
bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)

Add also tests for PyUnicode_FromFormat() and PyBytes_FromFormat()
with empty result.
(cherry picked from commit 44cc4822bb3799858201e61294c5863f93ec12e2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32710: Fix _overlapped.Overlapped memory leaks (GH-11489)
Miss Islington (bot) [Fri, 11 Jan 2019 14:01:50 +0000 (06:01 -0800)] 
bpo-32710: Fix _overlapped.Overlapped memory leaks (GH-11489)

Fix memory leaks in asyncio ProactorEventLoop on overlapped operation
failures.

Changes:

* Implement the tp_traverse slot in the _overlapped.Overlapped type
  to help to break reference cycles and identify referrers in the
  garbage collector.
* Always clear overlapped on failure: not only set type to
  TYPE_NOT_STARTED, but release also resources.
(cherry picked from commit 5485085b324a45307c1ff4ec7d85b5998d7d5e0d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35716: Update time.CLOCK_MONOTONIC_RAW doc (GH-11517)
Miss Islington (bot) [Fri, 11 Jan 2019 13:32:11 +0000 (05:32 -0800)] 
bpo-35716: Update time.CLOCK_MONOTONIC_RAW doc (GH-11517)

Document that the time.CLOCK_MONOTONIC_RAW constant
is now also available on macOS 10.12.

Co-authored-by: Ricardo Fraile <rfraile@rfraile.eu>
(cherry picked from commit fd7d539be3ce1cc098a4f104b7a7816ca00add16)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
6 years agobpo-32146: Add documentation about frozen executables on Unix (GH-5850)
Miss Islington (bot) [Thu, 10 Jan 2019 18:13:21 +0000 (10:13 -0800)] 
bpo-32146: Add documentation about frozen executables on Unix (GH-5850)

(cherry picked from commit bab4bbb4c9cd5d25ede21a1b8c99d56e3b8dae9d)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
6 years agobpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH...
Miss Islington (bot) [Thu, 10 Jan 2019 16:36:50 +0000 (08:36 -0800)] 
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)

(cherry picked from commit 89c4f90df97f6039325e354167e8f507bf199fd9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-24746: Fix doctest failures when running the testsuite with -R (GH-11501)
Miss Islington (bot) [Thu, 10 Jan 2019 16:02:26 +0000 (08:02 -0800)] 
bpo-24746: Fix doctest failures when running the testsuite with -R (GH-11501)

(cherry picked from commit c5dc60ea858b8ccf78e8d26db81c307a8f9b2314)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-34855: Fix EXTERNALS_DIR build variable for Windows (GH-11177) 11502/head
Miss Islington (bot) [Thu, 10 Jan 2019 00:46:40 +0000 (16:46 -0800)] 
bpo-34855: Fix EXTERNALS_DIR build variable for Windows (GH-11177)

(cherry picked from commit 6aedfa6b9ac324587f64133c23757a66a8f355bb)

Co-authored-by: antektek <45912913+antektek@users.noreply.github.com>
6 years agoUpdate bugs.rst (GH-11485)
Miss Islington (bot) [Wed, 9 Jan 2019 23:00:12 +0000 (15:00 -0800)] 
Update bugs.rst (GH-11485)

(cherry picked from commit 91c6158dbc5d70fcd91993b4e62c7bae926c2ea2)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agoAdd example to the documentation for calling unittest.mock.patch with create=True...
Miss Islington (bot) [Wed, 9 Jan 2019 21:50:02 +0000 (13:50 -0800)] 
Add example to the documentation for calling unittest.mock.patch with create=True (GH-11056)

(cherry picked from commit d6acf17c05315cd34124d678057d9543adbad404)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35641: Move IDLE blurb to IDLE directory (GH-11479)
Miss Islington (bot) [Wed, 9 Jan 2019 15:49:38 +0000 (07:49 -0800)] 
bpo-35641: Move IDLE blurb to IDLE directory (GH-11479)

(cherry picked from commit ee6559436797032b816dfb8c6376c9a451014962)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639)
Miss Islington (bot) [Wed, 9 Jan 2019 13:56:40 +0000 (05:56 -0800)] 
bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639)

(cherry picked from commit cbb16459934eaf29c7c7d362939cd05550b2f21f)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
6 years agobpo-32710: Fix leak in Overlapped_WSASend() (GH-11469)
Miss Islington (bot) [Tue, 8 Jan 2019 13:40:50 +0000 (05:40 -0800)] 
bpo-32710: Fix leak in Overlapped_WSASend() (GH-11469)

Fix a memory leak in asyncio in the ProactorEventLoop when ReadFile()
or WSASend() overlapped operation fail immediately: release the
internal buffer.
(cherry picked from commit a234e148394c2c7419372ab65b773d53a57f3625)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport restrictio...
Miss Islington (bot) [Tue, 8 Jan 2019 10:56:14 +0000 (02:56 -0800)] 
bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport restrictions (GH-11465)

Also adds extra steps to the CI build for Windows on Azure Pipelines to validate that the various layouts at least execute.
(cherry picked from commit 872bd2b57ce8e4ea7a54acb3934222c0e4e7276b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849) 11466/head
Miss Islington (bot) [Tue, 8 Jan 2019 03:04:14 +0000 (19:04 -0800)] 
bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)

(cherry picked from commit e61cc481e02b758c8d8289163102c236d0658a55)

Co-authored-by: chrullrich <chris@chrullrich.net>
6 years agobpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)
Miss Islington (bot) [Tue, 8 Jan 2019 02:15:25 +0000 (18:15 -0800)] 
bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)

bpo-32622, bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don't
attempt to set the result of an internal future if it's already done.

Fix asyncio _ProactorBasePipeTransport._force_close(): don't set the
result of _empty_waiter if it's already done.
(cherry picked from commit 80fda712c83f5dd9560d42bf2aa65a72b18b7759)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35560: Remove assertion from format(float, "n") (GH-11288)
Miss Islington (bot) [Mon, 7 Jan 2019 15:26:20 +0000 (07:26 -0800)] 
bpo-35560: Remove assertion from format(float, "n") (GH-11288)

Fix an assertion error in format() in debug build for floating point
formatting with "n" format, zero padding and small width. Release build is
not impacted. Patch by Karthikeyan Singaravelan.
(cherry picked from commit 3f7983a25a3d19779283c707fbdd5bc91b1587ef)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agotest_threading_local: add missing "import sys" (GH-8049)
Miss Islington (bot) [Sun, 6 Jan 2019 22:32:52 +0000 (14:32 -0800)] 
test_threading_local: add missing "import sys" (GH-8049)

(cherry picked from commit a0bb51e44cd43a7d2836a96a3804162203e44514)

Co-authored-by: cclauss <cclauss@me.com>
6 years agobpo-35660: Fix imports in idlelib.window (GH-11434)
Miss Islington (bot) [Sun, 6 Jan 2019 21:13:30 +0000 (13:13 -0800)] 
bpo-35660: Fix imports in idlelib.window (GH-11434)

* bpo-35660: IDLE: Remove * import from window.py

* sys was being imported through the *, so also added an import sys.

* Update 2019-01-04-19-14-29.bpo-35660.hMxI7N.rst

Anyone who wants details can check the issue, where I added the point about the sys import bug.
(cherry picked from commit 11303dd6035a7d7f78025ce5a3e3b9bdf7380c9a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-35631: Improve typing docs wrt abstract/concrete collection types (GH-11396)
Miss Islington (bot) [Fri, 4 Jan 2019 14:20:19 +0000 (06:20 -0800)] 
bpo-35631: Improve typing docs wrt abstract/concrete collection types (GH-11396)

https://bugs.python.org/issue35631
(cherry picked from commit 31ec52a9afedd77e36a3ddc31c4c45664b8ac410)

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
6 years agobpo-31450: Remove documentation mentioning that subprocess's child_traceback is avail...
Miss Islington (bot) [Thu, 3 Jan 2019 20:01:44 +0000 (12:01 -0800)] 
bpo-31450: Remove documentation mentioning that subprocess's child_traceback is available with the parent process (GH-11422)

(cherry picked from commit 47a2fced84605a32b79aa3ebc543533ad1a976a1)

Co-authored-by: Harmandeep Singh <harmandeep3091@gmail.com>
6 years agobpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
Miss Islington (bot) [Thu, 3 Jan 2019 09:44:47 +0000 (01:44 -0800)] 
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)

(cherry picked from commit ab54b9a130c88f708077c2ef6c4963b632c132b3)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
6 years agobpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
Miss Islington (bot) [Thu, 3 Jan 2019 03:22:10 +0000 (19:22 -0800)] 
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)

(cherry picked from commit aff0adabf3ace62073076f4ce875ff568f2d3180)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)
Miss Islington (bot) [Wed, 2 Jan 2019 21:11:00 +0000 (13:11 -0800)] 
bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)

(cherry picked from commit e9a044ec16989bd4b39763c0588c17200a925350)

Co-authored-by: Harmandeep Singh <harmandeep3091@gmail.com>
6 years agocloses bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/clean...
Miss Islington (bot) [Wed, 2 Jan 2019 19:58:58 +0000 (11:58 -0800)] 
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)

(cherry picked from commit d466c43e55cd32af84e353f0e9a48b09b7534f61)

Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
6 years ago[3.7] Bump copyright years to 2019. (GH-11406)
Benjamin Peterson [Wed, 2 Jan 2019 16:15:53 +0000 (08:15 -0800)] 
[3.7] Bump copyright years to 2019. (GH-11406)

(cherry picked from commit 9a69ae8a78785105ded02b083b2e5cd2dd939307)

6 years agocloses bpo-35623: Fix integer overflow when sorting large lists (GH-11380)
Miss Islington (bot) [Wed, 2 Jan 2019 02:25:23 +0000 (18:25 -0800)] 
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)

There is already a `Py_ssize_t i` defined at function scope that is used
for similar loops. By removing the local `int i` declaration that `i` is
used, which has the appropriate type.
(cherry picked from commit f8b534477a2a51d85ea1663530f685f805f2b247)

Co-authored-by: sth <sth.dev@tejp.de>
6 years agocloses bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394)
Miss Islington (bot) [Wed, 2 Jan 2019 02:03:53 +0000 (18:03 -0800)] 
closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394)

(cherry picked from commit 7e3fb40b923cb09ecc67816d3191197868593737)

Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com>
6 years agobpo-35598: IDLE - Globalize some config_key objects (GH-11392)
Miss Islington (bot) [Mon, 31 Dec 2018 20:19:53 +0000 (12:19 -0800)] 
bpo-35598: IDLE - Globalize some config_key objects (GH-11392)

Move translate_key() and constant tuples to module level.
Inline the remnant one-line function.
(cherry picked from commit b4ea8bb080f63ef27682f3f9bbaa4d12a83030b1)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.7] bpo-35214: Annotate posix calls for clang MSan. (GH-11389) (GH-11391)
Gregory P. Smith [Mon, 31 Dec 2018 06:14:33 +0000 (22:14 -0800)] 
[3.7] bpo-35214: Annotate posix calls for clang MSan. (GH-11389) (GH-11391)

It doesn't know the details of a few less common libc functions..

(cherry picked from commit 1d300ce1d8238136595c8fea76266a4755cd73a2)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
6 years agoFix typo in test module usage message (GH-11374)
Miss Islington (bot) [Mon, 31 Dec 2018 05:59:08 +0000 (21:59 -0800)] 
Fix typo in test module usage message (GH-11374)

A minor typo in the output of `python -m test -h`.
A space was missing in between two words.
howmuch -> how much
(cherry picked from commit 7108aab49c2b6d6d81766c354f9a809278e03d4c)

Co-authored-by: sth <sth.dev@tejp.de>
6 years agobpo-35214: Skip test_io tests that'd cause a huge malloc under msan (GH-11385)
Miss Islington (bot) [Mon, 31 Dec 2018 04:39:28 +0000 (20:39 -0800)] 
bpo-35214: Skip test_io tests that'd cause a huge malloc under msan (GH-11385)

* skip test_constructor under msan.

* fix the others as well.

* reuse existing related news entry.

* typo fix
(cherry picked from commit e5796c42c687e1454e84dcc50e6f67db48ff69a0)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agoFix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
Miss Islington (bot) [Mon, 31 Dec 2018 04:34:03 +0000 (20:34 -0800)] 
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)

(cherry picked from commit d6f45b23a59de5782ba38d3c698da9c08aaca11b)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-35550: Fix incorrect Solaris define guards (GH-11275)
Miss Islington (bot) [Mon, 31 Dec 2018 02:39:00 +0000 (18:39 -0800)] 
bpo-35550: Fix incorrect Solaris define guards (GH-11275)

Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_systemGH-Solaris

https://bugs.python.org/issue35550
(cherry picked from commit 6f9bc72c79c3262e5d0f2c0e96b016477399cfb1)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
6 years agoCleanup test_faulthandler sanitizer skip logic. (GH-11381)
Miss Islington (bot) [Mon, 31 Dec 2018 02:28:11 +0000 (18:28 -0800)] 
Cleanup test_faulthandler sanitizer skip logic. (GH-11381)

Also skip the same tests when using the undefined behavior sanitizer
as they much with the output.

Updates a regex in another test to use multi-line mode so that the ubsan
buildbot should pass again rather than also adding a skip to that one.
(cherry picked from commit 30e023256aa1b00d4c783553752fc6f2cc0b9b27)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-28503: Use crypt_r() when available instead of crypt() (GH-11373) (GH-11376)
Miss Islington (bot) [Mon, 31 Dec 2018 01:59:52 +0000 (17:59 -0800)] 
bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373) (GH-11376)

Use crypt_r() when available instead of crypt() in the crypt module.

As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.
(cherry picked from commit 387512c7ecde6446f2e29408af2e16b9fc043807)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
6 years agobpo-35214: MSan workarounds for socket, time, and test_faulthandler. (GH-11375) ...
Miss Islington (bot) [Mon, 31 Dec 2018 01:59:19 +0000 (17:59 -0800)] 
bpo-35214: MSan workarounds for socket, time, and test_faulthandler. (GH-11375) (GH-11378)

Add Clang Memory Sanitizer build instrumentation to work around
false positives from the socket and time modules as well as skipping
a couple test_faulthandler tests.
(cherry picked from commit b474e6774d60fa67d5373e361a0ed53c18b24f53)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agoFix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() (GH-11369)
Miss Islington (bot) [Sun, 30 Dec 2018 22:07:05 +0000 (14:07 -0800)] 
Fix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() (GH-11369)

`set_child_watcher()` *sets* the watcher.
(cherry picked from commit 1b29c03c95dbffa05f2bac0f8f1a36b21606a504)

Co-authored-by: sth <sth.dev@tejp.de>
6 years agobpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)
Miss Islington (bot) [Sun, 30 Dec 2018 20:30:09 +0000 (12:30 -0800)] 
bpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)

(cherry picked from commit 4bd79c38efe3cc0a3c724605cf9474e2d1b6b6e2)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-35598: IDLE: Increase test coverage for config_key.py (GH-11360)
Miss Islington (bot) [Sun, 30 Dec 2018 04:39:27 +0000 (20:39 -0800)] 
bpo-35598: IDLE: Increase test coverage for config_key.py (GH-11360)

(cherry picked from commit b0a6196ffd58ff91462191f426706897dc920eee)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendf...
Miss Islington (bot) [Sat, 29 Dec 2018 19:38:24 +0000 (11:38 -0800)] 
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendfileTests (GH-11338)

There is a race condition in SelectorEventLoopUnixSockSendfileTests that causes the prepare() method return a non connected server protocol, making the cleanup() method skips the correct handling of the transport. This commit makes prepare() always return a connected server protocol that can always be cleaned up correctly.
(cherry picked from commit d51324a2f5d172665f8824b25456c9822797fc84)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoMake sure file object is close if socket.create_connection fails (GH-11334)
Miss Islington (bot) [Sat, 29 Dec 2018 02:12:39 +0000 (18:12 -0800)] 
Make sure file object is close if socket.create_connection fails (GH-11334)

The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
(cherry picked from commit 1f511e1af060e98fb789319a96076c06e7f98135)

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