]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-35952: Sync test.pythoninfo from master (GH-13010)
Victor Stinner [Mon, 29 Apr 2019 13:20:38 +0000 (15:20 +0200)] 
bpo-35952: Sync test.pythoninfo from master (GH-13010)

6 years agobpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949)
Victor Stinner [Thu, 25 Apr 2019 11:16:02 +0000 (13:16 +0200)] 
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949)

bpo-28552, bpo-7774: Fix distutils.sysconfig if sys.executable is
None or an empty string: use os.getcwd() to initialize project_base.

Fix also the distutils build command: don't use sys.executable if
it's evaluated as false (None or empty string).

6 years ago[2.7] bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) ...
Zackery Spytz [Mon, 22 Apr 2019 23:35:55 +0000 (17:35 -0600)] 
[2.7] bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) (GH-12916)

(cherry picked from commit 56ed86490cb8221c874d432461d77702437f63e5)

https://bugs.python.org/issue9194

6 years agobpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12815) 12873/head
Victor Stinner [Sat, 13 Apr 2019 00:50:24 +0000 (02:50 +0200)] 
bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12815)

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

(cherry picked from commit 21a74a9d77c5ac628808b9faace18b824ca056f7)

6 years agobpo-34652: Use AC_CHECK_FUNCS for lchmod. (GH-12799)
Joshua Root [Fri, 12 Apr 2019 15:51:35 +0000 (01:51 +1000)] 
bpo-34652: Use AC_CHECK_FUNCS for lchmod. (GH-12799)

A fix for 69e96910153219b0b15a18323b917bd74336d229, which resulted in lchmod being disabled on all platforms, not just Linux.

(cherry picked from commit ed709d5699716bf7237856dc20aba321e2dfff6d)

6 years agobpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751)
Victor Stinner [Tue, 9 Apr 2019 17:54:10 +0000 (19:54 +0200)] 
bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751)

Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().

6 years agobpo-36560: Fix reference leak hunting in regrtest (GH-12744) (GH-12745)
Victor Stinner [Tue, 9 Apr 2019 16:01:17 +0000 (18:01 +0200)] 
bpo-36560: Fix reference leak hunting in regrtest (GH-12744) (GH-12745)

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

Other changes:

* Replace gc.collect() with support.gc_collect() in clear_caches()
* dash_R() is now more quiet with --quiet option (don't display
  progress).
* Precompute the full range for "for it in range(repcount):" to
  ensure that the iteration doesn't allocate anything new.
* dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94eeb44697e92b0951385cd557bc27e0f6a)

6 years agobpo-30134: fix BytesWarning doc, docstring and message (GH-12739)
Inada Naoki [Tue, 9 Apr 2019 12:49:49 +0000 (21:49 +0900)] 
bpo-30134: fix BytesWarning doc, docstring and message (GH-12739)

6 years agobpo-30134: add BytesWarning in warnings.rst (GH-12738)
Inada Naoki [Tue, 9 Apr 2019 07:00:51 +0000 (16:00 +0900)] 
bpo-30134: add BytesWarning in warnings.rst (GH-12738)

6 years agobpo-30134: add an explanation of BytesWarning (GH-1249)
cocoatomo [Tue, 9 Apr 2019 05:43:11 +0000 (14:43 +0900)] 
bpo-30134: add an explanation of BytesWarning (GH-1249)

6 years agobpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660...
Zackery Spytz [Wed, 3 Apr 2019 18:59:51 +0000 (12:59 -0600)] 
bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660) (GH-12678)

(cherry picked from commit 487b73ab39c80157474821ef9083f51e0846bd62)

6 years agobpo-36150: Fix possible assertion failures due to _ctypes.c's PyCData_reduce(). ...
Zackery Spytz [Sun, 31 Mar 2019 17:14:16 +0000 (11:14 -0600)] 
bpo-36150: Fix possible assertion failures due to _ctypes.c's PyCData_reduce(). (GH-12106) (GH-12643)

(cherry picked from commit 5f2c50810a67982b0c80f6d3258fee3647f67005)

6 years agobpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)
Miss Islington (bot) [Thu, 28 Mar 2019 14:44:21 +0000 (07:44 -0700)] 
bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)
Steve Dower [Wed, 27 Mar 2019 23:28:33 +0000 (16:28 -0700)] 
bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)

6 years agobpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
Miss Islington (bot) [Wed, 27 Mar 2019 22:23:19 +0000 (15:23 -0700)] 
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)

(cherry picked from commit d5a5a33f12b60129d57f9b423b77d2fcba506834)

Co-authored-by: Philipp A <flying-sheep@web.de>
6 years agobpo-33832: Add "magic method" glossary entry (GH-7630)
Miss Islington (bot) [Wed, 27 Mar 2019 01:26:14 +0000 (18:26 -0700)] 
bpo-33832: Add "magic method" glossary entry (GH-7630)

(cherry picked from commit f760610bddd7e8f8ac0914d5d59ef806bc16a73b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years ago[2.7] bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821) (GH...
Miss Islington (bot) [Tue, 26 Mar 2019 21:17:16 +0000 (14:17 -0700)] 
[2.7] bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821) (GH-12568)

(cherry picked from commit 6cd658b1a5cb2413230dbc2d9395d20498be8518)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
https://bugs.python.org/issue34203

6 years agobpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551) (GH-12554)
Miss Islington (bot) [Tue, 26 Mar 2019 07:55:35 +0000 (00:55 -0700)] 
bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551) (GH-12554)

(cherry picked from commit 0523c39e7720b82b38ad793d3f1a5681adcdf873)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-34085: Improve wording on classmethod/staticmethod (GH-8228)
Miss Islington (bot) [Mon, 25 Mar 2019 22:58:40 +0000 (15:58 -0700)] 
bpo-34085: Improve wording on classmethod/staticmethod (GH-8228)

* bpo-34085: Improve wording on classmethod/staticmethod

* Address comments from Éric

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years ago[2.7] bpo-36421: Fix ref counting bugs in _ctypes.c's PyCArrayType_new(). (GH-12534)
Zackery Spytz [Mon, 25 Mar 2019 14:15:36 +0000 (08:15 -0600)] 
[2.7] bpo-36421: Fix ref counting bugs in _ctypes.c's PyCArrayType_new(). (GH-12534)

Add missing Py_DECREF()s.

6 years agobpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12470)
Victor Stinner [Wed, 20 Mar 2019 12:03:41 +0000 (13:03 +0100)] 
bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12470)

(cherry picked from commit cb90c89de14aab636739b3e810cf949e47b54a0c)

6 years ago[2.7] bpo-35564: add master_doc='contents' to conf.py (GH-12462)
Julien Palard [Wed, 20 Mar 2019 09:40:59 +0000 (10:40 +0100)] 
[2.7] bpo-35564: add master_doc='contents' to conf.py (GH-12462)

(cherry picked from commit fc8284e22074af8154e9865c8391b955f13a308b)

Co-authored-by: Jean-François B <jfbu@free.fr>
6 years ago[2.7] bpo-18368: Fix memory leaks in PyOS_StdioReadline() when realloc() fails (GH...
stratakis [Tue, 19 Mar 2019 10:43:20 +0000 (11:43 +0100)] 
[2.7] bpo-18368: Fix memory leaks in PyOS_StdioReadline() when realloc() fails (GH-12334)

(cherry picked from commit 9ae513caa74a05970458dee17fb995ea49965bb5)

6 years agobpo-36307: Travis: upgrade to Xenial environment (GH-12356)
Inada Naoki [Tue, 19 Mar 2019 09:08:36 +0000 (18:08 +0900)] 
bpo-36307: Travis: upgrade to Xenial environment (GH-12356)

(cherry picked from commit 74ae50e53e59bbe39d6287b902757f0cd01327dc)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
6 years agobpo-36337: socket.send()/sendall() use Py_ssize_t (GH-12397)
Stéphane Wirtel [Tue, 19 Mar 2019 01:56:28 +0000 (02:56 +0100)] 
bpo-36337: socket.send()/sendall() use Py_ssize_t (GH-12397)

Fix buffer overflow in send() and sendall() methods of socket.socket
for data larger than 2 GiB.

6 years ago[2.7] bpo-35605: Fix documentation build for sphinx<1.6 (GH-12413)
Julien Palard [Mon, 18 Mar 2019 18:11:30 +0000 (19:11 +0100)] 
[2.7] bpo-35605: Fix documentation build for sphinx<1.6 (GH-12413)

(cherry picked from commit dfc8fc15fa989acba3c372572e52bbcb5ab38a37)

6 years agobpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12417)
Victor Stinner [Mon, 18 Mar 2019 17:34:06 +0000 (18:34 +0100)] 
bpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12417)

The test test_customize_compiler() now mocks all sysconfig variables
and all environment variables used by customize_compiler().

(cherry picked from commit 72c7b372cf145fded93a9a776acc742a60090f95)

6 years agobpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12349)
Victor Stinner [Fri, 15 Mar 2019 15:03:44 +0000 (16:03 +0100)] 
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12349)

Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 86082c22d23285995a32aabb491527c9f5629556)

6 years agobpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12332)
Victor Stinner [Thu, 14 Mar 2019 16:19:52 +0000 (17:19 +0100)] 
bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12332)

Fix an unlikely memory leak on conversion from string to float in the
function _Py_dg_strtod() used by float(str), complex(str),
pickle.load(), marshal.load(), etc.

Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
rewrite memory management in this function to always release all
memory before exiting the function. Initialize variables to NULL, and
set them to NULL after calling Bfree() at the "cont:" label.

Note: Bfree(NULL) is well defined: it does nothing.

(cherry picked from commit 9776b0636ae39668d3ce1c006d4be01dad01bf9f)

6 years ago[2.7] bpo-36289: Fix a possible reference leak in the io module (GH-12329)
stratakis [Thu, 14 Mar 2019 15:35:40 +0000 (16:35 +0100)] 
[2.7] bpo-36289: Fix a possible reference leak in the io module (GH-12329)

Fix a reference leak in _bufferedreader_read_all():
_io.BufferedIOMixin.read() leaks a reference on 'data'
when it reads the whole file content but flush() fails.

6 years ago[2.7] bpo-36291: Fix a possible reference leak in the json module (GH-12330)
stratakis [Thu, 14 Mar 2019 15:22:46 +0000 (16:22 +0100)] 
[2.7] bpo-36291: Fix a possible reference leak in the json module (GH-12330)

Fix a reference leak in json if parsing a floating point number fails.

If PyOS_string_to_double() fails in _match_number_str():
decrement numstr ref counter.

6 years ago[2.7] bpo-36212: Fix two possible reference leaks in the hotshot module (GH-12327)
stratakis [Thu, 14 Mar 2019 15:10:58 +0000 (16:10 +0100)] 
[2.7] bpo-36212: Fix two possible reference leaks in the hotshot module (GH-12327)

Fix reference leaks in _hotshot.LogReaderType on PyTuple_New() failure.

6 years agobpo-36174: Update nuget authoring for new license field. (GH-12300)
Steve Dower [Wed, 13 Mar 2019 21:43:47 +0000 (14:43 -0700)] 
bpo-36174: Update nuget authoring for new license field. (GH-12300)

6 years ago[3.7] bpo-36216: Only print test messages when verbose (GH-12291)
Steve Dower [Tue, 12 Mar 2019 20:51:58 +0000 (13:51 -0700)] 
[3.7] bpo-36216: Only print test messages when verbose (GH-12291)

6 years agobpo-36234: test_os: check TypeError for invalid uid type (GH-12235)
Victor Stinner [Mon, 11 Mar 2019 12:59:43 +0000 (13:59 +0100)] 
bpo-36234: test_os: check TypeError for invalid uid type (GH-12235)

Patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
6 years agobpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)
Miss Islington (bot) [Fri, 8 Mar 2019 21:45:01 +0000 (13:45 -0800)] 
bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)

* Update pip to 19.0.3
* Update setuptools to 40.8.0
(cherry picked from commit 01e0f439f5009f37b95ab516e91906fcc7fcb8c3)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
6 years ago[2.7] IDLE: Fix typo in keybindingDialog.py (GH-2322) (GH-12231)
Terry Jan Reedy [Fri, 8 Mar 2019 03:16:07 +0000 (22:16 -0500)] 
[2.7] IDLE: Fix typo in keybindingDialog.py (GH-2322) (GH-12231)

Cherry picked by hand from a0e911b

6 years agobpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
Miss Islington (bot) [Thu, 7 Mar 2019 18:49:15 +0000 (10:49 -0800)] 
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)

(cherry picked from commit bf94cc7b496a379e1f604aa2e4080bb70ca4020e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36216: Add check for characters in netloc that normalize to separators (GH-12201)
Steve Dower [Thu, 7 Mar 2019 17:08:45 +0000 (09:08 -0800)] 
bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201)

6 years agoFix the documentation for set.copy() (GH-12176)
Miss Islington (bot) [Thu, 7 Mar 2019 05:29:48 +0000 (21:29 -0800)] 
Fix the documentation for set.copy() (GH-12176)

Remove 's' mention as there's no argument.
(cherry picked from commit e942e7b5c91995ae1ad967ef2c0f116a5d8555de)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36147: Fix a memory leak in ctypes s_get() (GH-12102)
stratakis [Wed, 6 Mar 2019 14:14:06 +0000 (15:14 +0100)] 
bpo-36147: Fix a memory leak in ctypes s_get() (GH-12102)

The s_get() function leaks the result variable on low memory.
Partially backport commit 19b52545df898ec911c44e29f75badb902924c0
to fix it.

6 years ago[2.7] bpo-36186: Fix linuxaudiodev.linux_audio_device() error handling (GH-12163)
stratakis [Wed, 6 Mar 2019 14:11:56 +0000 (15:11 +0100)] 
[2.7] bpo-36186: Fix linuxaudiodev.linux_audio_device() error handling (GH-12163)

Fix linuxaudiodev.linux_audio_device() error handling:
close the internal file descriptor if it fails to open the device.

6 years ago[2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) (GH-12177)
Stéphane Wirtel [Tue, 5 Mar 2019 14:18:58 +0000 (15:18 +0100)] 
[2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) (GH-12177)

Use test_support.TEST_HTTP_URL (pythontest.net) instead of http://www.example.com/.

6 years ago[2.7] bpo-36149 Fix potential use of uninitialized memory in cPickle (#12105)
T. Wouters [Mon, 4 Mar 2019 18:52:07 +0000 (10:52 -0800)] 
[2.7] bpo-36149 Fix potential use of uninitialized memory in cPickle (#12105)

Fix off-by-one bug in cPickle that caused it to use uninitialised memory on truncated pickles read from FILE*s.

6 years ago[2.7] bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) (GH-12166)
Christian Heimes [Mon, 4 Mar 2019 17:10:45 +0000 (18:10 +0100)] 
[2.7] bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) (GH-12166)

Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.

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

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

6 years ago[2.7] bpo-13096: Fix memory leak in ctypes POINTER handling of large values (GH-12100)
stratakis [Mon, 4 Mar 2019 15:40:25 +0000 (16:40 +0100)] 
[2.7] bpo-13096: Fix memory leak in ctypes POINTER handling of large values (GH-12100)

6 years agoPost-2.7.16 version bump.
Benjamin Peterson [Sat, 2 Mar 2019 19:11:58 +0000 (11:11 -0800)] 
Post-2.7.16 version bump.

6 years agoDelete old NEWS file.
Benjamin Peterson [Sat, 2 Mar 2019 19:10:59 +0000 (11:10 -0800)] 
Delete old NEWS file.

6 years agoMerge branch 'release-2.7.16' into 2.7
Benjamin Peterson [Sat, 2 Mar 2019 19:09:56 +0000 (11:09 -0800)] 
Merge branch 'release-2.7.16' into 2.7

6 years agoSet version to 2.7.16 final. v2.7.16
Benjamin Peterson [Sat, 2 Mar 2019 18:17:42 +0000 (10:17 -0800)] 
Set version to 2.7.16 final.

6 years agoMake 2.7.16 release note.
Benjamin Peterson [Sat, 2 Mar 2019 18:17:10 +0000 (10:17 -0800)] 
Make 2.7.16 release note.

6 years agobpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch...
Ned Deily [Fri, 1 Mar 2019 23:12:45 +0000 (18:12 -0500)] 
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034)

6 years agobpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch...
Ned Deily [Fri, 1 Mar 2019 23:12:45 +0000 (18:12 -0500)] 
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034)

6 years agobpo-36126: Fix ref count leakage in structseq_repr. (GH-12035)
Gao, Xiang [Thu, 28 Feb 2019 13:18:48 +0000 (08:18 -0500)] 
bpo-36126: Fix ref count leakage in structseq_repr. (GH-12035)

6 years agoDocument the surprising sideeffect PyErr_Print(). (GH-12081)
Miss Islington (bot) [Wed, 27 Feb 2019 23:45:57 +0000 (15:45 -0800)] 
Document the surprising sideeffect PyErr_Print(). (GH-12081)

Did you know an API documented as printing the pending traceback would sometimes exit the process?

You do now.
(cherry picked from commit 4173772031747a9b249be4100b4aa9eda805ea23)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agoUpdate FAQ to point to Infrastructure Team website. (GH-12079)
Ned Deily [Wed, 27 Feb 2019 22:43:13 +0000 (17:43 -0500)] 
Update FAQ to point to Infrastructure Team website. (GH-12079)

6 years ago[2.7] bpo-36106: resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027...
Dima Pasechnik [Tue, 26 Feb 2019 10:41:15 +0000 (10:41 +0000)] 
[2.7] bpo-36106: resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027) (GH-12050)

The standard math library (libm) may follow IEEE-754 recommendation to
include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x).
And this triggers a name clash, found by FreeBSD developer
Steve Kargl, who worked on putting sinpi into libm used on FreeBSD
(it has to be named "sinpi", not "sinPi", cf. e.g.
https://en.cppreference.com/w/c/experimental/fpext4).

6 years agoRun autoreconf.
Benjamin Peterson [Tue, 26 Feb 2019 05:56:27 +0000 (21:56 -0800)] 
Run autoreconf.

6 years agocloses bpo-13497: Fix `broken nice` configure test. (GH-12041)
Miss Islington (bot) [Tue, 26 Feb 2019 05:54:33 +0000 (21:54 -0800)] 
closes bpo-13497: Fix `broken nice` configure test. (GH-12041)

Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`.

Fixing the test will prevent false positives with pedantic compilers like clang.
(cherry picked from commit 90c6facebd5666fec85f125ee2795b48b30319a4)

Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
6 years ago[2.7] bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH...
Ned Deily [Sun, 24 Feb 2019 08:33:19 +0000 (03:33 -0500)] 
[2.7] bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12015)

6 years agobpo-26386: Re-enable missing widget testcases in test_ttk_guionly. (GH-12014)
Ned Deily [Sun, 24 Feb 2019 08:04:19 +0000 (03:04 -0500)] 
bpo-26386: Re-enable missing widget testcases in test_ttk_guionly. (GH-12014)

6 years agobpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995)
Alan Grgic [Sat, 23 Feb 2019 05:16:09 +0000 (23:16 -0600)] 
bpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995)

6 years agobpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11948)
Miss Islington (bot) [Tue, 19 Feb 2019 20:26:11 +0000 (12:26 -0800)] 
bpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11948)

https://bugs.python.org/issue35584
(cherry picked from commit 3bacf6126522a9b3bcb6be0c4f3ee6a895dfe772)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years ago[2.7] bpo-35126: Fix a mistake in FAQ about converting number to string (GH-11911)
Stéphane Wirtel [Tue, 19 Feb 2019 09:26:02 +0000 (10:26 +0100)] 
[2.7] bpo-35126: Fix a mistake in FAQ about converting number to string (GH-11911)

https://bugs.python.org/issue35126

6 years ago[2.7] bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one characte...
Tzu-ping Chung [Tue, 19 Feb 2019 03:06:10 +0000 (11:06 +0800)] 
[2.7] bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517) (GH-11749)

Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in [bpo-1104](https://bugs.python.org/issue1104) by Anthony Tuininga (atuining) and Mark McMahon (markm)
(cherry picked from commit 2de576e16d42ce43698d384d0dd46ba6cf165424)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
https://bugs.python.org/issue1104

6 years agoSet version to 2.7.16rc1+.
Benjamin Peterson [Sun, 17 Feb 2019 20:08:34 +0000 (12:08 -0800)] 
Set version to 2.7.16rc1+.

6 years agoAdd product codes until the end of time. (GH-11901)
Steve Dower [Sun, 17 Feb 2019 00:42:48 +0000 (16:42 -0800)] 
Add product codes until the end of time. (GH-11901)

6 years agoSet version to 2.7.16rc1. v2.7.16rc1
Benjamin Peterson [Sat, 16 Feb 2019 19:02:20 +0000 (11:02 -0800)] 
Set version to 2.7.16rc1.

6 years agoCollect 2.7.16rc1 release notes.
Benjamin Peterson [Sat, 16 Feb 2019 19:01:44 +0000 (11:01 -0800)] 
Collect 2.7.16rc1 release notes.

6 years agoUpdate IDLE.app plist copyright date. (GH-11890)
Ned Deily [Sat, 16 Feb 2019 07:03:48 +0000 (02:03 -0500)] 
Update IDLE.app plist copyright date. (GH-11890)

6 years ago[2.7] bpo-33570: Enable OpenSSL 1.1.1 testing within the multissltests (GH-11879)
stratakis [Fri, 15 Feb 2019 18:01:27 +0000 (19:01 +0100)] 
[2.7] bpo-33570: Enable OpenSSL 1.1.1 testing within the multissltests (GH-11879)

multissltests: fix _build_src(), add 'cwd' variable.

6 years ago[2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)
stratakis [Fri, 15 Feb 2019 17:27:44 +0000 (18:27 +0100)] 
[2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)

Backport of TLS 1.3 related fixes from 3.7.

Misc fixes and workarounds for compatibility with OpenSSL 1.1.1 from git
master and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by
default. Some test cases only apply to TLS 1.2.

OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS
1.3. The feature is enabled by default for maximum compatibility with
broken middle boxes. Users should be able to disable the hack and CPython's test suite needs
it to verify default options

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

6 years agoFixup from test_ssl test_default_ecdh_curve (GH-11877)
stratakis [Fri, 15 Feb 2019 16:18:58 +0000 (17:18 +0100)] 
Fixup from test_ssl test_default_ecdh_curve (GH-11877)

Partial backport from cb5b68abdeb1b1d56c581d5b4d647018703d61e3

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[2.7] bpo-28043: improved default settings for SSLContext (GH-10608)
stratakis [Fri, 15 Feb 2019 14:24:11 +0000 (15:24 +0100)] 
[2.7] bpo-28043: improved default settings for SSLContext (GH-10608)

The options OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE,
OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 (except
for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3)
are set by default. The initial cipher suite list contains only
HIGH ciphers, no NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2).

(cherry picked from commit 358cfd426ccc0fcd6a7940d306602138e76420ae)

6 years ago[2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) (GH-10607)
stratakis [Fri, 15 Feb 2019 13:17:12 +0000 (14:17 +0100)] 
[2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) (GH-10607)

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 to test with latest OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 3e630c541b35c96bfe5619165255e559f577ee71)
Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-35746: Credit Colin Read and Nicolas Edet (GH-11866)
Victor Stinner [Fri, 15 Feb 2019 11:34:17 +0000 (12:34 +0100)] 
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11866)

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)
Miss Islington (bot) [Sun, 10 Feb 2019 21:43:52 +0000 (13:43 -0800)] 
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)

(cherry picked from commit 9db56fb8faaa3cd66e7fe82740a4ae4d786bb27f)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years ago[2.7] Fix url to core-mentorship mailing list (GH-11775). (GH-11778)
Mariatta [Wed, 6 Feb 2019 22:02:45 +0000 (14:02 -0800)] 
[2.7] Fix url to core-mentorship mailing list (GH-11775). (GH-11778)

(cherry picked from commit e9bc4172d18db9c182d8e04dd7b033097a994c06)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
7 years agobpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11734)
Miss Islington (bot) [Sat, 2 Feb 2019 10:16:09 +0000 (02:16 -0800)] 
bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11734)

(cherry picked from commit 598e15d4feaee3849a91d92c9ca51f17baafe19c)

Co-authored-by: jdemeyer <J.Demeyer@UGent.be>
7 years agobpo-35746: Fix segfault in ssl's cert parser (GH-11569)
Miss Islington (bot) [Tue, 15 Jan 2019 23:11:52 +0000 (15:11 -0800)] 
bpo-35746: Fix segfault in ssl's cert parser (GH-11569)

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>
7 years ago[2.7] bpo-8765: Deprecate writing unicode to binary streams in Py3k mode. (GH-11127)
Serhiy Storchaka [Tue, 15 Jan 2019 12:34:48 +0000 (14:34 +0200)] 
[2.7] bpo-8765: Deprecate writing unicode to binary streams in Py3k mode. (GH-11127)

7 years agobpo-34512: Document platform-specific strftime() behavior for non-ASCII format string...
Miss Islington (bot) [Sat, 12 Jan 2019 17:28:06 +0000 (09:28 -0800)] 
bpo-34512: Document platform-specific strftime() behavior for non-ASCII format strings (GH-8948)

(cherry picked from commit 1cffd0eed313011c0c2bb071c8affeb4a7ed05c7)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
7 years ago[2.7] bpo-35552: Fix reading past the end in PyString_FromFormat(). (GH-11276) (GH...
Serhiy Storchaka [Sat, 12 Jan 2019 09:20:50 +0000 (11:20 +0200)] 
[2.7] bpo-35552: Fix reading past the end in PyString_FromFormat(). (GH-11276) (GH-11534)

Format character "%s" in PyString_FromFormat() no longer read memory
past the limit if precision is specified.
(cherry picked from commit d586ccb04f79863c819b212ec5b9d873964078e4)

7 years agobpo-33817: Fix _PyString_Resize() and _PyUnicode_Resize() for empty strings. (GH...
Serhiy Storchaka [Sat, 12 Jan 2019 07:22:52 +0000 (09:22 +0200)] 
bpo-33817: Fix _PyString_Resize() and _PyUnicode_Resize() for empty strings. (GH-11515)

7 years agobpo-24746: Fix doctest failures when running the testsuite with -R (#11501) (#11512)
Senthil Kumaran [Thu, 10 Jan 2019 20:55:08 +0000 (12:55 -0800)] 
bpo-24746: Fix doctest failures when running the testsuite with -R (#11501) (#11512)

7 years agoUpdate bugs.rst (GH-11487)
Miss Islington (bot) [Wed, 9 Jan 2019 23:00:48 +0000 (15:00 -0800)] 
Update bugs.rst (GH-11487)

(cherry picked from commit 91c6158dbc5d70fcd91993b4e62c7bae926c2ea2)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
7 years ago[2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#11482)
Sanyam Khurana [Wed, 9 Jan 2019 19:03:03 +0000 (00:33 +0530)] 
[2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#11482)

* bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff

* [2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639).
(cherry picked from commit cbb16459934eaf29c7c7d362939cd05550b2f21f)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
7 years agoRemove README.rst inadvertandly "backported" from 3.x in 5a89c71580529549e71567abf557...
Benjamin Peterson [Wed, 2 Jan 2019 17:14:30 +0000 (09:14 -0800)] 
Remove README.rst inadvertandly "backported" from 3.x in 5a89c71580529549e71567abf557c812eb470b2b. (GH-11409)

7 years ago[2.7] Bump copyright years to 2019. (GH-11408)
Benjamin Peterson [Wed, 2 Jan 2019 16:43:32 +0000 (08:43 -0800)] 
[2.7] Bump copyright years to 2019. (GH-11408)

(cherry picked from commit 9a69ae8a78785105ded02b083b2e5cd2dd939307)

7 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

7 years agoRevert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"
Ned Deily [Thu, 27 Dec 2018 20:18:51 +0000 (15:18 -0500)] 
Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"

This reverts commit aa580508431d231677cfaa13ac9b6aa37538b9ef.

Due to regressions found with using Tk 8.6.9.1, build the python.org
macOS installers with Tcl/Tk 8.6.8 as used in previous releases.

7 years agobpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
Matt McCormick [Sat, 22 Dec 2018 01:41:36 +0000 (20:41 -0500)] 
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)

This addresses C extension build errors related to an undefined _hypot
symbol when building with the Microsoft Visual C++ Compiler for Python
2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++
extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not
been declared'

[1] https://www.microsoft.com/en-us/download/details.aspx?id=44266
[2] https://mingwpy.github.io/

7 years ago[2.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10978)
Myles Borins [Thu, 20 Dec 2018 20:29:34 +0000 (15:29 -0500)] 
[2.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10978)

(cherry picked from 0854b92cd2)

7 years agobpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175...
Zackery Spytz [Thu, 20 Dec 2018 17:38:52 +0000 (10:38 -0700)] 
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) (GH-11249)

(cherry picked from commit 842acaab1376c5c84fd5966bb6070e289880e1ca)

7 years agobpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
Miss Islington (bot) [Thu, 20 Dec 2018 08:51:52 +0000 (00:51 -0800)] 
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)

"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().
(cherry picked from commit d77d97c9a1f593fe161afab97e2a3e2292ab88b9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years ago[2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033...
Serhiy Storchaka [Wed, 19 Dec 2018 15:11:02 +0000 (17:11 +0200)] 
[2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033) (GH-11234)

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>
7 years agobpo-10320: Use PY_FORMAT_LONG_LONG in ctypes' PyCArg_repr(). (GH-11230)
Zackery Spytz [Wed, 19 Dec 2018 06:01:38 +0000 (23:01 -0700)] 
bpo-10320: Use PY_FORMAT_LONG_LONG in ctypes' PyCArg_repr(). (GH-11230)

7 years agobpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(...
Miss Islington (bot) [Tue, 18 Dec 2018 23:51:04 +0000 (15:51 -0800)] 
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)

Use "ll" instead of the nonstandard "q".
(cherry picked from commit 062cbb67726f26794b1b461853e40696b4a0b220)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) (GH-11213)
Victor Stinner [Tue, 18 Dec 2018 16:34:51 +0000 (17:34 +0100)] 
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) (GH-11213)

check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.

(cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd)

7 years agobpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158)
Victor Stinner [Fri, 14 Dec 2018 12:44:08 +0000 (13:44 +0100)] 
bpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158)

bpo-34279, bpo-35412: support.run_unittest() no longer raises
TestDidNotRun if a test result contains skipped tests. The
exception is now only raised if no test have been run and no test
have been skipped.

(cherry picked from commit 3a8f4fef4a4dd0e4a800545468eef9542e126181)