]> granicus.if.org Git - python/log
python
6 years agobpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) (GH-13814)
Miss Islington (bot) [Tue, 4 Jun 2019 18:43:52 +0000 (11:43 -0700)]
bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) (GH-13814)

(cherry picked from commit 8d0ef0b5edeae52960c7ed05ae8a12388324f87e)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agobpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-13513)
Victor Stinner [Wed, 29 May 2019 02:30:48 +0000 (04:30 +0200)]
bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-13513)

CVE-2019-9948: Avoid file reading by disallowing local-file:// and
local_file:// URL schemes in URLopener().open() and
URLopener().retrieve() of urllib.request.

Co-Authored-By: SH <push0ebp@gmail.com>
(cherry picked from commit 0c2b6a3943aa7b022e8eb4bfd9bffcddebf9a587)
(cherry picked from commit 34bab215596671d0dec2066ae7d7450cd73f638b)

6 years ago[3.6] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS ...
Gregory P. Smith [Wed, 29 May 2019 02:08:28 +0000 (19:08 -0700)]
[3.6] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS (GH-13124) (GH-13252)

* [3.6] bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-13124)

Modern Linux distros such as Debian Buster have default OpenSSL system
configurations that reject connections to servers with weak certificates
by default.  This causes our test suite run with external networking
resources enabled to skip these tests when they encounter such a failure.

Fixing the network servers is a separate issue..
(cherry picked from commit 2cc0223f43a1ffd59c887a73e2b0ce5202f3be90)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Also skip ssl tests that fail when the system rejects TLSv1.

* Remove the test_httplib change; server was updated.

self-signed.pythontest.net was updated so the test_httplib change is
no longer necessary.

6 years agobpo-32947: test_ssl fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-11612)
Victor Stinner [Wed, 29 May 2019 02:04:54 +0000 (04:04 +0200)]
bpo-32947: test_ssl fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-11612)

Backport partially commit 529525fb5a8fd9b96ab4021311a598c77588b918:
complete the previous partial backport (commit
2a4ee8aa01d61b6a9c8e9c65c211e61bdb471826.

Co-Authored-By: Christian Heimes <christian@python.org>
6 years ago[3.6] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13198)
Gregory P. Smith [Wed, 8 May 2019 19:20:59 +0000 (14:20 -0500)]
[3.6] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13198)

We updated the server, our testsuite must match.

https://bugs.python.org/issue36816

✈️ CLE -> DEN ✈️ GH-pycon2019
(cherry picked from commit 6bd81734de0b73f1431880d6a75fb71bcbc65fa1)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-30458: Disallow control chars in http URLs. (GH-12755) (GH-13155)
Miro Hrončok [Wed, 8 May 2019 16:33:24 +0000 (18:33 +0200)]
bpo-30458: Disallow control chars in http URLs. (GH-12755) (GH-13155)

Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (GH-13044)

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
6 years agobpo-36742: Fixes handling of pre-normalization characters in urlsplit() (GH-13017...
Miss Islington (bot) [Thu, 2 May 2019 16:02:35 +0000 (09:02 -0700)]
bpo-36742: Fixes handling of pre-normalization characters in urlsplit() (GH-13017) (GH-13024)

(cherry picked from commit d537ab0ff9767ef024f26246899728f0116b1ec3)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agobpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) (GH-12910)
Miss Islington (bot) [Thu, 2 May 2019 16:00:33 +0000 (09:00 -0700)]
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) (GH-12910)

(cherry picked from commit 56ed86490cb8221c874d432461d77702437f63e5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-34602: Avoid failures setting macOS stack resource limit (GH-13011) (GH-13014)
Miss Islington (bot) [Mon, 29 Apr 2019 19:56:58 +0000 (12:56 -0700)]
bpo-34602: Avoid failures setting macOS stack resource limit (GH-13011) (GH-13014)

Under some conditions the earlier fix for bpo-18075, "Infinite recursion
tests triggering a segfault on Mac OS X", now causes failures on macOS
when attempting to change stack limit with resource.setrlimit
resource.RLIMIT_STACK, like regrtest does when running the test suite.
The reverted change had specified a non-default stack size when linking
the python executable on macOS.  As of macOS 10.14.4, the previous
code causes a hard failure when running tests, although similar
failures had been seen under some conditions under some earlier
systems.  For now, revert the original change and resume using
the default stack size when linking the interpreter.
(cherry picked from commit 883dfc668f9730b00928730035b5dbd24b9da2a0)

Co-authored-by: Ned Deily <nad@python.org>
6 years ago[3.6] bpo-35564: add master_doc='contents' to conf.py (GH-11290). (GH-12461)
Julien Palard [Wed, 20 Mar 2019 15:41:20 +0000 (16:41 +0100)]
[3.6] bpo-35564: add master_doc='contents' to conf.py (GH-11290). (GH-12461)

(cherry picked from commit fc8284e22074af8154e9865c8391b955f13a308b)

Co-authored-by: Jean-François B <jfbu@free.fr>
6 years agoFix "catchs" typos in NEWS entries (GH-12366)
Harmon [Mon, 18 Mar 2019 02:11:57 +0000 (21:11 -0500)]
Fix "catchs" typos in NEWS entries (GH-12366)

6 years agobpo-36195: Remove the ThreadPoolExecutor documentation mentioning the initializer...
Harmandeep Singh [Mon, 18 Mar 2019 01:53:07 +0000 (07:23 +0530)]
bpo-36195: Remove the ThreadPoolExecutor documentation mentioning the initializer feature added in Python 3.7 (GH-12182)

6 years ago[3.6] bpo-36216: Add check for characters in netloc that normalize to separators...
Steve Dower [Tue, 12 Mar 2019 04:34:03 +0000 (21:34 -0700)]
[3.6] bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) (GH-12215)

6 years agobpo-35647: Fix path check in cookiejar (GH-11436) (GH-12268)
Miss Islington (bot) [Tue, 12 Mar 2019 04:28:39 +0000 (21:28 -0700)]
bpo-35647: Fix path check in cookiejar (GH-11436) (GH-12268)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agobpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-12260)
Miss Islington (bot) [Sun, 10 Mar 2019 02:59:28 +0000 (18:59 -0800)]
bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-12260)

Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with `http.cookiejar.DefaultCookiePolicy` policy.  Patch by Karthikeyan Singaravelan.
(cherry picked from commit ca7fe5063593958e5efdf90f068582837f07bd14)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agoDocument the surprising sideeffect PyErr_Print(). (GH-12081) (GH-12084)
Miss Islington (bot) [Wed, 27 Feb 2019 23:46:08 +0000 (15:46 -0800)]
Document the surprising sideeffect PyErr_Print(). (GH-12081) (GH-12084)

(cherry picked from commit 4173772031747a9b249be4100b4aa9eda805ea23)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12011...
Miss Islington (bot) [Sun, 24 Feb 2019 07:56:12 +0000 (23:56 -0800)]
bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12011) (GH-12013)

(cherry picked from commit aeca373b339e0ea9739536ce6b43bd90f3b89873)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-35746: Credit Colin Read and Nicolas Edet (GH-11865)
Victor Stinner [Sat, 16 Feb 2019 07:23:52 +0000 (08:23 +0100)]
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11865)

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

6 years agoDoc sidebar: 3.6 has moved to security-fix mode. (GH-11810) (GH-11812)
Miss Islington (bot) [Sun, 10 Feb 2019 22:07:24 +0000 (14:07 -0800)]
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810) (GH-11812)

(cherry picked from commit 9db56fb8faaa3cd66e7fe82740a4ae4d786bb27f)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years ago[3.6] bpo-35605: Fix documentation build for sphinx<1.6 (GH-11368)
Anthony Sottile [Sun, 3 Feb 2019 23:22:52 +0000 (15:22 -0800)]
[3.6] bpo-35605: Fix documentation build for sphinx<1.6 (GH-11368)

6 years agobpo-35486: Note Py3.6 import system API requirement change (GH-11540) (GH-11588)
Miss Islington (bot) [Fri, 18 Jan 2019 01:11:09 +0000 (17:11 -0800)]
bpo-35486: Note Py3.6 import system API requirement change (GH-11540) (GH-11588)

While the introduction of ModuleNotFoundError was fully backwards
compatible on the import API consumer side, folks providing alternative
implementations of `__import__` need to make an update to be
forward compatible with clients that start relying on the new subclass.

https://bugs.python.org/issue35486
(cherry picked from commit cee29b46a19116261b083dc803217aa754c7df40)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-35525: Correct the argument name for NNTP.starttls() (GH-11310) (GH-11417)
Miss Islington (bot) [Fri, 18 Jan 2019 01:07:39 +0000 (17:07 -0800)]
bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310) (GH-11417)

(cherry picked from commit e9a044ec16989bd4b39763c0588c17200a925350)

Co-authored-by: Harmandeep Singh <harmandeep3091@gmail.com>
6 years agoMake sure file object is close if socket.create_connection fails (GH-11334) (GH-11351)
Miss Islington (bot) [Fri, 18 Jan 2019 01:02:43 +0000 (17:02 -0800)]
Make sure file object is close if socket.create_connection fails (GH-11334) (GH-11351)

The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
(cherry picked from commit 1f511e1af060e98fb789319a96076c06e7f98135)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH...
Miss Islington (bot) [Fri, 18 Jan 2019 01:00:46 +0000 (17:00 -0800)]
bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH-11337) (GH-11348)

There is a race condition regarding signal delivery in test_signal_handling_args for
test_asyncio.test_events.KqueueEventLoopTests. The signal can be received at any moment outside the time window provided in the test. The fix is to wait for the signal to be received instead with a bigger timeout.
(cherry picked from commit 5471420faa84519530f29b08f2b042b2288e3e96)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35746: Fix segfault in ssl's cert parser (GH-11569) (GH-11573)
Miss Islington (bot) [Wed, 16 Jan 2019 01:16:36 +0000 (17:16 -0800)]
bpo-35746: Fix segfault in ssl's cert parser (GH-11569) (GH-11573)

Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL
distribution points with empty DP or URI correctly. A malicious or buggy
certificate can result into segfault.

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years agoRevert "bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH...
Senthil Kumaran [Thu, 10 Jan 2019 18:56:02 +0000 (10:56 -0800)]
Revert "bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639) (GH-11477)" (GH-11509)

This reverts commit 5d9ae8b9df8371dd65514e0d60b561fd37056986 which was merged to 3.6 in error.

6 years agobpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639) ...
Miss Islington (bot) [Wed, 9 Jan 2019 14:46:28 +0000 (06:46 -0800)]
bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639) (#11477)

(cherry picked from commit cbb16459934eaf29c7c7d362939cd05550b2f21f)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
6 years agocloses bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/clean...
Miss Islington (bot) [Mon, 7 Jan 2019 07:25:06 +0000 (23:25 -0800)]
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11413)

(cherry picked from commit d466c43e55cd32af84e353f0e9a48b09b7534f61)

Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
6 years ago[3.6] Bump copyright years to 2019. (GH-11407)
Benjamin Peterson [Wed, 2 Jan 2019 16:23:51 +0000 (08:23 -0800)]
[3.6] Bump copyright years to 2019. (GH-11407)

(cherry picked from commit 9a69ae8a78785105ded02b083b2e5cd2dd939307)

6 years agocloses bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11400)
Miss Islington (bot) [Wed, 2 Jan 2019 02:04:25 +0000 (18:04 -0800)]
closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11400)

(cherry picked from commit 7e3fb40b923cb09ecc67816d3191197868593737)

Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com>
6 years agoPost release bump
Ned Deily [Mon, 24 Dec 2018 09:03:37 +0000 (04:03 -0500)]
Post release bump

6 years agoRevert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"
Ned Deily [Mon, 24 Dec 2018 06:49:16 +0000 (01:49 -0500)]
Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"

This reverts commit 37607f26697351751165a042f91f04530ce333f7.

Due to regressions found with using Tk 8.6.9.1, the python.org macOS
installers for 3.6.8 and 3.7.2 are shipping with Tcl/Tk 8.6.8 as used
in previous releases.

6 years ago3.6.8final v3.6.8
Ned Deily [Sun, 23 Dec 2018 21:37:14 +0000 (16:37 -0500)]
3.6.8final

6 years agobpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297) (GH-11299)
Miss Islington (bot) [Sun, 23 Dec 2018 20:54:57 +0000 (12:54 -0800)]
bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297) (GH-11299)

`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee07e30e18d83e2730c093d8b0e930f0a06c)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)...
Miss Islington (bot) [Thu, 20 Dec 2018 21:52:09 +0000 (13:52 -0800)]
bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620) (GH-11269)

(cherry picked from commit 3e8f962e63c2f929604443531a9a3aced242f3e8)

Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
6 years agoFix documented signatures for C API functions. (GH-11236) (GH-11240)
Miss Islington (bot) [Thu, 20 Dec 2018 21:34:21 +0000 (13:34 -0800)]
Fix documented signatures for C API functions. (GH-11236) (GH-11240)

(cherry picked from commit 57dd79e6f7f33bb4e6817ac58c9cb91de99675e0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-35461: Document C API functions which suppress exceptions. (GH-11119) (GH-11210)
Miss Islington (bot) [Thu, 20 Dec 2018 21:28:30 +0000 (13:28 -0800)]
bpo-35461: Document C API functions which suppress exceptions. (GH-11119) (GH-11210)

(cherry picked from commit 3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142) (GH-11199)
Miss Islington (bot) [Thu, 20 Dec 2018 20:50:00 +0000 (12:50 -0800)]
bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142) (GH-11199)

(cherry picked from commit bdabb0737c631835b246c9823852d20331243315)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11265)
Victor Stinner [Thu, 20 Dec 2018 20:31:22 +0000 (21:31 +0100)]
[3.6] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11265)

When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.

(cherry picked from commit cf10a750f4b50b6775719cfb17bee00bc3a9c60b)

6 years ago[3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976)
Myles Borins [Thu, 20 Dec 2018 20:28:28 +0000 (15:28 -0500)]
[3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976)

(cherry picked from commit 0854b92cd2)

6 years agobpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11267)
Victor Stinner [Thu, 20 Dec 2018 19:46:07 +0000 (20:46 +0100)]
bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11267)

"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.

(cherry picked from commit 640ed520dd6a43a8bf470b79542f58b5d57af9de)

6 years agobpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224...
Steve Dower [Thu, 20 Dec 2018 19:11:39 +0000 (11:11 -0800)]
bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224) (GH-11251)

6 years agobpo-35450: reflect in docs that venv module is not always creating a copy of the...
Miss Islington (bot) [Fri, 14 Dec 2018 20:37:45 +0000 (12:37 -0800)]
bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11168)

6 years agoPost release bump
Ned Deily [Wed, 12 Dec 2018 02:08:25 +0000 (21:08 -0500)]
Post release bump

6 years ago3.6.8rc1 v3.6.8rc1
Ned Deily [Tue, 11 Dec 2018 21:47:14 +0000 (16:47 -0500)]
3.6.8rc1

6 years agoMinor edits to NEWS entries
Ned Deily [Tue, 11 Dec 2018 21:28:57 +0000 (16:28 -0500)]
Minor edits to NEWS entries

6 years agoUpdate macOS installer Welcome for 3.6.8
Ned Deily [Tue, 11 Dec 2018 21:03:42 +0000 (16:03 -0500)]
Update macOS installer Welcome for 3.6.8

6 years agomacOS installer build: mitigate hdiutil resource busy bug
Ned Deily [Tue, 11 Dec 2018 03:05:14 +0000 (22:05 -0500)]
macOS installer build: mitigate hdiutil resource busy bug

6 years agobpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on...
Miss Islington (bot) [Tue, 11 Dec 2018 12:22:53 +0000 (04:22 -0800)]
bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086)

Forkserver and fork are not available on Windows and therefore these test must be skipped.
(cherry picked from commit a932d0b496767b5aac14191cbc17093e502b6cb4)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)
Miss Islington (bot) [Tue, 11 Dec 2018 11:56:50 +0000 (03:56 -0800)]
bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)

The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call.
(cherry picked from commit 2ab2afd387084ba38a37f5944fcb0675113b64dc)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years ago[3.6] bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests...
Miss Islington (bot) [Tue, 11 Dec 2018 10:17:37 +0000 (02:17 -0800)]
[3.6] bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520) (GH-11032)

(cherry picked from commit 3cf74384b53b998fa846dc2590cedf9ad2a0d5fd)

Co-authored-by: Anirudha Bose <ani07nov@gmail.com>
https://bugs.python.org/issue33747

6 years agobpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047)...
Miss Islington (bot) [Tue, 11 Dec 2018 10:13:14 +0000 (02:13 -0800)]
bpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047) (GH-11107) (GH-11108)

(cherry picked from commit bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d)
(cherry picked from commit 3cae16d2e98ffaa89ddd311df70a857dfaff4020)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-15663: the 10.6+ macOS installers for 3.6/2.7 now provide a private Tcl...
Ned Deily [Tue, 11 Dec 2018 09:28:31 +0000 (04:28 -0500)]
[3.6] bpo-15663: the 10.6+ macOS installers for 3.6/2.7 now provide a private Tcl/Tk 8.6 (GH-11109)

6 years ago[3.6] bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077) (GH...
Serhiy Storchaka [Tue, 11 Dec 2018 07:27:50 +0000 (09:27 +0200)]
[3.6] bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077) (GH-11106)

(cherry picked from commit 8905fcc85a6fc3ac394bc89b0bbf40897e9497a6)

6 years agobpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)
Miss Islington (bot) [Tue, 11 Dec 2018 06:29:45 +0000 (22:29 -0800)]
bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)

(cherry picked from commit 7cf3d8e25174c8871883e42f3240fd7f01efd3a8)

Co-authored-by: Ned Deily <nad@python.org>
6 years ago[3.6] bpo-35401: Update macOS installer to OpenSSL 1.0.2q (GH-11095)
Ned Deily [Tue, 11 Dec 2018 05:37:53 +0000 (00:37 -0500)]
[3.6] bpo-35401: Update macOS installer to OpenSSL 1.0.2q (GH-11095)

https://bugs.python.org/issue35401

6 years agobpo-35401: Updates Windows build to OpenSSL 1.0.2q (GH-11089)
Steve Dower [Tue, 11 Dec 2018 03:52:51 +0000 (19:52 -0800)]
bpo-35401: Updates Windows build to OpenSSL 1.0.2q (GH-11089)

6 years agoFix numbered lists in stdtypes.rst. (GH-10989)
Miss Islington (bot) [Mon, 10 Dec 2018 20:48:10 +0000 (12:48 -0800)]
Fix numbered lists in stdtypes.rst. (GH-10989)

(cherry picked from commit de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years ago[3.6] bpo-35433: Properly detect installed SDK versions (GH-11009)
Jeremy Kloth [Mon, 10 Dec 2018 20:31:37 +0000 (13:31 -0700)]
[3.6] bpo-35433: Properly detect installed SDK versions (GH-11009)

6 years agobpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
Miss Islington (bot) [Mon, 10 Dec 2018 15:41:11 +0000 (07:41 -0800)]
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)

(cherry picked from commit b6ef6f69a9afc979640a5f9883f799de1364bff7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Miss Islington (bot) [Mon, 10 Dec 2018 11:35:18 +0000 (03:35 -0800)]
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)

Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define
properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L,
whereas <features.h> (included indirectly by <string.h>) defines
_POSIX_C_SOURCE as 199506L.
(cherry picked from commit cf247359d5b7082044eea1fa94b5211a172b1ff6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11070)
Victor Stinner [Mon, 10 Dec 2018 11:12:47 +0000 (12:12 +0100)]
bpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11070)

The length check for AF_ALG salg_name and salg_type had a off-by-one
error. The code assumed that both values are not necessarily NULL
terminated. However the Kernel code for alg_bind() ensures that the last
byte of both strings are NULL terminated.

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

6 years agobpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11067)
Victor Stinner [Mon, 10 Dec 2018 10:53:09 +0000 (11:53 +0100)]
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11067)

Fix xml.dom.minidom cloneNode() on a document with an entity: pass
the correct arguments to the user data handler of an entity (fix an
old copy/paste mistake).

Bug spotted and fix proposed by Charalampos Stratakis, initial
reproducer written by Petr Viktorin.

Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
Co-Authored-By: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit 8e0418688906206fe59bd26344320c0fc026849e)

6 years agobpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)
Miss Islington (bot) [Sun, 9 Dec 2018 08:35:13 +0000 (00:35 -0800)]
bpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)

When using link time optimizations, the -flto flag is passed to
BASECFLAGS, which makes it propagate to distutils. Those flags
should be reserved for the interpreter and the stdlib extension
modules only, thus moving those flags to CFLAGS_NODIST.
(cherry picked from commit f92c7aa1ae81efa475b5aecf66e4711ef0f52c4c)

Co-authored-by: stratakis <cstratak@redhat.com>
6 years agobpo-28015: Support LTO build with clang (GH-9908) (GH-10922)
stratakis [Sun, 9 Dec 2018 08:08:43 +0000 (09:08 +0100)]
bpo-28015: Support LTO build with clang (GH-9908) (GH-10922)

.o generated by clang in LTO mode actually are LLVM bitcode files, which
leads to a few errors during configure/build step:

- add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used
  to build autoconf test case, and some are not compatible with clang LTO
  (they assume binary in the .o, not bitcode)
- force llvm-ar instead of ar, as ar is not aware of .o files generated
  by clang -flto
(cherry picked from commit 5ad36f9b21a3aa3b2265b1b43d73522cc3322df2)

Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
6 years agobpo-33725: skip test_multiprocessing_fork on macOS (GH-11043)
Miss Islington (bot) [Sun, 9 Dec 2018 07:11:31 +0000 (23:11 -0800)]
bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043)

(cherry picked from commit ac218bc5dbfabbd61c76ce8a17de088611e21981)

Co-authored-by: Ned Deily <nad@python.org>
6 years ago[3.7] Doc: Bump sphinx. (GH-10676) (GH-10803)
Miss Islington (bot) [Sun, 9 Dec 2018 05:34:30 +0000 (21:34 -0800)]
[3.7] Doc: Bump sphinx. (GH-10676) (GH-10803)

(cherry picked from commit 2db96ae7444880d66d4ef65abab8a5e6ff328711)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)
Miss Islington (bot) [Sat, 8 Dec 2018 14:39:37 +0000 (06:39 -0800)]
bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)

In _localemodule.c and selectmodule.c, remove dead code that would
cause double decrefs if run.

In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases
where a new list is populated and there is no possibility of an error.

In addition, check if the list changed size in the loop in array_array_fromlist().
(cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-35330: Don't call the wrapped object if `side_effect` is set (GH11034)
Miss Islington (bot) [Sat, 8 Dec 2018 11:41:52 +0000 (03:41 -0800)]
bpo-35330:  Don't call the wrapped object if `side_effect` is set (GH11034)

* tests: Further validate `wraps` functionality in `unittest.mock.Mock`

Add more tests to validate how `wraps` interacts with other features of
mocks.

* Don't call the wrapped object if `side_effect` is set

When a object is wrapped using `Mock(wraps=...)`, if an user sets a
`side_effect` in one of their methods, return the value of `side_effect`
and don't call the original object.

* Refactor what to be called on `mock_call`

When a `Mock` is called, it should return looking up in the following
order: `side_effect`, `return_value`, `wraps`. If any of the first two
return `mock.DEFAULT`, lookup in the next option.

It makes no sense to check for `wraps` returning default, as it is
supposed to be the original implementation and there is nothing to
fallback to.
(cherry picked from commit f05df0a4b679d0acfd0b1fe6187ba2d553b37afa)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
6 years agobpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015...
Serhiy Storchaka [Fri, 7 Dec 2018 16:09:23 +0000 (18:09 +0200)]
bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015) (GH-11020) (GH-11026)

(cherry picked from commit 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9)
(cherry picked from commit 602d307ac5e8a2da38a193dca3bdfef5994dfe67)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH...
Miss Islington (bot) [Fri, 7 Dec 2018 13:53:32 +0000 (05:53 -0800)]
bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH-11017) (GH-11022) (GH-11024)

encoding='latin1' should be used for successful decoding.
(cherry picked from commit 8452ca15f41061c8a6297d7956df22ab476d4df4)
(cherry picked from commit 0d5730e6437b157f4aeaf5d2e67abca23448c29a)

6 years agobpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (GH-10464)
Miss Islington (bot) [Fri, 7 Dec 2018 07:03:32 +0000 (23:03 -0800)]
bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (GH-10464)

* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always"

* add NEWS entry

* address code review comments

* address second code review comments

* Add entry for idlelib/NEWS.txt.
(cherry picked from commit 9ebe8794f003dadfff578a066ea503a3e37ffe1d)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agoAdd missing period in distutils.dep_util.newer_group doc (GH-11003)
Miss Islington (bot) [Thu, 6 Dec 2018 21:32:31 +0000 (13:32 -0800)]
Add missing period in distutils.dep_util.newer_group doc (GH-11003)

(cherry picked from commit c9566b8c454120e3d0ddb5ab970f262a6cd80077)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934). (GH-11001)
Serhiy Storchaka [Thu, 6 Dec 2018 21:00:39 +0000 (23:00 +0200)]
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934). (GH-11001)

(cherry picked from commit 42b1d6127bd8595522a78a75166ebb9fba74a6a2)

6 years agobpo-35363: test_eintr uses print(flush=True) (GH-10990)
Miss Islington (bot) [Thu, 6 Dec 2018 13:40:31 +0000 (05:40 -0800)]
bpo-35363: test_eintr uses print(flush=True) (GH-10990)

(cherry picked from commit 0644b33821b70efbf0ac1ec1fb8729b05796564a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35424: test_multiprocessing: join 3 pools (GH-10986)
Miss Islington (bot) [Thu, 6 Dec 2018 11:23:20 +0000 (03:23 -0800)]
bpo-35424: test_multiprocessing: join 3 pools (GH-10986)

Join 3 pools in these tests:

* test.test_multiprocessing_spawn.WithProcessesTestPool.test_context
* test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback
(cherry picked from commit 388c8c208d9d09bd28289c1e4776b947d4d0f0f0)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii character...
Miss Islington (bot) [Thu, 6 Dec 2018 09:41:16 +0000 (01:41 -0800)]
bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii character. (GH-10863)

(cherry picked from commit 3ffa8b9ba190101f674a0e524e482a83ed09cccd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-34162: Update idlelib NEWS to 2018-12-05 (GH-10964) (GH-10979)
Terry Jan Reedy [Thu, 6 Dec 2018 08:25:57 +0000 (03:25 -0500)]
[3.6] bpo-34162: Update idlelib NEWS to 2018-12-05 (GH-10964) (GH-10979)

Cherry-picked from 6ea9d54.

6 years agobpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. (GH-7278)
Miss Islington (bot) [Thu, 6 Dec 2018 07:26:51 +0000 (23:26 -0800)]
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. (GH-7278)

(cherry picked from commit 8752dfbd1f0c96ca09cdacabaf0d0f8c3895b6ce)

Co-authored-by: native-api <ivan_pozdeev@mail.ru>
6 years ago[3.6] Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted...
Victor Stinner [Thu, 6 Dec 2018 00:49:34 +0000 (01:49 +0100)]
[3.6] Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9677)" (GH-10969)

This reverts commit 07b96a95db78eff3557d1bfed1df9ebecc40815b.

6 years ago[3.6] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10962)
Mariatta [Wed, 5 Dec 2018 23:53:21 +0000 (15:53 -0800)]
[3.6] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10962)

Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814..
(cherry picked from commit 2d8f976cde4794d174b44ff7d5fd970aa89c65e8)

Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
6 years agobpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
Miss Islington (bot) [Wed, 5 Dec 2018 23:43:38 +0000 (15:43 -0800)]
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)

Moreover, "python3 -m test test_eintr -v" now avoids redirecting
stdout/stderr to a pipe, the child process inherits stdout/stderr
from the parent.
(cherry picked from commit aa8ae904ad2f576f8e7b38a9a6542d3e9a569be9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years ago[3.6] Fix typos in concurrent.Futures documentation (GH-10920) (GH-10958)
Mariatta [Wed, 5 Dec 2018 22:19:18 +0000 (14:19 -0800)]
[3.6] Fix typos in concurrent.Futures documentation (GH-10920) (GH-10958)

Add a missing word `as` in `as well as an`.
Linkify `threading.Thread`..
(cherry picked from commit 40a61da40d252626f8b9ff524d76c1f0ccb3a4f7)

Co-authored-by: Matt Wheeler <m@funkyhat.org>
6 years agobpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165...
Miss Islington (bot) [Wed, 5 Dec 2018 22:04:19 +0000 (14:04 -0800)]
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165). (GH-10947) (GH-10954)

(cherry picked from commit 34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b)
(cherry picked from commit ac8b47c8b4edd59aaee857717d434df52ec49e6c)

Co-authored-by: William Grzybowski <wg@FreeBSD.org>
6 years agobpo-34052: Prevent SQLite functions from setting callbacks on exceptions. (GH-8113...
Miss Islington (bot) [Wed, 5 Dec 2018 22:03:13 +0000 (14:03 -0800)]
bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. (GH-8113). (GH-10946) (GH-10952)

(cherry picked from commit 5b25f1d03100e2283c1b129d461ba68ac0169a14)
(cherry picked from commit 1de91a0032fed500ddd3d8c4fb7a38c0b8719f67)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
6 years agobpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
Miss Islington (bot) [Wed, 5 Dec 2018 21:29:08 +0000 (13:29 -0800)]
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)

select() calls are retried on EINTR (per PEP 475).  However, if a
timeout was provided and the deadline has passed after running the
signal handlers, rlist, wlist and xlist should be cleared since select(2)
left them unmodified.
(cherry picked from commit 7f52415a6d4841d77d3b7853e83b25a22e0048dc)

Co-authored-by: Oran Avraham <252748+oranav@users.noreply.github.com>
6 years ago[3.6] Correct a couple of unbalanced parenthesis. (GH-10779). (GH-10945)
Andre Delfino [Wed, 5 Dec 2018 21:08:50 +0000 (18:08 -0300)]
[3.6] Correct a couple of unbalanced parenthesis. (GH-10779). (GH-10945)

(cherry picked from commit 55f41e45b4318cbe19209f5144641344d0049fb8)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) (GH...
Miss Islington (bot) [Wed, 5 Dec 2018 20:44:38 +0000 (12:44 -0800)]
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) (GH-10942)

(cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) (GH...
Miss Islington (bot) [Wed, 5 Dec 2018 20:20:03 +0000 (12:20 -0800)]
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) (GH-10936)

When running test_bdb.py as a script, `import test_module` would be
importing the existing Lib/test/test_modules.py instead of the
tempcwd/test_module.py module which was dynamically created by
test_bdb.py itself.
(cherry picked from commit 54fd45505b3a365e6d53441e6dd7e0d1ec13b46f)

Co-authored-by: Alex H <1884912+lajarre@users.noreply.github.com>
6 years agoMove __missing__ after __delitem__ in Data model. (GH-10923)
Miss Islington (bot) [Wed, 5 Dec 2018 20:13:34 +0000 (12:13 -0800)]
Move __missing__ after __delitem__ in Data model. (GH-10923)

(cherry picked from commit 1ce853f37783575e2b3aaa159ddcebc8660830ef)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce()....
Miss Islington (bot) [Wed, 5 Dec 2018 19:35:47 +0000 (11:35 -0800)]
bpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce(). (GH-9886)

(cherry picked from commit 25d389789c59a52a31770f7c50ce9e02a8909190)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) (GH-10925)
Victor Stinner [Wed, 5 Dec 2018 16:21:37 +0000 (17:21 +0100)]
bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) (GH-10925)

* posixpath.expanduser() now returns the input path unchanged if
  the HOME environment variable is not set and pwd.getpwuid() raises
  KeyError (the current user identifier doesn't exist in the password
  database).
* Add test_no_home_directory() to test_site.

(cherry picked from commit f2f4555d8287ad217a1dba7bbd93103ad4daf3a8)

6 years ago[3.6] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867). (GH-10874)
Andrew Svetlov [Wed, 5 Dec 2018 08:30:06 +0000 (10:30 +0200)]
[3.6] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867). (GH-10874)

* [3.6] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867).
(cherry picked from commit 3bc0ebab17bf5a2c29d2214743c82034f82e6573)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
6 years agobpo-35414: Add a missing Py_INCREF(Py_None) in PyState_RemoveModule(). (GH-10914)
Miss Islington (bot) [Wed, 5 Dec 2018 07:51:15 +0000 (23:51 -0800)]
bpo-35414: Add a missing Py_INCREF(Py_None) in PyState_RemoveModule(). (GH-10914)

(cherry picked from commit 2a893430c9c8378cbdfac95895a64fa07aaff9ed)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-35363, test_eintr: skip test_open() on macOS (GH-10896) (GH-10912)
Victor Stinner [Wed, 5 Dec 2018 02:03:21 +0000 (03:03 +0100)]
bpo-35363, test_eintr: skip test_open() on macOS (GH-10896) (GH-10912)

(cherry picked from commit 4752e65250bce60b97d5af702d586092d02fbf58)

6 years agobpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (GH-10909)
Miss Islington (bot) [Wed, 5 Dec 2018 01:18:57 +0000 (17:18 -0800)]
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (GH-10909)

On Travis CI, FTP tests of test_urllib2net randomly fail with "425
Security: Bad IP connecting".

test.pythoninfo now also logs TRAVIS environment variable.
(cherry picked from commit c11b3b19a5b022c6c229043d37f9a9fd06f22500)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35357: Add _mock_ prefix to name/parent/from_kall attributes of _Call/_MagicProxy...
Miss Islington (bot) [Tue, 4 Dec 2018 09:34:48 +0000 (01:34 -0800)]
bpo-35357: Add _mock_ prefix to name/parent/from_kall attributes of _Call/_MagicProxy. (GH-10873)

Fix minor typo in test function name.
(cherry picked from commit e63e617ebbe481c498bdf037a62e09f4f9f3963f)

Co-authored-by: Andrew Dunai <andunai@gmail.com>
6 years ago[3.7] bpo-35373: Fix PyInit_timezone() error handling (GH-10864)
Miss Islington (bot) [Mon, 3 Dec 2018 23:22:35 +0000 (15:22 -0800)]
[3.7] bpo-35373: Fix PyInit_timezone() error handling (GH-10864)

* bpo-35373: Fix PyInit_timezone() error handling

PyInit_timezone() now returns -1 at exit if an exception is raised.
Check also explicitly PyUnicode_DecodeLocale() and Py_BuildValue()
errors.

* bpo-35373: Fix PyInit_time() error handling (GH-10865)

* PyInit_time() now returns NULL if an exception is raised.
* Rename PyInit_timezone() to init_timezone(). "PyInit_" prefix is
  a special prefix for function initializing a module.
  init_timezone() doesn't initialize a module and the function is not
  exported.

(cherry picked from commit 3bb150d8148e3cc08418077a58f43e064b9fde61)
(cherry picked from commit 5eb78c75128187a36d8e983027632fa51cc2ff4d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-35226: Fix equality for nested unittest.mock.call objects. (GH-10555)
Miss Islington (bot) [Mon, 3 Dec 2018 21:54:22 +0000 (13:54 -0800)]
bpo-35226: Fix equality for nested unittest.mock.call objects. (GH-10555)

Also refactor the call recording implementation and add some notes
about its limitations.
(cherry picked from commit 8ca0fa9d2f4de6e69f0902790432e0ab2f37ba68)

Co-authored-by: Chris Withers <chris@withers.org>
6 years agobpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848)
Miss Islington (bot) [Mon, 3 Dec 2018 09:15:02 +0000 (01:15 -0800)]
bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848)

(cherry picked from commit 4013c179117754b039957db4730880bf3285919d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>