]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)
Miss Islington (bot) [Tue, 19 Feb 2019 05:30:53 +0000 (21:30 -0800)] 
bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)

(cherry picked from commit ee0f927bd8dba805a04963dbec1ad49fe830b842)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-34572: change _pickle unpickling to use import rather than retrieving from sys...
Miss Islington (bot) [Mon, 18 Feb 2019 15:52:32 +0000 (07:52 -0800)] 
bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) (GH-11921)

Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
(cherry picked from commit 4371c0a9c0848f7a0947d43f26f234842b41efdf)

Co-authored-by: tjb900 <ozburgess@gmail.com>
6 years agobpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)
Miss Islington (bot) [Mon, 18 Feb 2019 13:48:23 +0000 (05:48 -0800)] 
bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)

Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases.

Also add a missing index in re.rst.
(cherry picked from commit 4a7f44a2ed49ff1e87db062e7177a56c6e4bbdb0)

Co-authored-by: animalize <animalize@users.noreply.github.com>
6 years agobpo-35942: Improve the error message if __fspath__ returns invalid types in path_conv...
Miss Islington (bot) [Mon, 18 Feb 2019 11:05:52 +0000 (03:05 -0800)] 
bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)

The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6085e18b534fd4161844ff39f77eb4a082)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)
Miss Islington (bot) [Sun, 17 Feb 2019 23:33:04 +0000 (15:33 -0800)] 
bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)

Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional.
(cherry picked from commit ac28147e78c45a6217d348ce90ca5281d91f676f)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)
Miss Islington (bot) [Fri, 15 Feb 2019 21:19:44 +0000 (13:19 -0800)] 
bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)

Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt.

This patch fixes this by pre-compiling the code before passing it to `Pdb.run`.

https://bugs.python.org/issue35931
(cherry picked from commit 4327705cfab3eb09073ec828570bbd8f789e1611)

Co-authored-by: Daniel Hahler <github@thequod.de>
6 years agoImprove readability of random module examples (GH-11884) (GH-11885)
Miss Islington (bot) [Fri, 15 Feb 2019 20:47:04 +0000 (12:47 -0800)] 
Improve readability of random module examples (GH-11884) (GH-11885)

Based on reviewer feedback from Allen Downey, convert ``lambda`` to ``def``.
(cherry picked from commit 9abb725cea7a1687b4d85ab9766ae6256a76a1ef)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agoFix the versionadded info for typing.NoReturn (GH-11880)
Miss Islington (bot) [Fri, 15 Feb 2019 19:31:28 +0000 (11:31 -0800)] 
Fix the versionadded info for typing.NoReturn (GH-11880)

The earliest version that `typing.NoReturn` appears in is [3.5.4rc1](https://docs.python.org/3/whatsnew/changelog.htmlGH-python-3-5-4-release-candidate-1)
(cherry picked from commit 903567e4f54494c2f4148eec0504ad761ac942c2)

Co-authored-by: Jack Wilsdon <jack.wilsdon@gmail.com>
6 years agobpo-36006: Fix versionchanged directive alignment in io module documentation (GH...
Miss Islington (bot) [Fri, 15 Feb 2019 19:09:38 +0000 (11:09 -0800)] 
bpo-36006: Fix versionchanged directive alignment in io module documentation (GH-11881)

https://bugs.python.org/issue36006
(cherry picked from commit 522630a7462f606300f1e6e6818de191d9dc3fdf)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
6 years agobpo-35746: Credit Colin Read and Nicolas Edet (GH-11864)
Victor Stinner [Fri, 15 Feb 2019 12:19:30 +0000 (13:19 +0100)] 
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11864)

Add credit for the cert parser vulnerability. Mention also Cisco
TALOS-2018-0758 identifier.

6 years agobpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported...
Miss Islington (bot) [Fri, 15 Feb 2019 05:23:07 +0000 (21:23 -0800)] 
bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported (GH-11853)

https://bugs.python.org/issue35994
(cherry picked from commit 3e028b2d40370dc986b6f3146a7ae927bc119f97)

Co-authored-by: pxinwr <peixing.xin@windriver.com>
6 years agobpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH...
Miss Islington (bot) [Thu, 14 Feb 2019 23:45:20 +0000 (15:45 -0800)] 
bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264)

Documentation of sys.stdin/out/err update to reflect change in 3.6 on Windows to use UTF-8.

Wording by Eryk Sun and Paul Moore.

https://bugs.python.org/issue30410
(cherry picked from commit 5723263a3a39a05b6a2f567e0e7771792e6e2f5b)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
6 years agobpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied...
Miss Islington (bot) [Thu, 14 Feb 2019 18:41:37 +0000 (10:41 -0800)] 
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)).

Not only a blocking IO error needs to be ignored - permission errors also need to be ignored.

p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb.

https://bugs.python.org/issue35633
(cherry picked from commit b94d4bed67c60834b1a5a0936b8c13934cf3b872)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
6 years agocloses bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
Miss Islington (bot) [Thu, 14 Feb 2019 08:02:12 +0000 (00:02 -0800)] 
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)

(cherry picked from commit bb3c05d7efca8d23bf39bc2640297ba2598899f3)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-35961: Fix a crash in slice_richcompare() (GH-11830)
Miss Islington (bot) [Wed, 13 Feb 2019 11:49:34 +0000 (03:49 -0800)] 
bpo-35961: Fix a crash in slice_richcompare() (GH-11830)

Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.

The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
(cherry picked from commit dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years ago[3.7] Remove stray quote in os.replace docstring. (GH-11835)
Benjamin Peterson [Wed, 13 Feb 2019 04:36:09 +0000 (20:36 -0800)] 
[3.7] Remove stray quote in os.replace docstring. (GH-11835)

(cherry picked from commit 73d600239b0aa34198bce2b7982e4ff14c92f119)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
6 years agobpo-35505: Skip test_imap4_host_default_value if localhost listens on IMAP port ...
Miss Islington (bot) [Tue, 12 Feb 2019 18:54:31 +0000 (10:54 -0800)] 
bpo-35505: Skip test_imap4_host_default_value if localhost listens on IMAP port (GH-11823)

Make test_imap4_host_default_value independent on whether the
local IMAP server is running.
(cherry picked from commit 3dc67d0316740e78e7cd014343f34d85908219b7)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
6 years agobpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815) (GH-11826)
Miss Islington (bot) [Tue, 12 Feb 2019 12:11:48 +0000 (04:11 -0800)] 
bpo-35960: Fix dataclasses.field throwing away empty metadata.  (GH-11815) (GH-11826)

(cherry picked from commit b01786c8812c4cc24dd561b5941025bdd6f444c0)

Co-authored-by: Christopher Hunt <chrahunt@gmail.com>
6 years agobpo-35918: Remove broken has_key method and add test (GH-11819) (#11824)
Miss Islington (bot) [Tue, 12 Feb 2019 01:09:22 +0000 (17:09 -0800)] 
bpo-35918: Remove broken has_key method and add test (GH-11819) (#11824)

(cherry picked from commit a31f4cc881992e84d351957bd9ac1a92f882fa39)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years ago[3.7] bpo-22062: Updated docstring and documentation for pathlib (GH-8519) (GH-11817)
Miss Islington (bot) [Mon, 11 Feb 2019 12:02:57 +0000 (04:02 -0800)] 
[3.7] bpo-22062: Updated docstring and documentation for pathlib (GH-8519) (GH-11817)

Original patch by Mike Short

https://bugs.python.org/issue22062
(cherry picked from commit 537b6caa565ec2fc304ba6f4400cd347ce2af64b)

Co-authored-by: Eivind Teig <eivind.teig@gmail.com>
https://bugs.python.org/issue22062

6 years agoDoc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
Miss Islington (bot) [Sun, 10 Feb 2019 21:43:57 +0000 (13:43 -0800)] 
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)

(cherry picked from commit 9db56fb8faaa3cd66e7fe82740a4ae4d786bb27f)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agoMake sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653)
Miss Islington (bot) [Sat, 9 Feb 2019 17:53:51 +0000 (09:53 -0800)] 
Make sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653)

(cherry picked from commit 7b2a37b728b37e7da6d3f48c24c93a9dd0daa0fc)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoDo not retain references to processes and managers in TestSyncManagerTypes (GH-11801)
Miss Islington (bot) [Sat, 9 Feb 2019 17:26:16 +0000 (09:26 -0800)] 
Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)

Keeping references to processes and managers between tests makes them count as dangling processes.
(cherry picked from commit 613f729e5ddd201765a9a04efc1c76decb3a19c4)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
Miss Islington (bot) [Sat, 9 Feb 2019 04:43:20 +0000 (20:43 -0800)] 
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)

Add  a code example block.
(cherry picked from commit 8a03ff2ff4db973c9fe152561f1796e72cb71132)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agolru_cache: Add more comments. Fix comment typos. Clarify a comment. (GH-11795) ...
Miss Islington (bot) [Sat, 9 Feb 2019 03:33:06 +0000 (19:33 -0800)] 
lru_cache:  Add more comments. Fix comment typos. Clarify a comment. (GH-11795) (GH-11798)

6 years agobpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) (GH-11785)
Miss Islington (bot) [Thu, 7 Feb 2019 20:09:16 +0000 (12:09 -0800)] 
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) (GH-11785)

Protect dict iterations by wrapping them with _IterationGuard in the
following methods:

- WeakValueDictionary.copy()
- WeakValueDictionary.__deepcopy__()
- WeakKeyDictionary.copy()
- WeakKeyDictionary.__deepcopy__()
(cherry picked from commit 96d37dbcd23e65a7a57819aeced9034296ef747e)

Co-authored-by: Fish <ltfish@users.noreply.github.com>
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>