summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-30730: Prevent environment variables injection in subprocess on ↵Serhiy Storchaka2017-07-072-2/+46
| | | | | | | | Windows. (GH-2325) (#2360) Prevent passing other invalid environment variables and command arguments.. (cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700) (cherry picked from commit e7135751b8e48af80665e40ac8fa6d0073e5affe)
* bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289)Victor Stinner2017-07-072-13/+40
| | | | | | | | | | | The current regex based splitting produces a wrong result. For example:: http://abc#@def Web browsers parse that URL as ``http://abc/#@def``, that is, the host is ``abc``, the path is ``/``, and the fragment is ``#@def``. (cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de) (cherry picked from commit 536c1f1246f4faa302f9f5613fc3444e7ae09b4a)
* Update pydoc topics for v3.6.2rc1Ned Deily2017-06-171-110/+122
|
* [email] bpo-29478: Fix passing max_line_length=None from Compat32 policy ↵Mariatta2017-06-162-2/+13
| | | | | | | (GH-595) (GH-2233) If max_line_length=None is specified while using the Compat32 policy, it is no longer ignored.. (cherry picked from commit b459f7482612d340b88b62edc024628595ec6337)
* [3.6] bpo-30682: Removed a too-strict assertion that failed for certain ↵Serhiy Storchaka2017-06-161-0/+6
| | | | | | f-strings. (GH-2232) (#2242) This caused a segfault on eval("f'\\\n'") and eval("f'\\\r'") in debug build.. (cherry picked from commit 11e97f2f80bf65cc828c127eafc95229df35d403)
* Synchronize libregrtest from master to 3.6 (#2244)Victor Stinner2017-06-167-58/+228
| | | | | | | * bpo-30523: regrtest: Add --list-cases option (#2238) * bpo-30284: Fix regrtest for out of tree build (#1481) * bpo-30540: regrtest: add --matchfile option (#1909) * bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479) * bpo-30263: regrtest: log system load (#1452)
* [3.6]Add IDLE items to NEWS and idlelib/NEWS.txt (#2239) (#2240)terryjreedy2017-06-161-1/+15
|
* bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a ↵Mariatta2017-06-164-26/+109
| | | | | 'trailer', e.g. zip()[x] (GH-24) (GH-2235) (cherry picked from commit 93b4b47e3a720171d67f3b608de406aef462835c)
* bpo-23890: Fix ref cycle in TestCase.assertRaises (#858)Victor Stinner2017-06-152-22/+43
| | | | | unittest.TestCase.assertRaises() now manually breaks a reference cycle to not keep objects alive longer than expected. (cherry picked from commit bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5)
* bpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1662)Dong-hee Na2017-06-152-4/+44
|
* [3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and ↵Serhiy Storchaka2017-06-152-10/+33
| | | | | | | | | | v6. (GH-879) (#2217) the original logic was just comparing the network address but this is wrong because if the network address is equal then we need to compare the ip address for breaking the tie add more ip_interface comparison tests. (cherry picked from commit 7bd8d3e794782582a4ad1c9749424fff86802c3e)
* [3.6] bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. ↵Serhiy Storchaka2017-06-152-3/+15
| | | | | | (GH-2016) (#2214) Running our unit tests with `-bb` enabled triggered this failure.. (cherry picked from commit 171b9a354e816eebc6d4c3a8553303942e9c5025)
* bpo-30231: Remove skipped test_imaplib tests (#1419) (#2192)Victor Stinner2017-06-141-20/+10
| | | | | | | | | The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept TLS connection using our self-signed x509 certificate. Remove the two tests which are already skipped. Write a new test_certfile_arg_warn() unit test for the certfile deprecation warning. (cherry picked from commit b18563da8803433509e9a0e29718e0271014659f)
* [3.6]bpo-15786: Fix IDLE autocomplete return problem. (#2198) (#2199)terryjreedy2017-06-141-1/+2
| | | | Before, Enter would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, '\n' was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion. (cherry picked from commit 32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02)
* bpo-15786: IDLE: Fix mouse clicks on autocompletetion window (#1811) (#2187)terryjreedy2017-06-141-8/+50
| | | | Patch by Louie Lu. (cherry picked from commit 778b484145edfd0d9b65129322d3295bed8eb71a)
* [3.6] bpo-30649: test_os tolerates 50 ms delta for utime (#2156) (#2175)Victor Stinner2017-06-141-1/+6
| | | | | | | | | | | | | | | | | | * bpo-30649: test_os tolerates 50 ms delta for utime (#2156) On Windows, tolerate a delta of 50 ms instead of 20 ms in test_utime_current() and test_utime_current_old() of test_os. On other platforms, reduce the delta from 20 ms to 10 ms. (cherry picked from commit c94caca65cd38802243b5279cf85ee44ffb2abb8) * bpo-30649: Revert utime delta in test_os (#2176) PPC64 Fedora 3.x buildbot requires at least a delta of 14 ms: revert the utime delta to 20 ms. I tried 10 ms, but test_os failed on the PPC64 Fedora 3.x buildbot. (cherry picked from commit 3402f7268897db15053866e1e68404cfa0e02706)
* [3.6]bpo-25514: Improve IDLE's connection refused message (#2177) (#2178)terryjreedy2017-06-143-35/+75
| | | | When IDLE fail to start because the socket connection fails, direct people to a new subsection of the IDLE doc listing various causes and remedies. (cherry picked from commit 188aedf8bb623d41302e10503268b0852ea91134)
* [3.6]bpo-27922: Stop gui flash from idle_test.test_parenmatch (#2171) (#2172)terryjreedy2017-06-131-0/+1
| | | | For unknown reasons, this does not work when running leak tests. (cherry picked from commit 049cf2bb44038351e1b2eed4fc7b1b522329e550)
* [3.6]bpo-30642: Fix ref leak in idle_test.test_macosx (#2163) (#2165)terryjreedy2017-06-131-0/+4
| | | (cherry picked from commit 8323189ff1a19566f923c04b95e4d17fa57d1f56)
* [3.6] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) ↵Antoine Pitrou2017-06-132-13/+84
| | | | | | | | | | | | | (#2166) * bpo-24484: Avoid race condition in multiprocessing cleanup The finalizer registry can be mutated while inspected by multiprocessing at process exit. * Use test.support.start_threads() * Add Misc/NEWS. (cherry picked from commit 1eb6c0074d17f4fd425cacfdda893d65f5f77f0a)
* bpo-30642: IDLE: Fix test_query refleak (#2147) (#2161)terryjreedy2017-06-131-0/+1
| | | | Patch by Louie Lu. (cherry picked from commit b070fd275b68df5c5ba9f6f43197b8d7066f0b18)
* [3.6] bpo-29514: Check magic number for bugfix releases (#2157)Nick Coghlan2017-06-131-0/+44
| | | | | | | | | | | | Add a test to check the current MAGIC_NUMBER against the expected number for the release if the current release is at candidate or final level. On test failure, describe to the developer the procedure for changing the magic number. This ensures that pre-merge CI will automatically pick up on magic number changes in maintenance releases (and explain why those are problematic), rather than relying on all core developers to be aware of the implications of such changes.
* [3.6] bpo-30604: Move co_extra_freefuncs to interpreter state to avoid ↵Dino Viehland2017-06-131-3/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crashes in threads (#2015) * Move co_extra_freefuncs to interpreter state to avoid crashes in multi-threaded scenarios involving deletion of code objects * Don't require that extra be zero initialized * Build test list instead of defining empty test class * Ensure extra is always assigned on success * Keep the old fields in the thread state object, just don't use them Add new linked list of code extra objects on a per-interpreter basis so that interpreter state size isn't changed * Rename __PyCodeExtraState_Get and add comment about it going away in 3.7 Fix sort order of import's in test_code.py * Remove an extraneous space * Remove docstrings for comments * Touch up formatting * Fix casing of coextra local * Fix casing of another variable * Prefix PyCodeExtraState with __ to match C API for getting it * Update NEWS file for bpo-30604
* [3.6] bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (GH-2034) ↵Serhiy Storchaka2017-06-121-0/+10
| | | | | | (#2121) The traceback no longer displayed for SystemExit raised in a callback registered by atexit.. (cherry picked from commit 3fd54d4a7e604067e2bc0f8cfd58bdbdc09fa7f4)
* [3.6]bpo-20185: Adjust IDLE test to 3.7 Clinic change [GH-542] (#2116)terryjreedy2017-06-111-4/+4
| | | | Synchronize 3.6/3.7 test_calltips to the extent possible. Part of patch by Serhiy Storchaka. (cherry-pick from fdd42c4)
* [3.6]bpo-29995: Adjust IDLE test for 3.7 re.escape change [GH-1007] (#2114)terryjreedy2017-06-111-2/+2
|
* [3.6] Use Travis to make sure all generated files are up to date (GH-2080) ↵Zachary Ware2017-06-112-5/+5
| | | | | | | (GH-2092) (cherry picked from commit 0afbabe245) Also fixes some line endings missed in GH-840 backport.
* Revert "[3.6] bpo-29406: asyncio SSL contexts leak sockets after calling ↵Yury Selivanov2017-06-112-57/+1
| | | | | close with certain servers (GH-409) (#2062)" (#2112) This reverts commit 6e14fd2a14cef6ea0709ad234ab41198c2195591.
* bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. ↵Yury Selivanov2017-06-114-0/+29
| | | | (#2109)
* [3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107)terryjreedy2017-06-111-1/+1
| | | | Part of patch by Serhiy Storchaka. (cherry-pick from 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0)
* [3.6]bpo-30144: change idlelib abc import [GH-1263] (#2106)terryjreedy2017-06-111-1/+1
| | | | Part of patch by Serhiy Storchaka. (cherry-pick from 2e576f5)
* [3.6] bpo-29919 Remove unused imports from idlelib [GH-137] (#2105)terryjreedy2017-06-117-9/+4
| | | | Part of patch by Victor Stinner. (cherry-pick from d6debb24e06152a827769b0cac24c47deccdeac1)
* [3.6] Remove unused imports (#2104)terryjreedy2017-06-114-4/+0
| | | | Part of patch by Serhiy Strochaka, 2016-12-16 (no bpo issue) (cherry-pick of 70d28a184c42d107cc8c69a95aa52a4469e7929c)
* bpo-30495: IDLE: Modernize textview.py with docstrings and PEP8 names ↵terryjreedy2017-06-113-42/+62
| | | | | | (#1839) (#2102) Patch by Cheryl Sabella. (cherry picked from commit 0aa0a06e8b719533aefd175a5716f1698f474052)
* [3.6] bpo-30166: backport pyshell changes (GH 1293) (#2098)terryjreedy2017-06-111-5/+6
| | | (cherry-pick IDLE pyshell change from 7e4db2f)
* [3.6] Update idlelib NEWS for 3.6 (GH-2089) (#2097)terryjreedy2017-06-111-3/+26
| | | (cherry-picked from 503bc63)
* bpo-28556: Updates to typing module (GH-2076) (GH-2087)Mariatta2017-06-102-5/+95
| | | | | | | This PR contains two updates to typing module: - Support ContextManager on all versions (original PR by Jelle Zijlstra). - Add generic AsyncContextManager.. (cherry picked from commit 29fda8db16e0edab92841277fa223f844f5a92cc)
* [3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083)Zachary Ware2017-06-103-104/+104
| | | Also updates checked-in line endings on some files
* [3.6] bpo-29406: asyncio SSL contexts leak sockets after calling close with ↵Yury Selivanov2017-06-102-1/+57
| | | | | | | | | | | | | | | certain servers (GH-409) (#2062) * bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409) (cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390) * [3.6] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) * asyncio SSL contexts leak sockets after calling close with certain servers * cleanup _shutdown_timeout_handle on _fatal_error. (cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390)
* [3.6] bpo-30290: IDLE - pep8 names and tests for help-about (#2070)terryjreedy2017-06-102-99/+222
| | | | | | | | | | | | | | (cherry picked from commit 054e09147aaa6f61aca6cd40c7bf7ce6dc54a04b) * bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714) Patch by Cheryl Sabella. (cherry picked from commit 5a346d5dbc1f0f70eca706a8ba19f7645bf17837) * IDLE test_help_about: edit and add test. (#1838) Coverage is now 100% (cherry picked from commit eca7da0f13c78013b924fe7306f3e2e59c0af40b)
* [3.6] Fix TypeError is asyncio/proactor_events (GH-993) (#2061)Yury Selivanov2017-06-101-2/+3
| | | (cherry picked from commit 34792d25ab7329241ea24595286d65d54c266274)
* bpo-30266: support "= None" pattern in AbstractContextManager (GH-1448) ↵Mariatta2017-06-102-3/+12
| | | | | | | | (GH-2054) contextlib.AbstractContextManager now supports anti-registration by setting __enter__ = None or __exit__ = None, following the pattern introduced in bpo-25958.. (cherry picked from commit 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52)
* Break circular references when closing SSLTransport objects (#981) (#2049)Yury Selivanov2017-06-091-4/+6
|
* Closing transport during handshake process leaks socket (#480) (#2044)Yury Selivanov2017-06-092-2/+20
|
* Fix waiter cancellation in asyncio.Lock (#1031) (#2037)Yury Selivanov2017-06-092-5/+34
| | | | | | Avoid a deadlock when the waiter who is about to take the lock is cancelled Issue #27585
* [3.6] bpo-30039: Don't run signal handlers while resuming a yield from stack ↵Yury Selivanov2017-06-091-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-1081) (#1640) If we have a chain of generators/coroutines that are 'yield from'ing each other, then resuming the stack works like: - call send() on the outermost generator - this enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - which calls send() on the next generator - which enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - ...etc. However, every time we enter _PyEval_EvalFrameDefault, the first thing we do is to check for pending signals, and if there are any then we run the signal handler. And if it raises an exception, then we immediately propagate that exception *instead* of starting to execute bytecode. This means that e.g. a SIGINT at the wrong moment can "break the chain" – it can be raised in the middle of our yield from chain, with the bottom part of the stack abandoned for the garbage collector. The fix is pretty simple: there's already a special case in _PyEval_EvalFrameEx where it skips running signal handlers if the next opcode is SETUP_FINALLY. (I don't see how this accomplishes anything useful, but that's another story.) If we extend this check to also skip running signal handlers when the next opcode is YIELD_FROM, then that closes the hole – now the exception can only be raised at the innermost stack frame. This shouldn't have any performance implications, because the opcode check happens inside the "slow path" after we've already determined that there's a pending signal or something similar for us to process; the vast majority of the time this isn't true and the new check doesn't run at all.. (cherry picked from commit ab4413a7e9bda95b6fcd517073e2a51dafaa1624)
* bpo-30524: Write unit tests for FASTCALL (#2022) (#2030)Victor Stinner2017-06-091-0/+176
| | | | | | | | Test C functions: * _PyObject_FastCall() * _PyObject_FastCallDict() * _PyObject_FastCallKeywords() (cherry picked from commit 3b5cf85edc188345668f987c824a2acb338a7816)
* [3.6] IDLE test_textview: add comments and test, increase coverage to 100% ↵terryjreedy2017-06-092-9/+25
| | | | | (GH-1641) (#2018) (cherry picked from commit 295304d412700cc6621bb592109fa42249a9dcdb)
* [3.6] bpo-30529: Fix errors for invalid whitespaces in f-string ↵Serhiy Storchaka2017-06-081-0/+10
| | | | | | | | subexpressions. (GH-1888) (#2013) 'invalid character in identifier' now is raised instead of 'f-string: empty expression not allowed' if a subexpression contains only whitespaces and they are not accepted by Python parser. (cherry picked from commit 2e9cd58)
* bpo-30418: Popen.communicate() always ignore EINVAL (#2002) (#2004)Victor Stinner2017-06-081-6/+8
| | | | | | On Windows, subprocess.Popen.communicate() now also ignore EINVAL on stdin.write() if the child process is still running but closed the pipe. (cherry picked from commit d52aa31378ae43e044a300edfe8285954c167216)