]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)
Miss Islington (bot) [Mon, 1 Jul 2019 12:42:08 +0000 (05:42 -0700)] 
bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)

bdist_wininst depends on MBCS codec, unavailable on non-Windows,
and bdist_wininst have not worked since at least Python 3.2, possibly
never on Python 3.

Here we document that bdist_wininst is only supported on Windows,
and we mark it unsupported otherwise to skip tests.

Distributors of Python 3 can now safely drop the bdist_wininst .exe files
without the need to skip bdist_wininst related tests.
(cherry picked from commit 72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
6 years agobpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler...
Miss Islington (bot) [Mon, 1 Jul 2019 12:11:38 +0000 (05:11 -0700)] 
bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler. (GH-14498) (GH-14508)

(cherry picked from commit 84de34e39eb9e49b2ae691c6f67df8d7da3561de)

6 years ago[3.7] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH...
Miss Islington (bot) [Mon, 1 Jul 2019 07:07:52 +0000 (00:07 -0700)] 
[3.7] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH-14496)

Post-handshake authentication is required for conditional client cert authentication with TLS 1.3.

https://bugs.python.org/issue37440
(cherry picked from commit d1bd6e79da1ee56dc1b902d804216ffd267399db)

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37440

6 years ago[3.7] bpo-37428: Don't set PHA verify flag on client side (GH-14421) (GH-14493)
Miss Islington (bot) [Mon, 1 Jul 2019 06:51:40 +0000 (23:51 -0700)] 
[3.7] bpo-37428: Don't set PHA verify flag on client side (GH-14421) (GH-14493)

SSLContext.post_handshake_auth = True no longer sets
SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
option is documented as ignored for clients, OpenSSL implicitly enables cert
chain validation when the flag is set.

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

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37428

6 years agobpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
Miss Islington (bot) [Sun, 30 Jun 2019 04:38:11 +0000 (21:38 -0700)] 
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)

* Added documentation for textwrap.dedent behavior.
* Remove an obsolete note about pre-2.5 behavior from the docstring.
(cherry picked from commit eb97b9211e7c99841d6cae8c63893b3525d5a401)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
6 years agobpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
Miss Islington (bot) [Sat, 29 Jun 2019 23:16:44 +0000 (16:16 -0700)] 
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)

(cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-37369: Fix path handling when python.exe is used as a symlink (GH-14461)
Steve Dower [Sat, 29 Jun 2019 04:30:44 +0000 (21:30 -0700)] 
bpo-37369: Fix path handling when python.exe is used as a symlink (GH-14461)

6 years agobpo-37369: Fix venv and test symlinking (GH-14456)
Steve Dower [Fri, 28 Jun 2019 18:41:55 +0000 (11:41 -0700)] 
bpo-37369: Fix venv and test symlinking (GH-14456)

6 years agobpo-37369: Fixes path for sys.executable when running from the Microsoft Store (GH...
Steve Dower [Fri, 28 Jun 2019 17:02:13 +0000 (10:02 -0700)] 
bpo-37369: Fixes path for sys.executable when running from the Microsoft Store (GH-14450)

6 years agobpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)
Miss Islington (bot) [Fri, 28 Jun 2019 09:16:30 +0000 (02:16 -0700)] 
bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)

(cherry picked from commit b4bee03087a3c70cb040e2ce569c828860ed8e87)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
6 years agocloses bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)
Miss Islington (bot) [Fri, 28 Jun 2019 04:15:09 +0000 (21:15 -0700)] 
closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)

(cherry picked from commit 3b03b09fc94425915c5b1225e9200a3a95bc827b)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agocloses bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414)
Miss Islington (bot) [Thu, 27 Jun 2019 16:30:41 +0000 (09:30 -0700)] 
closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414)

(cherry picked from commit 45a30af109f69a81576b87ea775863ba12d55316)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
6 years agobpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387...
Miss Islington (bot) [Wed, 26 Jun 2019 22:05:04 +0000 (15:05 -0700)] 
bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14412)

* patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS.
* Raise HeaderParseError instead of continuing when parsing a word.
(cherry picked from commit 7213df7bbfd85378c6e42e1ac63144d5974bdcf6)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
6 years ago[3.7] bpo-37163: dataclasses.replace() now supports the field named "obj". (GH-13877...
Serhiy Storchaka [Wed, 26 Jun 2019 20:03:08 +0000 (23:03 +0300)] 
[3.7] bpo-37163: dataclasses.replace() now supports the field named "obj". (GH-13877) (GH-14405)

(cherry picked from commit f5b89af)

6 years agobpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)
Miss Islington (bot) [Wed, 26 Jun 2019 19:37:57 +0000 (12:37 -0700)] 
bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)

Fix test_wsgiref.testEnviron() to no longer depend on the environment
variables (don't fail if "X" variable is set).

testEnviron() now overrides os.environ to get a deterministic
environment. Test full TestHandler.environ content: not only a few
selected variables.
(cherry picked from commit 5150d327924959639215ed0a78feffc0d88258da)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-37417: Fix error handling in bytearray.extend. (GH-14407)
Miss Islington (bot) [Wed, 26 Jun 2019 19:23:19 +0000 (12:23 -0700)] 
bpo-37417: Fix error handling in bytearray.extend. (GH-14407)

(cherry picked from commit 2a7d596f27b2342caf168a03c95ebf3b56e5dbbd)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
6 years agoImprove Windows commands in tutorial (GH-14401)
Steve Dower [Wed, 26 Jun 2019 17:00:58 +0000 (10:00 -0700)] 
Improve Windows commands in tutorial (GH-14401)

6 years agobpo-37400: Fix test_os.test_chown() (GH-14374) (GH-14378)
Miss Islington (bot) [Tue, 25 Jun 2019 20:25:01 +0000 (13:25 -0700)] 
bpo-37400: Fix test_os.test_chown() (GH-14374) (GH-14378)

Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d982d4ec4ba201bcee14324ae5e0e90581f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years ago[3.7] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119...
Abhilash Raj [Tue, 25 Jun 2019 18:40:41 +0000 (11:40 -0700)] 
[3.7] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) (GH-14381)

When certain malformed messages have content-type set to 'mulitpart/*' but
still have a single part body, iter_attachments can raise AttributeError. This
patch fixes it by returning a None value instead when the body is single part.
(cherry picked from commit 02257012f6d3821d816cb6a7e8461a88a05b9a08)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
https://bugs.python.org/issue33972

6 years agobpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes...
Steve Dower [Tue, 25 Jun 2019 16:12:14 +0000 (09:12 -0700)] 
bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes (GH-14376)

6 years ago[3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304) (GH...
Miss Islington (bot) [Tue, 25 Jun 2019 10:29:18 +0000 (03:29 -0700)] 
[3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304) (GH-14369)

* bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263ba80af4b7733c2df95b527e96953922656)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)
Miss Islington (bot) [Tue, 25 Jun 2019 07:12:29 +0000 (00:12 -0700)] 
bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)

eval() was being called an extra time without a filter for
deprecation warnings.
(cherry picked from commit 9fe42b49c79c453d905d0395150ba0607fbab18b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)
Miss Islington (bot) [Mon, 24 Jun 2019 23:44:07 +0000 (16:44 -0700)] 
bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)

(cherry picked from commit 7fd2ba354ec2304743ffd9ba620e07d113532264)

Co-authored-by: animalize <animalize@users.noreply.github.com>
6 years agobpo-32627: Fix compile error when conflicting `_uuid` headers included (GH-11751) 14350/head
Miss Islington (bot) [Mon, 24 Jun 2019 18:18:22 +0000 (11:18 -0700)] 
bpo-32627: Fix compile error when conflicting `_uuid` headers included (GH-11751)

(cherry picked from commit 6ffd9b05dfade9e3a101fe039157856eb855f82e)

Co-authored-by: ziheng <zihenglv@gmail.com>
6 years agobpo-37124: Fix reference leak in test_msilib (GH-13750)
Miss Islington (bot) [Mon, 24 Jun 2019 11:56:17 +0000 (04:56 -0700)] 
bpo-37124: Fix reference leak in test_msilib (GH-13750)

(cherry picked from commit c0295dba259accc4b247beb22a0b2cc2f31d9850)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-37359: Fix regrtest --cleanup (GH-14336)
Miss Islington (bot) [Mon, 24 Jun 2019 11:43:16 +0000 (04:43 -0700)] 
bpo-37359: Fix regrtest --cleanup (GH-14336)

(cherry picked from commit 9bbf4d7083a819cbcee2a6cd3df2802d4c50f734)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-37359: Add --cleanup option to python3 -m test (GH-14332) (GH-14335)
Victor Stinner [Mon, 24 Jun 2019 10:51:30 +0000 (12:51 +0200)] 
bpo-37359: Add --cleanup option to python3 -m test (GH-14332) (GH-14335)

* regrtest: Add --cleanup option to remove "test_python_*" directories
  of previous failed test jobs.
* Add "make cleantest" to run "python3 -m test --cleanup".

(cherry picked from commit 47fbc4e45b35b3111e2d947a66490a43ac21d363)

6 years agoImprove threading.daemon docstring (GH-14278)
Miss Islington (bot) [Sun, 23 Jun 2019 19:05:10 +0000 (12:05 -0700)] 
Improve threading.daemon docstring (GH-14278)

Rephrase and clarify that "the entire Python program exits when only daemon threads are left". This matches the documentation at https://docs.python.org/3/library/threading.htmlGH-thread-objects.
(cherry picked from commit bb110cc2ed81447fb48805f31146cf31323a8fc3)

Co-authored-by: mbarkhau <mbarkhau@gmail.com>
6 years agobpo-37362: test_gdb now ignores stderr (GH-14287)
Miss Islington (bot) [Fri, 21 Jun 2019 21:38:26 +0000 (14:38 -0700)] 
bpo-37362: test_gdb now ignores stderr (GH-14287)

test_gdb no longer fails if it gets an "unexpected" message on
stderr: it now ignores stderr. The purpose of test_gdb is to test
that python-gdb.py commands work as expected, not to test gdb.
(cherry picked from commit e56a123fd0acaa295a28b98d2e46d956b97d1263)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoFix rst formatting for several links in ssl documentation (GH-13133)
Miss Islington (bot) [Fri, 21 Jun 2019 03:18:16 +0000 (20:18 -0700)] 
Fix rst formatting for several links in ssl documentation (GH-13133)

(cherry picked from commit 7b3a028c357dcc76b5aff7297e7c8052f897afb5)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
6 years agoFix typo, 'widger' -> 'widget', in idlelib/tree.py (GH-14263) (#14271)
Miss Islington (bot) [Thu, 20 Jun 2019 16:50:53 +0000 (09:50 -0700)] 
Fix typo, 'widger' -> 'widget', in idlelib/tree.py (GH-14263) (#14271)

(cherry picked from commit 8713aa6dfb2a17d6de91943ef1eb0ddba58f5b4a)

Co-authored-by: İsmail Arılık <arilik.ismail@gmail.com>
6 years agoAdd missing single quote in io.TextIOWrapper.reconfigure documentation (GH-14246) 14259/head
Miss Islington (bot) [Wed, 19 Jun 2019 21:07:45 +0000 (14:07 -0700)] 
Add missing single quote in io.TextIOWrapper.reconfigure documentation (GH-14246)

Add a missing single quote character in the documentation for `io.TextIOWrapper.reconfigure`.
(cherry picked from commit 35068bd059a3d9bff084ca9dcb04d51185b9ec3b)

Co-authored-by: Harmon <Harmon758@gmail.com>
6 years ago[3.7] bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) (GH-14233)
Michael Felt [Wed, 19 Jun 2019 20:07:34 +0000 (22:07 +0200)] 
[3.7] bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) (GH-14233)

6 years agobpo-37331: Clarify format of socket handler messages in the documentation. (GH-14234...
Miss Islington (bot) [Wed, 19 Jun 2019 14:41:54 +0000 (07:41 -0700)] 
bpo-37331: Clarify format of socket handler messages in the documentation. (GH-14234) (GH-14236)

(cherry picked from commit f06b569305cf604f070776ea3f800ed61fdd7d61)

6 years agobpo-37258: Not a bug, but added a unit test and updated documentation. (GH-14229...
Miss Islington (bot) [Wed, 19 Jun 2019 13:46:19 +0000 (06:46 -0700)] 
bpo-37258: Not a bug, but added a unit test and updated documentation. (GH-14229) (GH-14231)

(cherry picked from commit 015000165373f8db263ef5bc682f02d74e5782ac)

6 years agobpo-27860: ipaddress: fix Interface constructor (GH-14200)
Inada Naoki [Wed, 19 Jun 2019 11:47:39 +0000 (20:47 +0900)] 
bpo-27860: ipaddress: fix Interface constructor (GH-14200)

Interface constructor is documented as accepts address same to Network,
but it didn't accept some form of the address.

This commit is backport of GH-12836 (commit 6fa84bd)

6 years agoFix name of '\0'. (GH-14222)
Miss Islington (bot) [Wed, 19 Jun 2019 04:59:54 +0000 (21:59 -0700)] 
Fix name of '\0'. (GH-14222)

'\0' is the NUL byte not NULL.
(cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agoPost release updates
Ned Deily [Wed, 19 Jun 2019 03:38:36 +0000 (23:38 -0400)] 
Post release updates

6 years agoMerge tag 'v3.7.4rc1' into 3.7
Ned Deily [Wed, 19 Jun 2019 03:33:33 +0000 (23:33 -0400)] 
Merge tag 'v3.7.4rc1' into 3.7

6 years agobpo-37156: Fix libssl DLL tag in MSI sources (GH-14219)
Steve Dower [Wed, 19 Jun 2019 01:05:33 +0000 (18:05 -0700)] 
bpo-37156: Fix libssl DLL tag in MSI sources (GH-14219)

6 years ago[3.7] bpo-36985: Document typing.ForwardRef (GH-14216) (GH-14220)
Ivan Levkivskyi [Wed, 19 Jun 2019 01:02:15 +0000 (02:02 +0100)] 
[3.7] bpo-36985: Document typing.ForwardRef (GH-14216) (GH-14220)

https://bugs.python.org/issue36985

6 years agobpo-37325: Fix focus traversal for 2 IDLE dialogs (GH-14209)
Miss Islington (bot) [Tue, 18 Jun 2019 21:26:15 +0000 (14:26 -0700)] 
bpo-37325: Fix focus traversal for 2 IDLE dialogs (GH-14209)

Tab now moves focus across and down for Help Source and Custom Run.
(cherry picked from commit 54cf2e0780ca137dd9abea5d3d974578ce0c18a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago3.7.4rc1 v3.7.4rc1
Ned Deily [Tue, 18 Jun 2019 21:02:54 +0000 (17:02 -0400)] 
3.7.4rc1

6 years agoChangelog fixups for 3.7.3rc1
Ned Deily [Tue, 18 Jun 2019 20:45:32 +0000 (16:45 -0400)] 
Changelog fixups for 3.7.3rc1

6 years agoUpdate macOS installer welcome and readme for 3.7.4
Ned Deily [Tue, 18 Jun 2019 20:33:11 +0000 (16:33 -0400)] 
Update macOS installer welcome and readme for 3.7.4

6 years agobpo-36231: Support building on macOS without /usr/include (GH-13773) (GH-14208)
Ned Deily [Tue, 18 Jun 2019 20:28:13 +0000 (16:28 -0400)] 
bpo-36231:  Support building on macOS without /usr/include (GH-13773) (GH-14208)

6 years agobpo-34903: Document that some strptime formats only require 1 digit (GH-14149)
Miss Islington (bot) [Tue, 18 Jun 2019 18:55:27 +0000 (11:55 -0700)] 
bpo-34903: Document that some strptime formats only require 1 digit (GH-14149)

For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional.

This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true.

bpo-34903
(cherry picked from commit 6b9c204ee77a0de87d6f51a3d4547a18604cef9e)

Co-authored-by: Mike Gleen <mike.gleen@gmail.com>
6 years agobpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14180)
Miss Islington (bot) [Tue, 18 Jun 2019 10:24:20 +0000 (03:24 -0700)] 
bpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14180)

(cherry picked from commit d8f336fdc10decdd82d3bc81a63aea8be149c0c8)

Co-authored-by: animalize <animalize@users.noreply.github.com>
6 years agobpo-35031: also disable TLS 1.3 for test_start_tls_server_1 on macOS (GH-14188) ...
Miss Islington (bot) [Tue, 18 Jun 2019 09:45:10 +0000 (02:45 -0700)] 
bpo-35031: also disable TLS 1.3 for test_start_tls_server_1 on macOS (GH-14188) (GH-14192)

(cherry picked from commit a514f782b822bd7bca7c8d78be7bd53bc25c1908)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-34631: Updated OpenSSL to 1.1.1c in macOS installer (GH-14187)
Miss Islington (bot) [Tue, 18 Jun 2019 08:40:05 +0000 (01:40 -0700)] 
bpo-34631: Updated OpenSSL to 1.1.1c in macOS installer (GH-14187)

(cherry picked from commit f3fb8393e3cbbdc0ec79e0fdefaadec6977e1491)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-5680: IDLE: Customize running a module (GH-13763)
Miss Islington (bot) [Tue, 18 Jun 2019 02:47:55 +0000 (19:47 -0700)] 
bpo-5680: IDLE: Customize running a module (GH-13763)

The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
(cherry picked from commit 201bc2d18b60adb05810d2a6ab396047bc527088)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163)
Steve Dower [Mon, 17 Jun 2019 22:26:43 +0000 (15:26 -0700)] 
bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163)

6 years agobpo-37321: Edit IDLE subprocess connection error messages. (GH-14170)
Miss Islington (bot) [Mon, 17 Jun 2019 21:50:48 +0000 (14:50 -0700)] 
bpo-37321: Edit IDLE subprocess connection error messages. (GH-14170)

Mainly, add a doc reference to message in pyshell.
(cherry picked from commit 8fac1221097aaf6ac37ed9ea727ee7892085e183)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)
Miss Islington (bot) [Mon, 17 Jun 2019 20:06:39 +0000 (13:06 -0700)] 
bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)

Measure required height by quickly maximizing once per screen.
A search for a better method failed.
(cherry picked from commit 5bff3c86ab77e9d831b3cd19b45654c7eef22931)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14158)
Victor Stinner [Mon, 17 Jun 2019 13:23:52 +0000 (15:23 +0200)] 
bpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14158)

Mention explicitly that PyObject_CallXXX() functions raise an
exception an failure.

(cherry picked from commit 1ce2656f13e726b3b99d4c968926908cff1f460a)

6 years agobpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
Miss Islington (bot) [Mon, 17 Jun 2019 10:10:48 +0000 (03:10 -0700)] 
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)

bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD
in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the
client context.
(cherry picked from commit c034b7824f5a7c50f2946ab3931633200e31d903)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH...
Miss Islington (bot) [Mon, 17 Jun 2019 08:45:04 +0000 (01:45 -0700)] 
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH-14141)

On Windows, os.dup() no longer creates an inheritable fd when handling a
character file.
(cherry picked from commit 28fca0c422b425a6be43be31add0a5328c16b0b8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)
Miss Islington (bot) [Mon, 17 Jun 2019 08:28:43 +0000 (01:28 -0700)] 
bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)

(cherry picked from commit c5905f39bcf4ef895d42eede41bb5a2f071a501d)

Co-authored-by: Joost Lek <vlabakje@gmail.com>
6 years agobpo-28805: document METH_FASTCALL (GH-14079)
Miss Islington (bot) [Sun, 16 Jun 2019 23:24:06 +0000 (16:24 -0700)] 
bpo-28805: document METH_FASTCALL (GH-14079)

(cherry picked from commit 5600b5e1b24a3491e83f1b3038a7ea047a34c0bf)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
6 years agobpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)
Miss Islington (bot) [Sun, 16 Jun 2019 20:52:25 +0000 (13:52 -0700)] 
bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)

The patch needed for 2.7 should make the test more stable on 3.x also.
(cherry picked from commit 66d47da86aff15be34adbec02596bb3188684c0d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoDoc: Remove an ugly space before a dot. (GH-14123)
Miss Islington (bot) [Sun, 16 Jun 2019 14:37:02 +0000 (07:37 -0700)] 
Doc: Remove an ugly space before a dot. (GH-14123)

(cherry picked from commit 552951563cd5968d25e95306362e41f07d661a88)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay or request...
Miss Islington (bot) [Sun, 16 Jun 2019 07:10:06 +0000 (00:10 -0700)] 
bpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay or request rate (GH-11791)

Co-Authored-By: Tal Einat <taleinat+github@gmail.com>
(cherry picked from commit 8047e0e1c620f69cc21f9ca48b24bf2cdd5c3668)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years ago[3.7] Doc: Add an optional obsolete header. (GH-13638). (GH-13655)
Julien Palard [Sat, 15 Jun 2019 18:27:11 +0000 (20:27 +0200)] 
[3.7] Doc: Add an optional obsolete header. (GH-13638). (GH-13655)

* [3.7] Doc: Add an optional obsolete header. (GH-13638).
(cherry picked from commit 46ed90dd014010703c7a3b2a61c4927644fa8210)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) (GH-14111)
Miss Islington (bot) [Sat, 15 Jun 2019 15:22:34 +0000 (08:22 -0700)] 
bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) (GH-14111)

(cherry picked from commit 7a68f8c28bb78d957555a5001dac4df6345434a0)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoFix typo in Lib/concurrent/futures/thread.py (GH-13953)
Miss Islington (bot) [Sat, 15 Jun 2019 12:11:15 +0000 (05:11 -0700)] 
Fix typo in Lib/concurrent/futures/thread.py (GH-13953)

(cherry picked from commit 552ace7498722f1add9f3782751b0d365f4c24c8)

Co-authored-by: ubordignon <48903745+ubordignon@users.noreply.github.com>
6 years ago[3.7] bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback...
Andrew Svetlov [Sat, 15 Jun 2019 11:56:27 +0000 (14:56 +0300)] 
[3.7] bpo-37279: Fix asyncio sendfile support when  extra data are sent in fallback mode. (GH-14075). (GH-14103)

(cherry picked from commit ef2152354f03a165c5e3adb53e2276934fabd50a)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
6 years agoUpdate weakref.rst (GH-14098)
Miss Islington (bot) [Sat, 15 Jun 2019 11:50:11 +0000 (04:50 -0700)] 
Update weakref.rst (GH-14098)

(cherry picked from commit f475729a714a9fb13672f8989c4abbafb783e09b)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
6 years agoUse threadpool for reading from file in sendfile fallback mode (GH-14076)
Miss Islington (bot) [Sat, 15 Jun 2019 11:27:10 +0000 (04:27 -0700)] 
Use threadpool for reading from file in sendfile fallback mode (GH-14076)

(cherry picked from commit 0237265e8287141c40faa8719da3a2d21d511d0d)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
6 years agobpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows (GH...
Miss Islington (bot) [Fri, 14 Jun 2019 16:30:27 +0000 (09:30 -0700)] 
bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows (GH-14081)

(cherry picked from commit 9765efcb39fc03d5b1abec3924388974470a8bd5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() (GH-14080...
Victor Stinner [Fri, 14 Jun 2019 16:26:37 +0000 (18:26 +0200)] 
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() (GH-14080) (GH-14086)

(cherry picked from commit f0749da9a535375f05a2015e8960e8ae54877349)

6 years agoUpdate concurrent.futures.rst (GH-14061)
Miss Islington (bot) [Fri, 14 Jun 2019 14:52:14 +0000 (07:52 -0700)] 
Update concurrent.futures.rst (GH-14061)

This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation:

* the mention that `Future.cancel` also returns `False` if the call finished running;
* the mention of the states for `Future` that did not complete: pending or running.
(cherry picked from commit 431478d5d74d880692817323198b9605af972fa5)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
6 years ago[3.7] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071...
Pablo Galindo [Fri, 14 Jun 2019 06:18:51 +0000 (07:18 +0100)] 
[3.7] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071) (GH-14073)

Fix a regression introduced by af8646c8054d0f4180a2013383039b6a472f9698 that was causing code of the form:

if True and False:
   do_something()

to be optimized incorrectly, eliminating the block..
(cherry picked from commit 05f831865545b08c9a21cfb7773af58b76ec64cb)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)
Miss Islington (bot) [Thu, 13 Jun 2019 13:42:46 +0000 (06:42 -0700)] 
bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)

Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[].

This causes time.tzname to be an empty string.
I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production.

In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7

@zooba

https://bugs.python.org/issue36779
(cherry picked from commit b4c7defe58695a6670a8fdeaef67a638bbb47e42)

Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
6 years agobpo-36402: Fix threading._shutdown() race condition (GH-13948) (GH-14050) (GH-14054)
Miss Islington (bot) [Thu, 13 Jun 2019 12:22:20 +0000 (05:22 -0700)] 
bpo-36402: Fix threading._shutdown() race condition (GH-13948) (GH-14050) (GH-14054)

* bpo-36402: Fix threading._shutdown() race condition (GH-13948)

Fix a race condition at Python shutdown when waiting for threads.
Wait until the Python thread state of all non-daemon threads get
deleted (join all non-daemon threads), rather than just wait until
Python threads complete.

* Add threading._shutdown_locks: set of Thread._tstate_lock locks
  of non-daemon threads used by _shutdown() to wait until all Python
  thread states get deleted. See Thread._set_tstate_lock().
* Add also threading._shutdown_locks_lock to protect access to
  threading._shutdown_locks.
* Add test_finalization_shutdown() test.

(cherry picked from commit 468e5fec8a2f534f1685d59da3ca4fad425c38dd)

* bpo-36402: Fix threading.Thread._stop() (GH-14047)

Remove the _tstate_lock from _shutdown_locks, don't remove None.

(cherry picked from commit 6f75c873752a16a7ad8f35855b1e29f59d048e84)
(cherry picked from commit e40a97a721d46307dfdc2b0322028ccded6eb571)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)
Miss Islington (bot) [Thu, 13 Jun 2019 07:18:26 +0000 (00:18 -0700)] 
bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)

(cherry picked from commit 8725c83ed5ca8959195ad8326db99d564a921749)

Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
6 years agobpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)
Miss Islington (bot) [Wed, 12 Jun 2019 11:50:11 +0000 (04:50 -0700)] 
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)

Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.
(cherry picked from commit 38ab7d4721b422547f7b46b9d68968863fa70573)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)
Miss Islington (bot) [Wed, 12 Jun 2019 04:47:42 +0000 (21:47 -0700)] 
bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)

* bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts.

Contributed by by Ammar Askar for Google.
(cherry picked from commit a6e190e94b47324f14e22a09200c68b722d55699)

Co-authored-by: Ammar Askar <aaskar@google.com>
6 years agobpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)
Miss Islington (bot) [Wed, 12 Jun 2019 03:51:42 +0000 (20:51 -0700)] 
bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)

Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
(cherry picked from commit 405f648db7c44b07348582b5101d4716e0ce5ac3)

Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
6 years ago[3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)
Abhilash Raj [Tue, 11 Jun 2019 23:27:06 +0000 (19:27 -0400)] 
[3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)

* [bpo-36520](https://bugs.python.org/issue36520): reset the encoded word offset when starting a new
line during an email header folding operation

* 📜🤖 Added by blurb_it.

* [bpo-36520](https://bugs.python.org/issue36520): add an additional test case, and provide descriptive
comments for the test_folding_with_utf8_encoding_* tests

* [bpo-36520](https://bugs.python.org/issue36520): fix whitespace issue

* [bpo-36520](https://bugs.python.org/issue36520): changes per reviewer request -- remove extraneous
backslashes; add whitespace between terminating quotes and
line-continuation backslashes; use "bpo-" instead of
"issue GH-" in comments
(cherry picked from commit f6713e84afc5addcfa8477dbdf2c027787f711c0)

Co-authored-by: websurfer5 <49998481+websurfer5@users.noreply.github.com>
https://bugs.python.org/issue36520

6 years agoFix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)
Miss Islington (bot) [Tue, 11 Jun 2019 17:33:36 +0000 (10:33 -0700)] 
Fix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)

If preadv2 is not available, preadv will raise NotImplementedError.
(cherry picked from commit 44867bb9376e324493f0149ac8b3c33f23c9050d)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agocloses bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)
Miss Islington (bot) [Tue, 11 Jun 2019 16:52:15 +0000 (09:52 -0700)] 
closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)

This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here.
(cherry picked from commit 910b3fcb01c29f18ffd53086e36cd2cb9e5fae55)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)
Miss Islington (bot) [Tue, 11 Jun 2019 16:01:20 +0000 (09:01 -0700)] 
bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)

If internal tasks weak set is changed by another thread during iteration.

https://bugs.python.org/issue36607
(cherry picked from commit 65aa64fae89a24491aae84ba0329eb8f3c68c389)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
6 years ago[3.7] bpo-37219: Remove erroneous optimization for differencing an empty set (GH...
Raymond Hettinger [Tue, 11 Jun 2019 09:01:06 +0000 (02:01 -0700)] 
[3.7] bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965) (GH-13968)

6 years ago[3.7] bpo-37216: Fix version and filename in Mac using document (GH-13963)
Makdon [Tue, 11 Jun 2019 05:38:25 +0000 (13:38 +0800)] 
[3.7] bpo-37216: Fix version and filename in Mac using document (GH-13963)

6 years agocloses bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpa...
Miss Islington (bot) [Tue, 11 Jun 2019 02:15:24 +0000 (19:15 -0700)] 
closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpat line in Setup. (GH-13064)

When the line is uncommented, the equals character causes it to be incorrectly interpreted
as a macro definition by makesetup.  This results in invalid Makefile output.

The expat code only requires XML_POOR_ENTROPY to be defined; the value is unnecessary.
(cherry picked from commit 408a2ef1aceff1f4270c44552fa39ef93d9283e3)

Co-authored-by: aaronpaulhurst <aaronpaulhurst@gmail.com>
6 years agoStop using deprecated logging API in Sphinx suspicious checker (GH-9875) 13956/head
Miss Islington (bot) [Sun, 9 Jun 2019 00:53:20 +0000 (17:53 -0700)] 
Stop using deprecated logging API in Sphinx suspicious checker (GH-9875)

(cherry picked from commit ee171a26c1169abfae534b08acc0d95c6e45a22a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-37173: Show passed class in inspect.getfile error (GH-13861)
Miss Islington (bot) [Sat, 8 Jun 2019 15:27:06 +0000 (08:27 -0700)] 
bpo-37173: Show passed class in inspect.getfile error (GH-13861)

Currently, inspect.getfile(str) will report nonsense:

```pytb
>>> inspect.getfile(str)
TypeError: <module 'builtins' (built-in)> is a built-in class
```

This fixes that

https://bugs.python.org/issue37173
(cherry picked from commit d407d2a7265f6102e51a1d62b3fd28b4f7a78d16)

Co-authored-by: Philipp A <flying-sheep@web.de>
6 years agobpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)
Miss Islington (bot) [Sat, 8 Jun 2019 15:24:10 +0000 (08:24 -0700)] 
bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)

Fix an unintended ValueError from :func:`subprocess.run` when checking for
conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args
when they were explicitly provided but with `None` values within a passed in
`**kwargs` dict rather than as passed directly by name.
(cherry picked from commit 8cc605acdda5aff250ab4c9b524a7560f90ca9f3)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years agobpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)
Miss Islington (bot) [Sat, 8 Jun 2019 15:03:46 +0000 (08:03 -0700)] 
bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)

(cherry picked from commit a15a7bcaea54e1845ab2abe27e6f583294cd715b)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
6 years ago[3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860...
Zackery Spytz [Fri, 7 Jun 2019 15:41:10 +0000 (09:41 -0600)] 
[3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13896)

(cherry picked from commit dc2476500d91082f0c907772c83a044bf49af279)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoUse assertEqual(). (#13886)
Miss Islington (bot) [Fri, 7 Jun 2019 09:47:16 +0000 (02:47 -0700)] 
Use assertEqual(). (#13886)

6 years agoIDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)
Miss Islington (bot) [Fri, 7 Jun 2019 09:29:03 +0000 (02:29 -0700)] 
IDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)

* Change from Dummy_Editwin to DummyEditwin to match other tests.
(cherry picked from commit 7f8a38a7c47823c17adab469fcb4f762f4e945b7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881) (#13882)
Miss Islington (bot) [Fri, 7 Jun 2019 08:34:14 +0000 (01:34 -0700)] 
bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881) (#13882)

6 years agobpo-37177: make IDLE's search dialogs transient (GH-13869)
Miss Islington (bot) [Fri, 7 Jun 2019 06:37:32 +0000 (23:37 -0700)] 
bpo-37177: make IDLE's search dialogs transient (GH-13869)

This avoids the search dialogs being hidden behind the editor window.
(cherry picked from commit 554450fb4e95066e825bdb4a2d544a490daeebdc)

Co-authored-by: Tal Einat <taleinat@gmail.com>
6 years agobpo-21315: Fix parsing of encoded words with missing leading ws. (GH-13425) (#13846)
Miss Islington (bot) [Thu, 6 Jun 2019 17:08:43 +0000 (10:08 -0700)] 
bpo-21315: Fix parsing of encoded words with missing leading ws. (GH-13425) (#13846)

* bpo-21315: Fix parsing of encoded words with missing leading ws.

Because of missing leading whitespace, encoded word would get parsed as
unstructured token. This patch fixes that by looking for encoded words when
splitting tokens with whitespace.

Missing trailing whitespace around encoded word now register a defect
instead.

Original patch suggestion by David R. Murray on bpo-21315.
(cherry picked from commit 66c4f3f38b867d8329b28c032bb907fd1a2f22d2)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
6 years agoDon't report deleted attributes in __dir__ (GHGH-10148)
Miss Islington (bot) [Thu, 6 Jun 2019 10:39:30 +0000 (03:39 -0700)] 
Don't report deleted attributes in __dir__ (GHGH-10148)

When an attribute is deleted from a Mock, a sentinel is added rather
than just deleting the attribute. This commit checks for such sentinels
when returning the child mocks in the __dir__ method as users won't
expect deleted attributes to appear when performing dir(mock).
(cherry picked from commit 0df635c7f8aa69e56a092bd4f142f0f164741ab2)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
6 years agobpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598)
Miss Islington (bot) [Wed, 5 Jun 2019 10:23:37 +0000 (03:23 -0700)] 
bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598)

* bpo-30835: email: Fix AttributeError when parsing invalid Content-Transfer-Encoding

Parsing an email containing a multipart Content-Type, along with a
Content-Transfer-Encoding containing an invalid (non-ASCII-decodable) byte
will fail. email.feedparser.FeedParser._parsegen() gets the header and
attempts to convert it to lowercase before comparing it with the accepted
encodings, but as the header contains an invalid byte, it's returned as a
Header object rather than a str.

Cast the Content-Transfer-Encoding header to a str to avoid this.

Found using the AFL fuzzer.

Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Andrew Donnellan <andrew@donnellan.id.au>
* Add email and NEWS entry for the bugfix.
(cherry picked from commit aa79707262f893428665ef45b5e879129abca4aa)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
6 years agobpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)
Miss Islington (bot) [Wed, 5 Jun 2019 02:15:48 +0000 (19:15 -0700)] 
bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)

Add it to the end of the first line if there is room.  Tests were reworked.
(cherry picked from commit 949fe976d5c62ae63ed505ecf729f815d0baccfc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoDoc: Python 3.9 in sidebar and version switcher. (GH-13824)
Miss Islington (bot) [Tue, 4 Jun 2019 23:21:34 +0000 (16:21 -0700)] 
Doc: Python 3.9 in sidebar and version switcher. (GH-13824)

(cherry picked from commit 59e7bbcaa4d0d556591f774c5ea4869c41fa95b0)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816) (GH...
Miss Islington (bot) [Tue, 4 Jun 2019 19:07:03 +0000 (12:07 -0700)] 
bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816) (GH-13819)

test_venv.test_mutiprocessing() now explicitly calls pool.terminate()
to wait until the pool completes.
(cherry picked from commit bc6469f79ca13217b784fb47da7ec83484a3debe)

Co-authored-by: Victor Stinner <vstinner@redhat.com>