]> granicus.if.org Git - python/log
python
6 years agobpo-33752: Fix a file leak in test_dbm. (GH-7376)
Miss Islington (bot) [Tue, 5 Jun 2018 13:50:56 +0000 (06:50 -0700)]
bpo-33752: Fix a file leak in test_dbm. (GH-7376)

With addCleanup() f.close() was executed after tearDown().
(cherry picked from commit 6592d7fe11477f8f974d2d4a85c3382a1ad05217)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Miss Islington (bot) [Tue, 5 Jun 2018 13:21:04 +0000 (06:21 -0700)]
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
Miss Islington (bot) [Tue, 5 Jun 2018 12:03:02 +0000 (05:03 -0700)]
bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)

(cherry picked from commit af1ec97a6d1dde68b2dc0ee9b78965eb219061a8)

Co-authored-by: Tobias Kunze <r@rixx.de>
6 years agobpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)
Miss Islington (bot) [Tue, 5 Jun 2018 10:13:28 +0000 (03:13 -0700)]
bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)

(cherry picked from commit 5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)
Miss Islington (bot) [Mon, 4 Jun 2018 22:25:12 +0000 (15:25 -0700)]
bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)

(cherry picked from commit f822549653d8d09bffff5b7dcddfdf12679a787c)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)
Miss Islington (bot) [Mon, 4 Jun 2018 20:41:49 +0000 (13:41 -0700)]
bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)

(cherry picked from commit 2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-31849: Fix warning in pyhash.c (GH-6799)
Miss Islington (bot) [Mon, 4 Jun 2018 17:31:07 +0000 (10:31 -0700)]
bpo-31849: Fix warning in pyhash.c (GH-6799)

(cherry picked from commit a8eb58546b37a7cd5f332f019bb07388f5212c2d)

Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
6 years agobpo-27902: Add compatibility note to Profile docs (GH-7295)
Miss Islington (bot) [Mon, 4 Jun 2018 17:25:37 +0000 (10:25 -0700)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)

(cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230)

Co-authored-by: Tobias Kunze <r@rixx.de>
6 years agobpo-33509: Fix test_warnings for python3 -Werror (GH-7365)
Miss Islington (bot) [Mon, 4 Jun 2018 17:23:41 +0000 (10:23 -0700)]
bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)

Fix test_warnings.test_module_globals() when python3 is run with
-Werror.
(cherry picked from commit e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
Miss Islington (bot) [Mon, 4 Jun 2018 17:17:28 +0000 (10:17 -0700)]
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)

The bytes parameter uses big endian.
(cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83)

Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
6 years agobpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
Miss Islington (bot) [Mon, 4 Jun 2018 16:33:23 +0000 (09:33 -0700)]
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)

(cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33734: asyncio/ssl: a bunch of bugfixes (GH-7321) (GH-7396)
Miss Islington (bot) [Mon, 4 Jun 2018 16:05:46 +0000 (09:05 -0700)]
bpo-33734: asyncio/ssl: a bunch of bugfixes (GH-7321) (GH-7396)

* Fix AttributeError (not all SSL exceptions have 'errno' attribute)

* Increase default handshake timeout from 10 to 60 seconds
* Make sure start_tls can be cancelled correctly
* Make sure any error in SSLProtocol gets propagated (instead of just being logged)
(cherry picked from commit 9602643120a509858d0bee4215d7f150e6125468)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33664: Scroll IDLE editor text by lines (GH-7351)
Miss Islington (bot) [Mon, 4 Jun 2018 16:05:24 +0000 (09:05 -0700)]
bpo-33664: Scroll IDLE editor text by lines (GH-7351)

Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agoRegenerate configure after changing configure.ac in GH-6987. (GH-7344) (GH-7382)
Miss Islington (bot) [Mon, 4 Jun 2018 05:41:12 +0000 (22:41 -0700)]
Regenerate configure after changing configure.ac in GH-6987. (GH-7344) (GH-7382)

(cherry picked from commit 88cc339ee377f3acd4c6936be8edb6be4fa48657)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371)
Miss Islington (bot) [Mon, 4 Jun 2018 03:16:48 +0000 (20:16 -0700)]
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371)

It depended on a global variable set by other tests.
(cherry picked from commit 7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7370)
Miss Islington (bot) [Mon, 4 Jun 2018 03:15:10 +0000 (20:15 -0700)]
bpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7370)

(cherry picked from commit e36837cb71032ccfa713e75623b314f091dc22bb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33764: Appveyor fixes (GH-7364) (GH-7369)
Miss Islington (bot) [Mon, 4 Jun 2018 01:16:59 +0000 (18:16 -0700)]
bpo-33764: Appveyor fixes (GH-7364) (GH-7369)

* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests
(cherry picked from commit 47a6c79f0986ce9a84d0efc3c565b28255042911)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
6 years agobpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)
Miss Islington (bot) [Sun, 3 Jun 2018 19:02:20 +0000 (12:02 -0700)]
bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)

(cherry picked from commit 13f51d9eec569e08475390e2a8f49f4afed1ea06)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7357)
Miss Islington (bot) [Sun, 3 Jun 2018 17:36:34 +0000 (10:36 -0700)]
bpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7357)

(cherry picked from commit e95dfc5006d19e59c7871faa9973356844ddb3ae)

Co-authored-by: Stefan Krah <skrah@bytereef.org>
6 years agobpo-33744: Fix test_uu. (GH-7350) (GH-7352)
Miss Islington (bot) [Sun, 3 Jun 2018 15:23:53 +0000 (08:23 -0700)]
bpo-33744: Fix test_uu. (GH-7350) (GH-7352)

Separate tests leaked files or were depended on files leaked in other tests.
(cherry picked from commit 027f95c736457f12c5713d9cf5b95ac335e583df)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
Miss Islington (bot) [Sat, 2 Jun 2018 15:40:00 +0000 (08:40 -0700)]
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)

`writerows()` takes an iterable.
(cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoFix typo in datamodel.rst (GH-6964)
Miss Islington (bot) [Sat, 2 Jun 2018 14:53:30 +0000 (07:53 -0700)]
Fix typo in datamodel.rst (GH-6964)

This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
(cherry picked from commit 00818c8ffd657f9ec727e366bfffd9c2135fa5ab)

Co-authored-by: Zach Mitchell <zmitchell@users.noreply.github.com>
6 years agoDocs: fix some wrong words (GH-6987)
Miss Islington (bot) [Sat, 2 Jun 2018 14:36:19 +0000 (07:36 -0700)]
Docs: fix some wrong words (GH-6987)

Fix typos in code comments: bdb.py and configure.ac.
(cherry picked from commit b5c246f833d95991fed728c3845176dd661cd5ea)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
6 years agobpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)
Miss Islington (bot) [Sat, 2 Jun 2018 02:16:04 +0000 (19:16 -0700)]
bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)

The difference from before is that the settings are now on the
Highlights tab instead of the Extensions tab and only change one theme
at a time instead of all themes. The default for light themes is black
on light gray, as before. The default for the IDLE Dark theme is white
on dark gray, which better fits the dark theme.

When one starts IDLE from a console and loads a custom theme without
definitions for 'context', one will see a warning message on the console.
To stop the warning, go to Options => Configure IDLE => Highlights,
select the custom theme if not selected already, select 'Code Context',
and select foreground and background colors.
(cherry picked from commit de6516264e793be991f692fdd892707afb9104a7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
Miss Islington (bot) [Fri, 1 Jun 2018 23:45:54 +0000 (16:45 -0700)]
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)

Instead of displaying a fixed number of lines, some blank, Code Context
now displays the variable number of actual context lines.  When there
are no context lines, it shows a single blank line to indicate that the
feature is turned on.

The Code Context configuration option is changed from 'numlines'
(default 3) to 'maxlines' (default 15) to avoid possible interference
between user settings for the old and new versions of Code Context.
(cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) ...
Miss Islington (bot) [Fri, 1 Jun 2018 17:57:12 +0000 (10:57 -0700)]
bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) (#7300)

(cherry picked from commit c0d341d49b3ffc8b0037e501c246271be9c69f55)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation...
Miss Islington (bot) [Fri, 1 Jun 2018 17:54:30 +0000 (10:54 -0700)]
bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) (GH-7302)

(cherry picked from commit 23cee80cfade1a9019c52b3a17d8e5c1b5db17e2)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)
Miss Islington (bot) [Fri, 1 Jun 2018 15:21:21 +0000 (08:21 -0700)]
bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)

Use also support.SOCK_MAX_SIZE, not only support.PIPE_MAX_SIZE, to
get the size for a blocking send into a multiprocessing pipe.
(cherry picked from commit 252f6abe0a9430f4ae7588c0cb50a6ff141bebe3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309)
Victor Stinner [Fri, 1 Jun 2018 12:07:50 +0000 (14:07 +0200)]
bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309)

socketserver.ThreadingMixIn no longer tracks active threads if
block_on_close is false.

6 years agobpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7306)
Miss Islington (bot) [Fri, 1 Jun 2018 10:50:24 +0000 (03:50 -0700)]
bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7306)

(cherry picked from commit e905c84494526363086f66a979e317e155bf9536)

Co-authored-by: pkerling <pkerling@casix.org>
6 years agobpo-33718: regrtest: update from master (GH-7305)
Victor Stinner [Fri, 1 Jun 2018 10:29:39 +0000 (12:29 +0200)]
bpo-33718: regrtest: update from master (GH-7305)

6 years agobpo-33692: Update pythoninfo from master (GH-7298)
Victor Stinner [Fri, 1 Jun 2018 10:10:07 +0000 (12:10 +0200)]
bpo-33692: Update pythoninfo from master (GH-7298)

* bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293)
* bpo-33717: pythoninfo: add CC --version (GH-7290)

6 years agobpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)
Miss Islington (bot) [Thu, 31 May 2018 13:43:21 +0000 (06:43 -0700)]
bpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)

Fix a crash in Python initialization when parsing the command line
options.

Fix memcpy() size parameter: previously, we read one wchar_t after
the end of _PyOS_optarg. Moreover, don't copy the trailingg NUL
character: we write it manually anyway.

Thanks Christoph Gohlke for the bug report and the fix!
(cherry picked from commit 58d1683255abb0df4fc70960da6121aeaa41e1d1)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-32911: Update the historical note about the magic number. (GH-7272)
Serhiy Storchaka [Thu, 31 May 2018 06:12:15 +0000 (09:12 +0300)]
bpo-32911: Update the historical note about the magic number. (GH-7272)

6 years agobpo-33641: Convert RFC references into links. (GH-7103)
Miss Islington (bot) [Thu, 31 May 2018 05:33:23 +0000 (22:33 -0700)]
bpo-33641: Convert RFC references into links. (GH-7103)

85% of them are already links.
(cherry picked from commit 0a36ac1a09587735237c5978ebd046313922869c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
Miss Islington (bot) [Thu, 31 May 2018 05:31:21 +0000 (22:31 -0700)]
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)

(cherry picked from commit a5c42284e69fb309bdd17ee8c1c120d1be383012)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix "ditribution" typo in NEWS entry. (GH-7275)
Ned Deily [Thu, 31 May 2018 05:19:58 +0000 (01:19 -0400)]
Fix "ditribution" typo in NEWS entry. (GH-7275)

6 years agobpo-33532: Fix multiprocessing test_ignore() (GH-7262)
Miss Islington (bot) [Thu, 31 May 2018 03:28:04 +0000 (20:28 -0700)]
bpo-33532: Fix multiprocessing test_ignore() (GH-7262)

Fix test_ignore() of multiprocessing tests like
test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make
sure that send_bytes() blocks.
(cherry picked from commit 5d6c7ed5e340b2311a15f34e968d4bef09c71922)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoBump to 3.7.0b5+
Ned Deily [Thu, 31 May 2018 00:53:43 +0000 (20:53 -0400)]
Bump to 3.7.0b5+

6 years ago3.7.0b5 v3.7.0b5
Ned Deily [Wed, 30 May 2018 23:50:49 +0000 (19:50 -0400)]
3.7.0b5

6 years agobpo-31368: Enhance os.preadv() documentation (GH-7254)
Miss Islington (bot) [Wed, 30 May 2018 23:22:13 +0000 (16:22 -0700)]
bpo-31368: Enhance os.preadv() documentation (GH-7254)

(cherry picked from commit 02e2a085dc1740b1cbf4ba2ed77335c84ce8a367)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years ago3.6 what's new: fix a reference to PEP 528 (GH-7113) (#7256)
Miss Islington (bot) [Wed, 30 May 2018 23:09:00 +0000 (16:09 -0700)]
3.6 what's new: fix a reference to PEP 528 (GH-7113) (#7256)

(cherry picked from commit 495e567a2b3bbe3b99f0c253edf12997a9ff4ee1)

Co-authored-by: Dmitry Shachnev <mitya57@users.noreply.github.com>
6 years agobpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
Miss Islington (bot) [Wed, 30 May 2018 17:32:33 +0000 (10:32 -0700)]
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)

(cherry picked from commit 05f1c8902c78dce66aed067444e2b973221bae2b)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agoImprove ensurepip's --help (GH-4686) (GH-7238)
Miss Islington (bot) [Wed, 30 May 2018 08:34:32 +0000 (01:34 -0700)]
Improve ensurepip's --help (GH-4686) (GH-7238)

* Add a space to ensurepip's --altinstall option
* Add periods to the arguments of ensurepip that didn't have it

This makes --help for all optional arguments consistent and also makes it
consistent with pip --help.
(cherry picked from commit e9537ad6a128924dd610bea2268065500c174181)

Co-authored-by: Wieland Hoffmann <mineo@users.noreply.github.com>
6 years ago[3.7] bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217...
Miss Islington (bot) [Wed, 30 May 2018 01:26:22 +0000 (18:26 -0700)]
[3.7] bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217) (#7227)

* bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217)

Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed
futures when a timeout accurs.
(cherry picked from commit f9aeca2085464838f04bf13f816a1f861d43541f)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* Update asyncio-task.rst

6 years agoRevert "bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)" (GH-7233)
Yury Selivanov [Wed, 30 May 2018 00:56:33 +0000 (20:56 -0400)]
Revert "bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)" (GH-7233)

This reverts commit 2a7eb0b531656f4a77d85078e6e009e4b3639ef9.

6 years agobpo-32684: Fix nits in tests (GH-7225) (#7231)
Miss Islington (bot) [Wed, 30 May 2018 00:40:54 +0000 (17:40 -0700)]
bpo-32684: Fix nits in tests (GH-7225) (#7231)

(cherry picked from commit 6f75bae74866b6acf638e3aa610d830d55b7e314)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years ago[3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH...
Julien Palard [Wed, 30 May 2018 00:24:17 +0000 (02:24 +0200)]
[3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195) (GH-7219)

* [3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195).
(cherry picked from commit 1cee216cf383eade641aed22f4ec7d4cb565ecff)

* Fix whatsnew entry about ThreadedHTTPServer. (GH-7220)
(cherry picked from commit a34e424bdbc62b4d83593af1c0d459d8aaac90f3)

6 years agobpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216)
Miss Islington (bot) [Tue, 29 May 2018 22:37:06 +0000 (15:37 -0700)]
bpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216)

Currently, asyncio.wait_for(fut), upon reaching the timeout deadline,
cancels the future and returns immediately.  This is problematic for
when *fut* is a Task, because it will be left running for an arbitrary
amount of time.  This behavior is iself surprising and may lead to
related bugs such as the one described in bpo-33638:

    condition = asyncio.Condition()
    async with condition:
        await asyncio.wait_for(condition.wait(), timeout=0.5)

Currently, instead of raising a TimeoutError, the above code will fail
with `RuntimeError: cannot wait on un-acquired lock`, because
`__aexit__` is reached _before_ `condition.wait()` finishes its
cancellation and re-acquires the condition lock.

To resolve this, make `wait_for` await for the task cancellation.
The tradeoff here is that the `timeout` promise may be broken if the
task decides to handle its cancellation in a slow way.  This represents
a behavior change and should probably not be back-patched to 3.6 and
earlier.
(cherry picked from commit e2b340ab4196e1beb902327f503574b5d7369185)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
6 years agobpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209...
Miss Islington (bot) [Tue, 29 May 2018 22:29:12 +0000 (15:29 -0700)]
bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209) (#7222)

(cherry picked from commit 863b6749093a86810c4077112a857363410cc221)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)
Miss Islington (bot) [Tue, 29 May 2018 21:09:17 +0000 (14:09 -0700)]
bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)

Original patch by Dan O'Reilly.
(cherry picked from commit 5d97b7bcc19496617bf8c448d2f149cc28c73bc7)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-30935: update get_event_loop docs (GH-2731)
Miss Islington (bot) [Tue, 29 May 2018 19:28:57 +0000 (12:28 -0700)]
bpo-30935: update get_event_loop docs (GH-2731)

(cherry picked from commit e55de2d77f10d524be0b426e587fbc820f76de71)

Co-authored-by: Mandeep Singh <daxlab@users.noreply.github.com>
6 years agoAttempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211)
Miss Islington (bot) [Tue, 29 May 2018 18:32:07 +0000 (11:32 -0700)]
Attempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211)

(cherry picked from commit 4fadf0c639476fa50a40ec6f119f98c01e56ad95)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (GH-7204)
Miss Islington (bot) [Tue, 29 May 2018 15:43:54 +0000 (08:43 -0700)]
bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (GH-7204)

(cherry picked from commit a9cab433bbf02f3a1de59d14dc8f583181ffe2d5)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
6 years agobpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)
Miss Islington (bot) [Tue, 29 May 2018 14:21:46 +0000 (07:21 -0700)]
bpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)

Use transport.set_write_buffer_limits() in sendfile tests of
test_asyncio to make sure that the protocol is paused after sending
4 KiB. Previously,
test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed
on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
(cherry picked from commit 9551f7719213243fd96c4f284079243773c26b3c)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33654: Support protocol type switching in SSLTransport.set_protocol() (GH-7194)
Miss Islington (bot) [Tue, 29 May 2018 09:19:09 +0000 (02:19 -0700)]
bpo-33654: Support protocol type switching in SSLTransport.set_protocol() (GH-7194)

(cherry picked from commit 2179022d94937d7b0600b0dc192ca6fa5f53d830)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-32911: Revert bpo-29463. (GH-7121)
Serhiy Storchaka [Tue, 29 May 2018 07:49:10 +0000 (10:49 +0300)]
bpo-32911: Revert bpo-29463. (GH-7121)

Remove the docstring attribute of AST types and restore docstring
expression as a first stmt in their body.

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33674: Pause the transport as early as possible (GH-7192)
Miss Islington (bot) [Tue, 29 May 2018 05:59:03 +0000 (22:59 -0700)]
bpo-33674: Pause the transport as early as possible (GH-7192)

(cherry picked from commit f295587c45f96b62d24f9a12cef6931b0805f596)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-32878: Adds documentation for st_ino on Windows (GH-5764) (#7189)
Miss Islington (bot) [Tue, 29 May 2018 01:49:42 +0000 (18:49 -0700)]
bpo-32878: Adds documentation for st_ino on Windows (GH-5764) (#7189)

(cherry picked from commit 3e51a3d5927c680d5410ff11ff8d5e5bb9ffb1e7)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-33670: Expose Sphinx errorlevel (GH-7156)
Miss Islington (bot) [Tue, 29 May 2018 01:45:34 +0000 (18:45 -0700)]
bpo-33670: Expose Sphinx errorlevel (GH-7156)

(cherry picked from commit 8c1ad0c4f69390fded09012e1ed5242c45753bb4)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (#7187)
Miss Islington (bot) [Tue, 29 May 2018 01:44:16 +0000 (18:44 -0700)]
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (#7187)

Fix a race condition in SSLProtocol.connection_made() of
asyncio.sslproto: start immediately the handshake instead of using
call_soon(). Previously, data_received() could be called before the
handshake started, causing the handshake to hang or fail.
(cherry picked from commit be00a5583a2cb696335c527b921d1868266a42c6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172) (#7182)
Miss Islington (bot) [Tue, 29 May 2018 01:42:45 +0000 (18:42 -0700)]
bpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172) (#7182)

(cherry picked from commit 7165754b6b5f3b7c07050d921fa1c58bba5f0ff1)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
Miss Islington (bot) [Tue, 29 May 2018 01:03:38 +0000 (18:03 -0700)]
bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)

(cherry picked from commit 3d3e66c2daebd8e6b18944eac7546168c0006c78)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)
Miss Islington (bot) [Tue, 29 May 2018 00:16:43 +0000 (17:16 -0700)]
bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)

(cherry picked from commit 416c1ebd9896b394790dcb4f9f035b1a44ebe9ff)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)
Miss Islington (bot) [Mon, 28 May 2018 22:50:02 +0000 (15:50 -0700)]
bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)

(cherry picked from commit fdccfe09f0b10776645fdb04a0783d6864c32b21)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobro-33614: Override exit code in find_msbuild.bat (GH-7169)
Miss Islington (bot) [Mon, 28 May 2018 22:39:25 +0000 (15:39 -0700)]
bro-33614: Override exit code in find_msbuild.bat (GH-7169)

(cherry picked from commit f9b364fe51ac083e3e423b1e2cefe0e1ad7d9a60)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161) (GH-7173)
Miss Islington (bot) [Mon, 28 May 2018 22:31:07 +0000 (15:31 -0700)]
bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161) (GH-7173)

(cherry picked from commit 989b9e0e6d7dd2fa911f9bfd4744e7f3a82d6006)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-32458: Further tune start_tls tests (GH-7166)
Miss Islington (bot) [Mon, 28 May 2018 20:44:12 +0000 (13:44 -0700)]
bpo-32458: Further tune start_tls tests (GH-7166)

(cherry picked from commit 8267ea2e84d355f00654dec3ad782fc7b1f680f1)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33614: Ensures module definition files for the stable ABI on Windows are correctl...
Miss Islington (bot) [Mon, 28 May 2018 19:51:16 +0000 (12:51 -0700)]
bpo-33614: Ensures module definition files for the stable ABI on Windows are correctly regenerated. (GH-7165)

(cherry picked from commit e97ba4c690613d734843db218aeedce2f0e5937f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)
Miss Islington (bot) [Mon, 28 May 2018 18:50:45 +0000 (11:50 -0700)]
bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)

In this commit:

* Support BufferedProtocol in set_protocol() and start_tls()
* Fix proactor to cancel readers reliably
* Update tests to be compatible with OpenSSL 1.1.1
* Clarify BufferedProtocol docs
* Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving
* Rewrite test_start_tls_server_1
(cherry picked from commit dbf102271fcc316f353c7e0a283811b661d128f2)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836) ...
Miss Islington (bot) [Mon, 28 May 2018 18:42:50 +0000 (11:42 -0700)]
bpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836) (#7162)

(cherry picked from commit e549c4be5fb010f5faf12236af8faa720a1429be)

Co-authored-by: jimmylai <albert_chs@yahoo.com.tw>
6 years agobpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (GH...
Miss Islington (bot) [Mon, 28 May 2018 16:04:09 +0000 (09:04 -0700)]
bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (GH-7153)

Fixed bug where calling write_eof() on a _SelectorSocketTransport after
it's already closed raises AttributeError.
(cherry picked from commit 23f587e395e41bd5e116312b036183f42bc4159b)

Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>
6 years agobpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (GH-7080)
Miss Islington (bot) [Mon, 28 May 2018 15:28:12 +0000 (08:28 -0700)]
bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (GH-7080)

(cherry picked from commit 35230d08e09de4e2e52658d5cb09e5b0ca965418)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) (GH-7150)
Miss Islington (bot) [Mon, 28 May 2018 12:52:03 +0000 (05:52 -0700)]
bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) (GH-7150)

(cherry picked from commit 08c5aca9d13b24b35faf89ebd26fc348ae1731b2)

Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
6 years agobpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. ...
Miss Islington (bot) [Mon, 28 May 2018 12:29:13 +0000 (05:29 -0700)]
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702) (GH-6704)

(cherry picked from commit c4994dc00d9828a99510f3851da93b0e1c18361d)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33652: Remove __getstate__ and __setstate__ methods in typing. (GH-7144)
Miss Islington (bot) [Mon, 28 May 2018 11:21:44 +0000 (04:21 -0700)]
bpo-33652: Remove __getstate__ and __setstate__ methods in typing. (GH-7144)

(cherry picked from commit 97b523db7c79c18c48516fba9410014d9896abc4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)
Miss Islington (bot) [Sat, 26 May 2018 21:57:01 +0000 (14:57 -0700)]
bpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)

The failure may be due to the use oF ZFS, a case we already ignore
for Solaris-based systems where ZFS is frequently used.
(cherry picked from commit 09c4a7dee2eb39b515e5f499f184257cdbe9cb42)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type...
Miss Islington (bot) [Sat, 26 May 2018 18:39:52 +0000 (11:39 -0700)]
bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859)

(cherry picked from commit d518d8bc8d5dac1a1270612f424d33e0e5afc2b5)

Co-authored-by: Oren Milman <orenmn@gmail.com>
6 years agobpo-33652: Improve pickle support in the typing module. (GH-7123)
Miss Islington (bot) [Sat, 26 May 2018 18:38:00 +0000 (11:38 -0700)]
bpo-33652: Improve pickle support in the typing module. (GH-7123)

Pickles of type variables and subscripted generics are now future-proof
and compatible with older Python versions.
(cherry picked from commit 09f3221fbbf72692308149054e4f7668b08b22eb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.7] bpo-32769: A new take on annotations/type hinting glossary entries (GH-6829...
Andrés Delfino [Sat, 26 May 2018 17:17:33 +0000 (14:17 -0300)]
[3.7] bpo-32769: A new take on annotations/type hinting glossary entries (GH-6829) (#7127)

(cherry picked from commit 6e33f810c9e3a549c9379f24cf1d1752c29195f0)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)
Miss Islington (bot) [Sat, 26 May 2018 08:33:23 +0000 (01:33 -0700)]
bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)

(cherry picked from commit 19de8b3dd742fb53681478ad4fff57ed7c37a953)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agotest.regrtest: flush stdout when display progress (GH-7105)
Miss Islington (bot) [Fri, 25 May 2018 16:46:33 +0000 (09:46 -0700)]
test.regrtest: flush stdout when display progress (GH-7105)

runtest_mp.py: call print() with flush=True.
(cherry picked from commit 4f0bc7f7ab6ec23594b0efe11d082f78ae42abed)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33012: Add -Wno-cast-function-type for gcc 8. (GH-6757)
Serhiy Storchaka [Fri, 25 May 2018 10:16:51 +0000 (13:16 +0300)]
bpo-33012: Add -Wno-cast-function-type for gcc 8. (GH-6757)

6 years agoDocument typing.NoReturn (GH-7107)
Miss Islington (bot) [Fri, 25 May 2018 04:51:14 +0000 (21:51 -0700)]
Document typing.NoReturn (GH-7107)

(cherry picked from commit 6e413f4327a68c4c7d62e0b6d0f9144be11dd6cd)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-32493: Fix uuid.uuid1() on FreeBSD. (GH-7099)
Miss Islington (bot) [Thu, 24 May 2018 23:22:59 +0000 (16:22 -0700)]
bpo-32493: Fix uuid.uuid1() on FreeBSD. (GH-7099)

Use uuid_enc_be() if available to encode UUID to bytes as big endian.
(cherry picked from commit 17d8830312d82e7de42ab89739b0771f712645ff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33629: Prevent coredump in test_importlib (GH-7090)
Miss Islington (bot) [Thu, 24 May 2018 20:44:56 +0000 (13:44 -0700)]
bpo-33629: Prevent coredump in test_importlib (GH-7090)

bpo-32374, bpo-33629: Use support.SuppressCrashReport() in
test_bad_traverse() of MultiPhaseExtensionModuleTests to prevent
leaking a core dump file.
(cherry picked from commit 483000e164ec68717d335767b223ae31b4b720cf)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33622: Fix issues with handling errors in the GC. (GH-7078)
Miss Islington (bot) [Thu, 24 May 2018 12:39:08 +0000 (05:39 -0700)]
bpo-33622: Fix issues with handling errors in the GC. (GH-7078)

* Fixed a leak when the GC fails to add an object with __del__ into
  the gc.garbage list.
* PyGC_Collect() can now be called when an exception is set and
  preserves it.
* Fixed an undefined behavior with comparing a dead pointer with NULL.
(cherry picked from commit 301e3cc8a5bc68c5347ab6ac6f83428000d31ab2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)
Miss Islington (bot) [Thu, 24 May 2018 03:26:54 +0000 (20:26 -0700)]
bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests  (GH-7085)

(cherry picked from commit 8506016f904ba6bc27bf5261f27a0bdd5945cd26)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33109: argparse subparsers are once again not required by default (GH-6919) ...
Miss Islington (bot) [Thu, 24 May 2018 02:22:46 +0000 (19:22 -0700)]
bpo-33109: argparse subparsers are once again not required by default (GH-6919) (GH-7089)

bpo-26510 in 3.7.0a2 changed the behavior of argparse to make
subparsers required by default, returning to the behavior of 2.7
and 3.2. The behavior was changed in 3.3 to be no longer required.
While it might make more sense to have the default to required,
compatibility with 3.3 through 3.6 is probably less disruptive
than trying to reintroduce compatibility with 2.7 at this point.
This change restores the 3.6 behavior.
(cherry picked from commit 8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33540: Add block_on_close attr to socketserver (GH-6911)
Miss Islington (bot) [Thu, 24 May 2018 01:34:43 +0000 (18:34 -0700)]
bpo-33540: Add block_on_close attr to socketserver (GH-6911)

Add a new block_on_close class attribute to ForkingMixIn and
ThreadingMixIn classes of socketserver to opt-in for pre-3.7 behaviour.
(cherry picked from commit 453bd0bc65b7ea6a18c43da69143ab10d54c0a35)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years ago[3.7] bpo-33353: Fix test_asyncio on FreeBSD (GH-7087)
Victor Stinner [Thu, 24 May 2018 01:21:14 +0000 (03:21 +0200)]
[3.7] bpo-33353: Fix test_asyncio on FreeBSD (GH-7087)

* bpo-33353: test_asyncio uses smaller sendfile data (#7083)

bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket
buffers of 1 kB "to test on relative small data sets". Send only
160 KiB rather 10 MB to make the test much faster.

Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB.

On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take
less than 1 second, instead of 18 seconds.

On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now
the 3 tests pass in less than 1 seconds.

(cherry picked from commit 2932755cc11fd82b4908d60b24b837aa4f3028e6)

* bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086)

bpo-32622, bpo-33353: On macOS, sock.connect() changes the
SO_SNDBUF value. Only set SO_SNDBUF and SO_RCVBUF buffer sizes
once a socket is connected or binded, not before.

(cherry picked from commit b97de3dd86046ac46567146d86a69d4f78ea09db)

6 years ago[3.7] bpo-33618: Enable TLS 1.3 in tests (GH-7079) (GH-7082)
Miss Islington (bot) [Wed, 23 May 2018 20:49:04 +0000 (13:49 -0700)]
[3.7] bpo-33618: Enable TLS 1.3 in tests (GH-7079) (GH-7082)

TLS 1.3 behaves slightly different than TLS 1.2. Session tickets and TLS
client cert auth are now handled after the initialy handshake. Tests now
either send/recv data to trigger session and client certs. Or tests
ignore ConnectionResetError / BrokenPipeError on the server side to
handle clients that force-close the socket fd.

To test TLS 1.3, OpenSSL 1.1.1-pre7-dev (git master + OpenSSL PR
https://github.com/openssl/openssl/pull/6340) is required.

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

6 years agobpo-33612: Remove PyThreadState_Clear() assertion (GH-7069) (GH-7074)
Miss Islington (bot) [Wed, 23 May 2018 19:58:21 +0000 (12:58 -0700)]
bpo-33612: Remove PyThreadState_Clear() assertion (GH-7069) (GH-7074)

bpo-25612, bpo-33612: Remove an assertion from PyThreadState_Clear()
which failed at Python shutdown or on fork if a thread was running a
generator.
(cherry picked from commit b6dccf54fd3bac9c87348d96f9d6b571608c15bc)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-32436: Document PEP 567 changes to asyncio. (GH-7073)
Miss Islington (bot) [Wed, 23 May 2018 17:59:17 +0000 (10:59 -0700)]
bpo-32436: Document PEP 567 changes to asyncio. (GH-7073)

(cherry picked from commit 28b9178023a445b1da2694774c265cd4b7a244ec)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agoReverse the meaning of is_argument when used for type check (GH-7039)
Miss Islington (bot) [Wed, 23 May 2018 03:51:15 +0000 (20:51 -0700)]
Reverse the meaning of is_argument when used for type check (GH-7039)

(cherry picked from commit 0e61dffdbaf39ac5916ce431ff3b37db8faa1d2d)

Co-authored-by: Nina Zakharenko <nzakharenko@gmail.com>
6 years agobpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)
Miss Islington (bot) [Tue, 22 May 2018 23:40:44 +0000 (16:40 -0700)]
bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)

bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
(cherry picked from commit 8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
6 years agobpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976)
Miss Islington (bot) [Tue, 22 May 2018 21:40:46 +0000 (14:40 -0700)]
bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976)

Change TLS 1.3 cipher suite settings for compatibility with OpenSSL
1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by
default.

Also update multissltests and Travis config to test with latest OpenSSL.

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.7] Add missed details of the C API introduced in 3.7. (GH-7047) (GH-7061)
Serhiy Storchaka [Tue, 22 May 2018 19:26:42 +0000 (22:26 +0300)]
[3.7] Add missed details of the C API introduced in 3.7. (GH-7047) (GH-7061)

* Set the limited API version for PyImport_GetModule and PyOS_*Fork
  functions.
* Add PyImport_GetModule and Py_UTF8Mode in PC/python3.def.
* Add several functions in Doc/data/refcounts.dat.
(cherry picked from commit 4e29f566e8821c09d8274eadcdd355e8b1284b8b)

6 years agobpo-33592: Document the C API in PEP 567 (contextvars) (GH-7033)
Miss Islington (bot) [Tue, 22 May 2018 17:58:01 +0000 (10:58 -0700)]
bpo-33592: Document the C API in PEP 567 (contextvars) (GH-7033)

(cherry picked from commit b2f5f59ae15564b991f3ca4850e6ad28d9faacbc)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
6 years agoImprove comments in test_idle.py. (GH-7057)
Miss Islington (bot) [Tue, 22 May 2018 17:43:55 +0000 (10:43 -0700)]
Improve comments in test_idle.py. (GH-7057)

(cherry picked from commit 2a6d5da1d35b4a5342f6347d75298e2bec8194ed)

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