]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505)
Miss Islington (bot) [Tue, 23 Apr 2019 12:18:15 +0000 (05:18 -0700)] 
bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505)

(cherry picked from commit 359bd4f61b9e1493081f4f67882554247b53926a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years ago[3.7] bpo-9566: Fix compiler warnings on Windows (GH-12920)
Victor Stinner [Tue, 23 Apr 2019 08:26:11 +0000 (10:26 +0200)] 
[3.7] bpo-9566: Fix compiler warnings on Windows (GH-12920)

* bpo-9566: Fix compiler warnings in gcmodule.c (GH-11010)

Change PyDTrace_GC_DONE() argument type from int to Py_ssize_t.

(cherry picked from commit edad38e3e05586ba58291f47756eb3fb808f5577)

* bpo-30465: Fix C downcast warning on Windows in ast.c (#6593)

ast.c: fstring_fix_node_location() downcasts a pointer difference to
a C int. Replace int with Py_ssize_t to fix the compiler warning.

(cherry picked from commit fb7e7992beec7f76cc2db77ab6ce1e86446bfccf)

* bpo-9566: Fix compiler warnings in peephole.c (GH-10652)

(cherry picked from commit 028f0ef4f3111d2b3fc5b971642e337ba7990873)

* bpo-27645, sqlite: Fix integer overflow on sleep (#6594)

Use the _PyTime_t type and round away from zero (ROUND_UP,
_PyTime_ROUND_TIMEOUT) the sleep duration, when converting a Python
object to seconds and then to milliseconds. Raise an OverflowError in
case of overflow.

Previously the (int)double conversion rounded towards zero
(ROUND_DOWN).

(cherry picked from commit ca405017d5e776a2e3d9291236e62d2e09489dd2)

6 years agoFixes platform.win32_ver on non-Windows platforms (GH-12912)
Miss Islington (bot) [Mon, 22 Apr 2019 18:59:08 +0000 (11:59 -0700)] 
Fixes platform.win32_ver on non-Windows platforms (GH-12912)

(cherry picked from commit d307d05350e26a7a5f8f74db9af632a15215b50f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)
Miss Islington (bot) [Mon, 22 Apr 2019 17:31:46 +0000 (10:31 -0700)] 
bpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)

(cherry picked from commit 34366b7f914eedbcc33aebe882098a2199ffaf82)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)
Miss Islington (bot) [Mon, 22 Apr 2019 17:20:33 +0000 (10:20 -0700)] 
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)

(cherry picked from commit 56ed86490cb8221c874d432461d77702437f63e5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
Miss Islington (bot) [Mon, 22 Apr 2019 13:53:53 +0000 (06:53 -0700)] 
bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)

(cherry picked from commit d59b662e490d3fae662c5f81fa5248f0445d2158)

Co-authored-by: 周家未 <752736341@qq.com>
6 years agobpo-36523: Add docstring to io.IOBase.writelines (GH-12683)
Marcin Niemira [Mon, 22 Apr 2019 12:08:24 +0000 (22:08 +1000)] 
bpo-36523: Add docstring to io.IOBase.writelines (GH-12683)

(cherry picked from commit ab86521a9d9999731e39bd9056420bb7774fd144)

6 years agoDoc: add the missing ".tp_flags" in type definition (GH-12902)
Miss Islington (bot) [Mon, 22 Apr 2019 11:14:25 +0000 (04:14 -0700)] 
Doc: add the missing ".tp_flags" in type definition (GH-12902)

(cherry picked from commit 662ebd2ab2047aeae9689ad254b39915c38069fd)

Co-authored-by: Wu Wei <weiwu@cacheme.net>
6 years agobpo-23078: Add support for {class,static}method to mock.create_autospec() (GH-11613)
Berker Peksag [Mon, 22 Apr 2019 03:07:56 +0000 (06:07 +0300)] 
bpo-23078: Add support for {class,static}method to mock.create_autospec() (GH-11613)

Co-authored-by: Felipe <felipe.nospam.ochoa@gmail.com>
(cherry picked from commit 9b21856b0fcda949de239edc7aa6cf3f2f4f77a3)

6 years agobpo-36645: Fix ambiguous formatting in re.sub() documentation (GH-12879)
Miss Islington (bot) [Sun, 21 Apr 2019 22:20:45 +0000 (15:20 -0700)] 
bpo-36645: Fix ambiguous formatting in re.sub() documentation (GH-12879)

(cherry picked from commit 5ebfa840a1c9967da299356733da41b532688988)

Co-authored-by: mollison <mollison@cs.unc.edu>
6 years agoFix typo (GH-12878) 12897/head
Miss Islington (bot) [Sat, 20 Apr 2019 23:12:23 +0000 (16:12 -0700)] 
Fix typo (GH-12878)

"sychronization" -> "synchronization"
(cherry picked from commit 3e986de0d65e78901b55d4e500b1d05c847b6d5e)

Co-authored-by: Fredrik Averpil <fredrik@averpil.com>
6 years agobpo-36650: Fix handling of empty keyword args in C version of lru_cache. (GH-12881...
Miss Islington (bot) [Sat, 20 Apr 2019 17:50:32 +0000 (10:50 -0700)] 
bpo-36650: Fix handling of empty keyword args in C version of lru_cache. (GH-12881) (GH-12888)

(cherry picked from commit 14adbd45980f705cb6554ca17b8a66b56e105296)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-36651: Fixed Asyncio Event Loop documentation inconsistency (GH-12866)
Miss Islington (bot) [Thu, 18 Apr 2019 12:49:24 +0000 (05:49 -0700)] 
bpo-36651: Fixed Asyncio Event Loop documentation inconsistency (GH-12866)

GH- [bpo-36651](https://bugs.python.org/issue36651): Fixed Asyncio Event Loop documentation inconsistency

In the documentation for the call_later and the call_at methods there is a note which says that the delay cannot be longer than a day, but both methods have a note saying that this limitation was removed in Python 3.8
Here I fixed this issue by removing the pre-exising note and added a versionchanged.

To test my changes I have rebuilt the documentation with ```make html```. I did not have any errors and the effected page displayed correctly on a browser.

https://bugs.python.org/issue36651
(cherry picked from commit 7e954e7de4f3777b5ce239640bd2b76aced09561)

Co-authored-by: Enrico Alarico Carbognani <enrico.carbognani@gmail.com>
6 years agoFix wrong indentation of a paragraph in documentation (GH-12868)
Miss Islington (bot) [Thu, 18 Apr 2019 01:00:37 +0000 (18:00 -0700)] 
Fix wrong indentation of a paragraph in documentation (GH-12868)

This paragraph doesn't seem to be a part of code, but merged into previous code block.
(cherry picked from commit 9941f963fe085261aec25545fa9f0cc35f750120)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
6 years agobpo-36649: Remove trailing spaces for registry keys when installed via the Store...
Miss Islington (bot) [Wed, 17 Apr 2019 21:52:14 +0000 (14:52 -0700)] 
bpo-36649: Remove trailing spaces for registry keys when installed via the Store (GH-12865)

(cherry picked from commit 4c3efd9cd07194b5db2a60ae5951134cda8b69db)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years ago[3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862)
Victor Stinner [Wed, 17 Apr 2019 16:38:06 +0000 (18:38 +0200)] 
[3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862)

* bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)

shutil.which() and distutils.spawn.find_executable() now use
os.confstr("CS_PATH") if available instead of os.defpath, if the PATH
environment variable is not set.

Don't use os.confstr("CS_PATH") nor os.defpath if the PATH
environment variable is set to an empty string.

Changes:

* find_executable() now starts by checking for the executable in the
  current working directly case. Add an explicit
  "if not path: return None".
* Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.

(cherry picked from commit 228a3c99bdb2d02771bead66a0beabafad3a90d3)

* bpo-35755: Remove current directory from posixpath.defpath (GH-11586)

Document the change in a NEWS entry of the Security category.

(cherry picked from commit 2c4c02f8a876fcf084575dcaf857a0236c81261a)

6 years agobpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852) (GH-12863)
Miss Islington (bot) [Wed, 17 Apr 2019 16:30:27 +0000 (09:30 -0700)] 
bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852) (GH-12863)

Fix Python Initialization code on FreeBSD to detect properly when
stdin file descriptor (fd 0) is invalid.

On FreeBSD, fstat() must be used to check if stdin (fd 0) is valid.
dup(0) doesn't fail if stdin is invalid in some cases.
(cherry picked from commit 3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33783: Use proper class markup for random.Random docs (GH-7817) (GH-12859)
Miss Islington (bot) [Tue, 16 Apr 2019 21:32:32 +0000 (14:32 -0700)] 
bpo-33783: Use proper class markup for random.Random docs (GH-7817) (GH-12859)

Signed-off-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
(cherry picked from commit 31e8d69bfe7cf5d4ffe0967cb225d2a8a229cc97)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
6 years agobpo-36508: python-config don't export LINKFORSHARED (GH-12661) (GH-12748)
Miss Islington (bot) [Tue, 16 Apr 2019 13:01:33 +0000 (06:01 -0700)] 
bpo-36508: python-config don't export LINKFORSHARED (GH-12661) (GH-12748)

python-config --ldflags no longer includes flags of the LINKFORSHARED
variable. The LINKFORSHARED variable must only be used to build
executables.
(cherry picked from commit e65f01f78d7bda3013fc5be485afa87ff56511d9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-36348: test_imaplib: add debug info (GH-12846)
Victor Stinner [Mon, 15 Apr 2019 16:45:01 +0000 (18:45 +0200)] 
bpo-36348: test_imaplib: add debug info (GH-12846)

Log more info if tests fail.

6 years agoDoc: update PendingDeprecationWarning explanation (GH-12837)
Miss Islington (bot) [Mon, 15 Apr 2019 12:48:31 +0000 (05:48 -0700)] 
Doc: update PendingDeprecationWarning explanation (GH-12837)

Keep the nudge towards DeprecationWarning, but remove the
"Note" markup and generally shorten the description.

Ref: https://github.com/python/cpython/pull/12505/filesGH-r273978757
(cherry picked from commit a3283efd30ad52b56d1046138523cbabc6c69daf)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36629: Add support.get_socket_conn_refused_errs() (GH-12834) (GH-12835)
Miss Islington (bot) [Mon, 15 Apr 2019 10:49:37 +0000 (03:49 -0700)] 
bpo-36629: Add support.get_socket_conn_refused_errs() (GH-12834) (GH-12835)

Fix test_imap4_host_default_value() of test_imaplib: catch also
errno.ENETUNREACH error.
(cherry picked from commit 3c7931e514faf509a39c218c2c9f55efb434628f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-16079: fix duplicate test method name in test_gzip. (GH-12827)
Miss Islington (bot) [Sun, 14 Apr 2019 17:50:52 +0000 (10:50 -0700)] 
bpo-16079: fix duplicate test method name in test_gzip. (GH-12827)

(cherry picked from commit cd466559c4a312b3c1223a774ad4df19fc4f0407)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years ago[3.7] bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can termina...
Pablo Galindo [Sun, 14 Apr 2019 02:49:17 +0000 (03:49 +0100)] 
[3.7] bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread (GH-12541) (GH-12820)

Calling these function from a thread when the runtime is finalizing will terminate
the thread, even if the thread was not created by Python. Users can use
_Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of
being finalized before calling this function to avoid unwanted termination.
(cherry picked from commit fde9b33)

6 years agobpo-36593: Fix isinstance check for Mock objects with spec executed under tracing...
Miss Islington (bot) [Sat, 13 Apr 2019 19:31:58 +0000 (12:31 -0700)] 
bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790)

In Python having a trace function in effect while mock is imported causes isinstance to be wrong for MagicMocks. This is due to the usage of super() in some class methods, as this sets the __class__ attribute. To avoid this, as a workaround, alias the usage of super .
(cherry picked from commit 830b43d03cc47a27a22a50d777f23c8e60820867)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agoSkip test_preadv_flags if RWF_HIPRI is not supported by the system (GH-12762)
Miss Islington (bot) [Sat, 13 Apr 2019 16:25:20 +0000 (09:25 -0700)] 
Skip test_preadv_flags if RWF_HIPRI is not supported by the system (GH-12762)

(cherry picked from commit 46544f69bff1c3c4173d461be35993ca0109f622)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoDoc: define PY_SSIZE_T_CLEAN always (GH-12794)
Miss Islington (bot) [Sat, 13 Apr 2019 01:56:50 +0000 (18:56 -0700)] 
Doc: define PY_SSIZE_T_CLEAN always (GH-12794)

(cherry picked from commit c88feceb449d6e85d7e17ec36559206094d10d81)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12814)
Victor Stinner [Sat, 13 Apr 2019 00:50:31 +0000 (02:50 +0200)] 
bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12814)

"make tags" and "make TAGS" now also parse Modules/_io/*.c
and Modules/_io/*.h.

(cherry picked from commit 21a74a9d77c5ac628808b9faace18b824ca056f7)

6 years agobpo-35581: Document @typing.type_check_only (GH-11312)
Miss Islington (bot) [Fri, 12 Apr 2019 22:47:57 +0000 (15:47 -0700)] 
bpo-35581: Document @typing.type_check_only (GH-11312)

(cherry picked from commit 1e8295402bf5e81d327ed2b5eb88a6b6de449d63)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
6 years agobpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849)
Miss Islington (bot) [Fri, 12 Apr 2019 22:32:33 +0000 (15:32 -0700)] 
bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849)

Since bpo-30291 it is possible to specify the architecture of Python when using the launcher
(cherry picked from commit 1e2ad6c275d2b09e76b7cbba7281d5a125a593c1)

Co-authored-by: mrh1997 <mrh1997@users.noreply.github.com>
6 years agoAllow Windows layout builds to fully skip code signing (GH-12808)
Miss Islington (bot) [Fri, 12 Apr 2019 18:44:00 +0000 (11:44 -0700)] 
Allow Windows layout builds to fully skip code signing (GH-12808)

(cherry picked from commit 606c66a17faf34a4e74d4829e8fe5ad0d2879434)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797)
Miss Islington (bot) [Fri, 12 Apr 2019 13:33:31 +0000 (06:33 -0700)] 
bpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797)

Fix test_sys.test_getallocatedblocks() when tracemalloc is enabled.
If the name of Python memory allocators cannot get read, consider
that pymalloc is disabled.

Fix the following error:

./python -X tracemalloc -m test test_sys -v -m test_getallocatedblocks

ERROR: test_getallocatedblocks (test.test_sys.SysModuleTest)
------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_sys.py", line 770, in test_getallocatedblocks
    alloc_name = _testcapi.pymem_getallocatorsname()
RuntimeError: cannot get allocators name
(cherry picked from commit 9b8314cfe29ca532fc335277f6c36b72e6132922)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)
Miss Islington (bot) [Fri, 12 Apr 2019 06:27:27 +0000 (23:27 -0700)] 
bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)

(cherry picked from commit 0522fd81dc6e3482c2d4c8719f1f85ad5924eede)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
6 years ago[3.7] bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770...
Victor Stinner [Thu, 11 Apr 2019 20:30:31 +0000 (22:30 +0200)] 
[3.7] bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770) (GH-12788)

* bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770)

Replace _PyMem_IsFreed() function with _PyMem_IsPtrFreed() inline
function. The function is now way more efficient, it became a simple
comparison on integers, rather than a short loop. It detects also
uninitialized bytes and "forbidden bytes" filled by debug hooks
on memory allocators.

Add unit tests on _PyObject_IsFreed().

(cherry picked from commit 2b00db68554422ec37faba2a80179a0172df6349)

* bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782)

Modify CLEANBYTE, DEADDYTE and FORBIDDENBYTE constants: use 0xCD,
0xDD and 0xFD, rather than 0xCB, 0xBB and 0xFB, to use the same byte
patterns than Windows CRT debug malloc() and free().

(cherry picked from commit 4c409beb4c360a73d054f37807d3daad58d1b567)

6 years agobpo-36597: fix random doctest failure (GH-12778)
Inada Naoki [Thu, 11 Apr 2019 10:37:53 +0000 (19:37 +0900)] 
bpo-36597: fix random doctest failure (GH-12778)

6 years agobpo-36416: Correct bytes.rpartition documentation (GH-12543)
Miss Islington (bot) [Thu, 11 Apr 2019 10:18:48 +0000 (03:18 -0700)] 
bpo-36416: Correct bytes.rpartition documentation (GH-12543)

(cherry picked from commit efc48701496ef020e896fc6a91af3c0c612ac69a)

Co-authored-by: pewscorner <pewscorner@users.noreply.github.com>
6 years agoDoc: fix typo in IncrementalDecoder.setstate (GH-12724)
Miss Islington (bot) [Thu, 11 Apr 2019 06:18:07 +0000 (23:18 -0700)] 
Doc: fix typo in IncrementalDecoder.setstate (GH-12724)

(cherry picked from commit b5e2959b27088d39f9954a207b91ab0ebbd149f4)

Co-authored-by: Christopher Thorne <libcthorne@users.noreply.github.com>
6 years agobetter __init__.py explanation in tutorial (GH-12763)
Miss Islington (bot) [Thu, 11 Apr 2019 06:16:34 +0000 (23:16 -0700)] 
better __init__.py explanation in tutorial (GH-12763)

* better __init__.py explanation in tutorial

* Update Doc/tutorial/modules.rst

Co-Authored-By: methane <songofacandy@gmail.com>
(cherry picked from commit 5410d3d283b11e2375f0c1f79728a230edd12bd0)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)
Miss Islington (bot) [Wed, 10 Apr 2019 23:58:55 +0000 (16:58 -0700)] 
bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)

Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().
(cherry picked from commit a9bd8925c7fa50dd3cfab125b824ec192133ef49)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-14826: document that URLopener quotes fullurl. (GH-12758)
Miss Islington (bot) [Wed, 10 Apr 2019 09:30:22 +0000 (02:30 -0700)] 
bpo-14826: document that URLopener quotes fullurl. (GH-12758)

(cherry picked from commit 2fb2bc81c3f40d73945c6102569495140e1182c7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-12910: update and correct quote docstring (GH-2568)
Miss Islington (bot) [Wed, 10 Apr 2019 00:53:03 +0000 (17:53 -0700)] 
bpo-12910: update and correct quote docstring (GH-2568)

Fixes some mistakes and misleadings in the quote function docstring:
- reserved chars are never actually used by quote code, unreserved chars are
- reserved chars were wrong and incomplete
- mentioned that use-case is not minimal quoting wrt. RFC, but cautious quoting
(cherry picked from commit 750d74fac5c510e39958b3f79641fe54096ee54f)

Co-authored-by: Jörn Hees <joernhees@users.noreply.github.com>
6 years ago[3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749)
Victor Stinner [Tue, 9 Apr 2019 16:55:50 +0000 (18:55 +0200)] 
[3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749)

* bpo-36560: Fix reference leak hunting in regrtest (GH-12744)

Fix reference leak hunting in regrtest: compute also deltas (of
reference count, allocated memory blocks, file descriptor count)
during warmup, to ensure that everything is initialized before
starting to hunt reference leaks.

Other changes:

* Replace gc.collect() with support.gc_collect()
* Move calls to read memory statistics from dash_R_cleanup() to
  dash_R()
* Pass regrtest 'ns' to dash_R()
* dash_R() is now more quiet with --quiet option (don't display
  progress).
* Precompute the full range for "for it in range(repcount):" to
  ensure that the iteration doesn't allocate anything new.
* dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94eeb44697e92b0951385cd557bc27e0f6a)

* bpo-36560: regrtest: don't collect the GC twice (GH-12747)

dash_R() function of libregrtest doesn't call support.gc_collect()
directly anymore: it's already called by dash_R_cleanup().

Call dash_R_cleanup() before starting the loop.

(cherry picked from commit bb4447897a5f141eecf42987a1191a3330c5d7ed)

6 years agocloses bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH...
Miss Islington (bot) [Tue, 9 Apr 2019 04:57:31 +0000 (21:57 -0700)] 
closes bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH-11893)

Move all documentation regarding the readinto method into either io.RawIOBase or io.BufferedIOBase.

Corresponding changes to documentation in the _pyio.py module.
(cherry picked from commit 7b97ab35b28b761ab1253df427ee674b1a90f465)

Co-authored-by: Steve Palmer <steve@srpalmer.me.uk>
6 years agobpo-36565: Fix libregrtest for Python without builtin _abc (GH-12733) (GH-12734)
Miss Islington (bot) [Mon, 8 Apr 2019 23:54:16 +0000 (16:54 -0700)] 
bpo-36565: Fix libregrtest for Python without builtin _abc (GH-12733) (GH-12734)

Fix reference hunting (``python3 -m test -R 3:3``) when Python has no
built-in abc module: fix _get_dump() reimplementation of libregrtest.
(cherry picked from commit 79b5d29041bd85ea3baa050b3fa2481344ea35c9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoCorrect "inplace" with "in-place" (GH-10480)
Miss Islington (bot) [Mon, 8 Apr 2019 09:21:38 +0000 (02:21 -0700)] 
Correct "inplace" with "in-place" (GH-10480)

(cherry picked from commit f4efa312d14bc792f59514c5696e29041e05deca)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)
Miss Islington (bot) [Mon, 8 Apr 2019 02:55:58 +0000 (19:55 -0700)] 
bpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)

Remove names from the "unimplemented interfaces" list
in the minidom docs that are actually implemented.
(cherry picked from commit 2ea8099523581cf2ecc060831a53debb57ff98ee)

Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
6 years agoFix doc for create_subprocess_exec (GH-12598)
Miss Islington (bot) [Fri, 5 Apr 2019 14:08:31 +0000 (07:08 -0700)] 
Fix doc for create_subprocess_exec (GH-12598)

Add missing `program` argument to asyncio.create_subprocess_exec documentation.
(cherry picked from commit 1328375ad1c91f25a1500945a67b0ef36e387527)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
6 years agobpo-36404: recommend DeprecationWarning over PendingDeprecationWarning (GH-12505)
Miss Islington (bot) [Fri, 5 Apr 2019 09:07:21 +0000 (02:07 -0700)] 
bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning (GH-12505)

(cherry picked from commit 176d26364bb67801fa522f52f20cbe44420d6942)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36522: Print all values for headers with multiple values. (GH-12681) (GH-12682) 12692/head
Miss Islington (bot) [Thu, 4 Apr 2019 08:25:59 +0000 (01:25 -0700)] 
bpo-36522: Print all values for headers with multiple values. (GH-12681) (GH-12682)

(cherry picked from commit 461c416dd78a98f2bba7f323af8c9738e060b6f2)

Co-authored-by: Matt Houglum <houglum@google.com>
6 years ago[3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs...
Pablo Galindo [Wed, 3 Apr 2019 18:34:59 +0000 (14:34 -0400)] 
[3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs (GH-12565) (GH-12671)

The error messages in the parser module are referring to numeric IDs for the nodes. To improve readability, use the node names when reporting errors..
(cherry picked from commit cb0748d3939c31168ab5d3b80e3677494497d5e3)

Co-authored-by: tyomitch <tyomitch@gmail.com>
6 years agobpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660)
Miss Islington (bot) [Wed, 3 Apr 2019 17:55:26 +0000 (10:55 -0700)] 
bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660)

(cherry picked from commit 487b73ab39c80157474821ef9083f51e0846bd62)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-32413: Add documentation that at the module level, locals(), globals() are the...
Miss Islington (bot) [Tue, 2 Apr 2019 18:14:50 +0000 (11:14 -0700)] 
bpo-32413: Add documentation that at the module level, locals(), globals() are the  same dictionary (GH-5004)

https://bugs.python.org/issue32413
(cherry picked from commit 1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
6 years agobpo-35838: document optionxform must be idempotent (GH-12656)
Miss Islington (bot) [Tue, 2 Apr 2019 09:29:16 +0000 (02:29 -0700)] 
bpo-35838: document optionxform must be idempotent (GH-12656)

(cherry picked from commit 04694a306b8f4ab54ef5fc4ba673c26fa53b0ac1)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-13120: fix typo with test_issue13120() method name (GH-12250)
Miss Islington (bot) [Tue, 2 Apr 2019 08:17:25 +0000 (01:17 -0700)] 
bpo-13120: fix typo with test_issue13120() method name (GH-12250)

Incorrect issue number '13210' added in 539ee5da6f.

https://bugs.python.org/issue13120
(cherry picked from commit 9139f926a8d8e5b71830cb7e10b0807836b5e9a4)

Co-authored-by: Daniel Hahler <github@thequod.de>
6 years agoTemporary workaround for an ACL issue on Ubuntu on Azure Pipelines (GH-12649)
Miss Islington (bot) [Mon, 1 Apr 2019 16:30:58 +0000 (09:30 -0700)] 
Temporary workaround for an ACL issue on Ubuntu on Azure Pipelines (GH-12649)

(cherry picked from commit b4bcefe5fe689ef5caf9c775f72c6d150f3e8ece)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36157:Document PyInterpreterState_Main() (GH-12238)
Miss Islington (bot) [Mon, 1 Apr 2019 15:15:10 +0000 (08:15 -0700)] 
bpo-36157:Document PyInterpreterState_Main() (GH-12238)

I have added documentation for `PyInterpreterState_Main()`.
 I chose to place it under Advanced Debugger Support together with similar functions like `PyInterpreterState_Head()`, `PyInterpreterState_Next(`), and `PyInterpreterState_ThreadHead()` .

https://bugs.python.org/issue36157
(cherry picked from commit 8c61739defd88c7f79e86537886c33745843ce01)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
6 years agobpo-20844: open script file with "rb" mode (GH-12616)
Inada Naoki [Mon, 1 Apr 2019 12:02:51 +0000 (21:02 +0900)] 
bpo-20844: open script file with "rb" mode (GH-12616)

(cherry picked from commit 10654c19b5e6efdf3c529ff9bf7bcab89bdca1c1)

6 years ago[3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637...
Serhiy Storchaka [Mon, 1 Apr 2019 07:59:24 +0000 (10:59 +0300)] 
[3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637) (GH-12645)

The following arguments can be passed as keyword arguments for passing
to other function if the corresponding required argument is passed as
positional:

- "func" in functools.partialmethod(), weakref.finalize(),
  profile.Profile.runcall(), cProfile.Profile.runcall(),
  bdb.Bdb.runcall(), trace.Trace.runfunc() and
  curses.wrapper().
- "function" in unittest.addModuleCleanup() and
  unittest.TestCase.addCleanup().
- "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor
  and concurrent.futures.ProcessPoolExecutor.
- "callback" in contextlib.ExitStack.callback(),
  contextlib.AsyncExitStack.callback() and
  contextlib.AsyncExitStack.push_async_callback().
- "c" and "typeid" in multiprocessing.managers.Server.create().
- "obj" in weakref.finalize().

(cherry picked from commit 42a139ed88c487f325a241c6ee8b308b3c045975)

6 years agobpo-36150: Fix possible assertion failures due to _ctypes.c's PyCData_reduce(). ...
Miss Islington (bot) [Sun, 31 Mar 2019 17:15:11 +0000 (10:15 -0700)] 
bpo-36150: Fix possible assertion failures due to _ctypes.c's PyCData_reduce(). (GH-12106) (GH-12642)

(cherry picked from commit 5f2c50810a67982b0c80f6d3258fee3647f67005)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36010: Add venv to the nuget distribution (GH-12367)
Miss Islington (bot) [Sat, 30 Mar 2019 21:47:12 +0000 (14:47 -0700)] 
bpo-36010: Add venv to the nuget distribution (GH-12367)

(cherry picked from commit e724152796a5a41544f52054506c6c2248242a5d)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
6 years agobpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) (GH-12627)
Miss Islington (bot) [Sat, 30 Mar 2019 13:52:41 +0000 (06:52 -0700)] 
bpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) (GH-12627)

The bug occurred when the encoded surrogate character is passed
to the incremental decoder in two chunks.
(cherry picked from commit 7a465cb5ee7e298cae626ace1fc3e7d97df79f2e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-36434: Properly handle writing errors in ZIP files. (GH-12559) (GH-12628)
Miss Islington (bot) [Sat, 30 Mar 2019 13:52:16 +0000 (06:52 -0700)] 
bpo-36434: Properly handle writing errors in ZIP files. (GH-12559) (GH-12628)

Errors during writing no longer prevent to properly close
the ZIP file.
(cherry picked from commit 2524fdefc9bb2a97b99319190aeb23703079ad4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoC API docs: Py_IsInitialized is always safe to call (GH-12630)
Miss Islington (bot) [Sat, 30 Mar 2019 11:29:43 +0000 (04:29 -0700)] 
C API docs: Py_IsInitialized is always safe to call (GH-12630)

(cherry picked from commit ddbb978e1065dde21d1662386b26ded359f4b16e)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-17110: doc: add note how to get bytes from sys.argv (GH-12602)
Miss Islington (bot) [Sat, 30 Mar 2019 05:38:14 +0000 (22:38 -0700)] 
bpo-17110: doc: add note how to get bytes from sys.argv (GH-12602)

(cherry picked from commit 38f4e468d4b55551e135c67337c18ae142193ba8)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agoFixed capital letters missing and missing . (GH-12584)
Miss Islington (bot) [Fri, 29 Mar 2019 02:11:06 +0000 (19:11 -0700)] 
Fixed capital letters missing and missing . (GH-12584)

No `bpo` for minor doc fix
(cherry picked from commit 3d78c4a6e5ae91eaf337b6f5cc6e8bb01af7c7b1)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
6 years agobpo-35941: Fix ssl certificate enumeration for windows (GH-12486)
Miss Islington (bot) [Thu, 28 Mar 2019 18:56:50 +0000 (11:56 -0700)] 
bpo-35941: Fix ssl certificate enumeration for windows (GH-12486)

Add a function to collect certificates from several certificate stores into one certificate collection store that is then enumerated. This ensures we load as many certificates as we can access.
(cherry picked from commit d93fbbf88e4abdd24a0a55e3ddf85b8420c62052)

Co-authored-by: kctherookie <48805853+kctherookie@users.noreply.github.com>
6 years agobpo-36425: Add Simplified Chinese to the language switcher (GH-12537)
Miss Islington (bot) [Thu, 28 Mar 2019 18:12:39 +0000 (11:12 -0700)] 
bpo-36425: Add Simplified Chinese to the language switcher (GH-12537)

(cherry picked from commit 45a5fdb91cee665161a8b1980bb4e6ccb999f58f)

Co-authored-by: zhsj <zsj950618@gmail.com>
6 years agobpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)
Miss Islington (bot) [Thu, 28 Mar 2019 15:08:35 +0000 (08:08 -0700)] 
bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)

Remove the PyMem_FREE() call added in cb90c89.  The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.
(cherry picked from commit cda139d1ded6708665b53e4ed32ccc1d2627e1da)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years ago[3.7] Fix NEWS entry with incorrect bpo number (GH-12600)
Ned Deily [Thu, 28 Mar 2019 04:20:59 +0000 (00:20 -0400)] 
[3.7] Fix NEWS entry with incorrect bpo number (GH-12600)

6 years agobpo-36245: Fix more empty environment variable checks (GH-12592)
Miss Islington (bot) [Thu, 28 Mar 2019 00:01:31 +0000 (17:01 -0700)] 
bpo-36245: Fix more empty environment variable checks (GH-12592)

(cherry picked from commit b95a79c928fc4a6135d91c0c553cb2a63cf15140)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
Miss Islington (bot) [Wed, 27 Mar 2019 22:25:57 +0000 (15:25 -0700)] 
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)

(cherry picked from commit d5a5a33f12b60129d57f9b423b77d2fcba506834)

Co-authored-by: Philipp A <flying-sheep@web.de>
6 years agobpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566)
Miss Islington (bot) [Wed, 27 Mar 2019 15:47:57 +0000 (08:47 -0700)] 
bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566)

(cherry picked from commit 4a9a505d6f2474a570422dad89f8d1b344d6cd36)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoDoc: Fixed missing punctuation in datamodel.rst (GH-12581)
Miss Islington (bot) [Wed, 27 Mar 2019 10:18:36 +0000 (03:18 -0700)] 
Doc: Fixed missing punctuation in datamodel.rst (GH-12581)

(cherry picked from commit 1fc5bf2ff27b898e8d9460d0fbc791e83009ed71)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
6 years agobpo-33832: Add "magic method" glossary entry (GH-7630)
Miss Islington (bot) [Wed, 27 Mar 2019 01:26:52 +0000 (18:26 -0700)] 
bpo-33832: Add "magic method" glossary entry (GH-7630)

(cherry picked from commit f760610bddd7e8f8ac0914d5d59ef806bc16a73b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agoMinor doc improvement (GH-10341)
Miss Islington (bot) [Wed, 27 Mar 2019 01:23:54 +0000 (18:23 -0700)] 
Minor doc improvement (GH-10341)

Change "star-operator" to "* operator".
(cherry picked from commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36429: Fix starting IDLE with pyshell (GH-12548)
Miss Islington (bot) [Wed, 27 Mar 2019 00:19:23 +0000 (17:19 -0700)] 
bpo-36429: Fix starting IDLE with pyshell (GH-12548)

Add idlelib.pyshell alias at top; remove pyshell alias at bottom.
Remove obsolete __name__=='__main__' command.
(cherry picked from commit 6a258c88906a7e8acde455ee2acb78b6f315ea0b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821)
Miss Islington (bot) [Tue, 26 Mar 2019 21:20:29 +0000 (14:20 -0700)] 
bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821)

(cherry picked from commit 6cd658b1a5cb2413230dbc2d9395d20498be8518)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)
Miss Islington (bot) [Tue, 26 Mar 2019 15:39:03 +0000 (08:39 -0700)] 
bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)

Handle memory allocation failure.
(cherry picked from commit 414b1cde93764cdabb0798b02af4dd7df954424d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)
Miss Islington (bot) [Tue, 26 Mar 2019 09:47:08 +0000 (02:47 -0700)] 
bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)

https://bugs.python.org/issue36433
(cherry picked from commit 871309c775fd4d72048bfaa31affd54f9934f7dd)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)
Miss Islington (bot) [Tue, 26 Mar 2019 06:26:42 +0000 (23:26 -0700)] 
bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)

(cherry picked from commit 0523c39e7720b82b38ad793d3f1a5681adcdf873)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoFix "the the" in the idle docs. (GH-12549)
Miss Islington (bot) [Tue, 26 Mar 2019 04:52:39 +0000 (21:52 -0700)] 
Fix "the the" in the idle docs. (GH-12549)

(cherry picked from commit 577277f669a6d5c626c142358a940a10d32813ff)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobump to 3.7.3+
Ned Deily [Mon, 25 Mar 2019 23:31:06 +0000 (19:31 -0400)] 
bump to 3.7.3+

6 years agoMerge tag 'v3.7.3' into 3.7
Ned Deily [Mon, 25 Mar 2019 23:28:53 +0000 (19:28 -0400)] 
Merge tag 'v3.7.3' into 3.7

6 years agobpo-34085: Improve wording on classmethod/staticmethod (GH-8228)
Miss Islington (bot) [Mon, 25 Mar 2019 23:00:00 +0000 (16:00 -0700)] 
bpo-34085: Improve wording on classmethod/staticmethod (GH-8228)

* bpo-34085: Improve wording on classmethod/staticmethod

* Address comments from Éric

* Address comments from Éric
(cherry picked from commit 548cb6060ab9d5a66931ea2be4da08c2c72c9176)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)
Miss Islington (bot) [Mon, 25 Mar 2019 21:36:43 +0000 (14:36 -0700)] 
bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)

6 years ago3.7.3 v3.7.3
Ned Deily [Mon, 25 Mar 2019 20:21:05 +0000 (16:21 -0400)] 
3.7.3

6 years agoAdd note to Queue.get() docs about block=True (GH-2223) (GH-12538)
Miss Islington (bot) [Mon, 25 Mar 2019 20:03:16 +0000 (13:03 -0700)] 
Add note to Queue.get() docs about block=True (GH-2223) (GH-12538)

(cherry picked from commit 713a8ae7926472b02ee1a394633eb54aaa7912d1)

Co-authored-by: Stephen Rosen <sirosen@globus.org>
6 years agobpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)
Miss Islington (bot) [Mon, 25 Mar 2019 08:34:26 +0000 (01:34 -0700)] 
bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)

Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
(cherry picked from commit 5e333784f007950f22de44c1ffab5b0c03d6691f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209) GH-12532)
Miss Islington (bot) [Mon, 25 Mar 2019 07:47:55 +0000 (00:47 -0700)] 
bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209) GH-12532)

(cherry picked from commit dd5417afcf8924bcdd7077351941ad21727ef644)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years agoFix registry key for Windows SDK detection (GH-12445)
Miss Islington (bot) [Thu, 21 Mar 2019 21:54:59 +0000 (14:54 -0700)] 
Fix registry key for Windows SDK detection (GH-12445)

(cherry picked from commit aedc273fd90e31c7a20904568de3115f8957395b)

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
6 years agoFix "catchs" typos in NEWS entries (GH-12364)
Harmon [Sun, 17 Mar 2019 23:49:43 +0000 (18:49 -0500)] 
Fix "catchs" typos in NEWS entries (GH-12364)

6 years agoRemove NEWS entries duplicated from 3.7.2final. (GH-12309)
Ned Deily [Wed, 13 Mar 2019 14:49:21 +0000 (10:49 -0400)] 
Remove NEWS entries duplicated from 3.7.2final. (GH-12309)

6 years agobpo-36174: Update nuget authoring for new license field. (GH-12300)
Miss Islington (bot) [Wed, 13 Mar 2019 00:11:08 +0000 (17:11 -0700)] 
bpo-36174: Update nuget authoring for new license field. (GH-12300)

(cherry picked from commit 26c910c59c47bdef4220c34e66c45a625bda5e56)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoCorrect minor edit to news entry. (GH-12299)
Ned Deily [Tue, 12 Mar 2019 23:44:41 +0000 (19:44 -0400)] 
Correct minor edit to news entry. (GH-12299)

6 years agobpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)
Miss Islington (bot) [Sun, 24 Mar 2019 23:53:13 +0000 (16:53 -0700)] 
bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)

(cherry picked from commit 113d735e2091427f9623097d2a222dd99b16b568)

Co-authored-by: Louie Lu <git@louie.lu>
6 years agobpo-31822: Document that urllib.parse.{Defrag,Split,Parse}Result are namedtuples...
Miss Islington (bot) [Sun, 24 Mar 2019 21:56:27 +0000 (14:56 -0700)] 
bpo-31822: Document that urllib.parse.{Defrag,Split,Parse}Result are namedtuples (GH-4434)

(cherry picked from commit 13c1f72cd1d91fdc2654f2f57356b2eacb75f164)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
6 years agobpo-36405: IDLE - Restore __main__ and add tests (GH-12518)
Miss Islington (bot) [Sun, 24 Mar 2019 21:32:40 +0000 (14:32 -0700)] 
bpo-36405: IDLE - Restore __main__ and add tests (GH-12518)

Fix error in commit 2b75155 noticed by Serhiy Storchaka.
(cherry picked from commit 0fe4513d9a5510ae91c0da7eb0433f79a6d4dda9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.7] Replace "DOS box" with link to Windows FAQ. (GH-12390) (GH-12525)
Miss Islington (bot) [Sun, 24 Mar 2019 19:12:05 +0000 (12:12 -0700)] 
[3.7] Replace "DOS box" with link to Windows FAQ. (GH-12390) (GH-12525)

(cherry picked from commit 6661c1720ebd322e2cb6995a243e8dc6e588d931)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
Miss Islington (bot) [Sat, 23 Mar 2019 16:47:40 +0000 (09:47 -0700)] 
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)

Check for sys.abiflags before using since not all platforms have it defined.
(cherry picked from commit a7987e71939fa631296f83861fb376361ddd59ee)

Co-authored-by: AraHaan <15173749+AraHaan@users.noreply.github.com>
6 years agobpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)
Miss Islington (bot) [Sat, 23 Mar 2019 12:21:46 +0000 (05:21 -0700)] 
bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)

* Add tests for grep findfiles.
* Move findfiles to module function.
* Change findfiles to use os.walk.

Based on a patch by Al Sweigart.
(cherry picked from commit d60f658fc0278f3fcdadec8ddcab35b8ae03e1d1)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>