]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 years agotest_tools: catch stderr (GH-7404)
Victor Stinner [Mon, 4 Jun 2018 20:26:21 +0000 (22:26 +0200)] 
test_tools: catch stderr (GH-7404)

Hide "recursedown('@test_9296_tmp')" message.

7 years ago[2.7] bpo-33718: Update regrtest from master (GH-7402)
Victor Stinner [Mon, 4 Jun 2018 20:25:54 +0000 (22:25 +0200)] 
[2.7] bpo-33718: Update regrtest from master (GH-7402)

Backport manually regrtest enhancements from master:

* No longer clear filters, like --match, to re-run failed tests in
  verbose mode (-w option).
* Tests result: always indicate if tests have been interrupted.
* Enhance tests summary
* After failing tests are re-run, display again the summary.
* Add environment_altered to test.support, but it's currently unused
* regrtest: count also ENV_CHANGED as failures
* regrtest: Enhance format_duration()
* Replace test_support with support

7 years agobpo-27902: Add compatibility note to Profile docs (GH-7295)
Miss Islington (bot) [Mon, 4 Jun 2018 17:29:55 +0000 (10:29 -0700)] 
bpo-27902: Add compatibility note to Profile docs (GH-7295)

(cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230)

Co-authored-by: Tobias Kunze <r@rixx.de>
7 years agobpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
Miss Islington (bot) [Mon, 4 Jun 2018 17:24:37 +0000 (10:24 -0700)] 
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)

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

Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
7 years agobpo-33764: Appveyor fixes (GH-7364) (GH-7380)
Ned Deily [Mon, 4 Jun 2018 04:52:38 +0000 (00:52 -0400)] 
bpo-33764: Appveyor fixes (GH-7364) (GH-7380)

* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests

7 years ago[2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374)
Serhiy Storchaka [Mon, 4 Jun 2018 03:39:00 +0000 (06:39 +0300)] 
[2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years ago[2.7] bpo-33760: Fix file leaks in test_io. (GH-7361). (GH-7373)
Serhiy Storchaka [Mon, 4 Jun 2018 03:37:57 +0000 (06:37 +0300)] 
[2.7] bpo-33760: Fix file leaks in test_io. (GH-7361). (GH-7373)

(cherry picked from commit e36837cb71032ccfa713e75623b314f091dc22bb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years ago[2.7] bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) ...
Antoine Pitrou [Sun, 3 Jun 2018 18:46:43 +0000 (20:46 +0200)] 
[2.7] bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7347)

(cherry picked from commit e905c84494526363086f66a979e317e155bf9536)

7 years ago[2.7] bpo-33744: Fix test_uu. (GH-7350) (GH-7354)
Serhiy Storchaka [Sun, 3 Jun 2018 16:31:53 +0000 (19:31 +0300)] 
[2.7] bpo-33744: Fix test_uu. (GH-7350) (GH-7354)

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

7 years agobpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
Miss Islington (bot) [Sat, 2 Jun 2018 15:41:26 +0000 (08:41 -0700)] 
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7323)
Victor Stinner [Fri, 1 Jun 2018 17:39:10 +0000 (19:39 +0200)] 
bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7323)

Use also support.SOCK_MAX_SIZE, not only support.PIPE_MAX_SIZE, to
get the size for a blocking send into a multiprocessing pipe.

Replace also test_support with support.

7 years agobpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7314)
Victor Stinner [Fri, 1 Jun 2018 13:23:02 +0000 (15:23 +0200)] 
bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7314)

* bpo-31479: Always reset the signal alarm in tests

Use "try: ... finally: signal.signal(0)" pattern to make sure that
tests don't "leak" a pending fatal signal alarm.

* Move two more alarm() calls into the try block

Fix also typo: replace signal.signal(0) with signal.alarm(0)

* Move another signal.alarm() into the try block

(cherry picked from commit 9abee722d448c1c00c7d4e11ce242ec7b13e5c49)

7 years agobpo-33692: Update pythoninfo from master (GH-7304)
Victor Stinner [Fri, 1 Jun 2018 10:29:46 +0000 (12:29 +0200)] 
bpo-33692: Update pythoninfo from master (GH-7304)

* bpo-33717: pythoninfo: add CC --version (GH-7290)

7 years agoAdd a crasher to Lib/test for issue #26153. This crasher doesn't crash (#6518)
T. Wouters [Thu, 31 May 2018 10:22:11 +0000 (12:22 +0200)] 
Add a crasher to Lib/test for issue #26153. This crasher doesn't crash (#6518)

Python 3.6, although I've seen the same crash in 3.6 (when involving
extension types and more complicated threading setups).

7 years ago[2.7] bpo-33677: Fix the signature of tp_clear handler for deque. (GH-7196). (GH...
Serhiy Storchaka [Thu, 31 May 2018 07:32:43 +0000 (10:32 +0300)] 
[2.7] bpo-33677: Fix the signature of tp_clear handler for deque. (GH-7196). (GH-7277)

(cherry picked from commit a5c42284e69fb309bdd17ee8c1c120d1be383012)

7 years agobpo-33532: Fix multiprocessing test_ignore() (GH-7265)
Victor Stinner [Thu, 31 May 2018 05:35:34 +0000 (07:35 +0200)] 
bpo-33532: Fix multiprocessing test_ignore() (GH-7265)

Fix test_multiprocessing.test_ignore(): use support.PIPE_MAX_SIZE
to make sure that send_bytes() blocks.

7 years agobpo-33645: Fix an "unknown parsing error" in the parser. (GH-7119)
Serhiy Storchaka [Thu, 31 May 2018 04:35:39 +0000 (07:35 +0300)] 
bpo-33645: Fix an "unknown parsing error" in the parser. (GH-7119)

It is reproduced when parse the "<>" operator and run
Python with both options -3 and -We.

7 years agobpo-33692: pythoninfo detect libedit on Python 2.7 (#7246)
Victor Stinner [Wed, 30 May 2018 21:36:04 +0000 (23:36 +0200)] 
bpo-33692: pythoninfo detect libedit on Python 2.7 (#7246)

Check which readline implementation is used based on the readline
docstring.

7 years agobpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py (#7229)
Victor Stinner [Wed, 30 May 2018 15:24:40 +0000 (17:24 +0200)] 
bpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py (#7229)

Rename Lib/test/bisect.py to Lib/test/bisect_cmd.py. The old name was
in conflict with Lib/bisect.py, causing test failures, depending how
tests were run.

For example, "python2.7 Lib/test/test_httpservers.py" imported
indirectly Lib/test/bisect.py instead of Lib/bisect.py
on "import bisect".

7 years ago[2.7] Improve ensurepip's --help (GH-4686) (GH-7240)
Petr Viktorin [Wed, 30 May 2018 10:36:17 +0000 (12:36 +0200)] 
[2.7] Improve ensurepip's --help (GH-4686) (GH-7240)

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

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

Co-authored-by: Wieland Hoffmann <mineo@users.noreply.github.com>
7 years ago[2.7] bpo-33670: Expose Sphinx errorlevel (GH-7156). (GH-7201)
Andrés Delfino [Tue, 29 May 2018 22:30:50 +0000 (19:30 -0300)] 
[2.7] bpo-33670: Expose Sphinx errorlevel (GH-7156). (GH-7201)

(cherry picked from commit 8c1ad0c4f69390fded09012e1ed5242c45753bb4)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agotest.regrtest: flush stdout to display progress (#7120)
Victor Stinner [Mon, 28 May 2018 11:30:42 +0000 (13:30 +0200)] 
test.regrtest: flush stdout to display progress (#7120)

Call sys.stdout.flush() after displaying "running: ...".

7 years ago[2.7] bpo-33595: Fix lambda parameters being refered as arguments (GH-7037) (GH-7122)
Terry Jan Reedy [Fri, 25 May 2018 18:38:09 +0000 (14:38 -0400)] 
[2.7] bpo-33595: Fix lambda parameters being refered as arguments (GH-7037) (GH-7122)

(cherry picked from commit 268cc7c)

Co-authored-by: Andrés Delfino adelfino@gmail.com
7 years agobpo-33354: Fix test_ssl when a filename cannot be encoded (GH-6613)
Pablo Galindo [Thu, 24 May 2018 22:20:44 +0000 (23:20 +0100)] 
bpo-33354: Fix test_ssl when a filename cannot be encoded (GH-6613)

Skip test_load_dh_params() of test_ssl when Python filesystem encoding
cannot encode the provided path.

7 years ago[2.7] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (#7096)
Serhiy Storchaka [Thu, 24 May 2018 20:27:08 +0000 (23:27 +0300)] 
[2.7] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (#7096)

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

7 years ago[2.7] bpo-33518: Add PEP entry to documentation glossary (GH-6860). (#6936)
Andrés Delfino [Tue, 22 May 2018 13:37:24 +0000 (10:37 -0300)] 
[2.7] bpo-33518: Add PEP entry to documentation glossary (GH-6860). (#6936)

(cherry picked from commit d5f144260886959c1fe06bc4506a23fd10f92348)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years ago[2.7] Fix line breaks added after hyphens by blurb. (GH-7052)
Serhiy Storchaka [Tue, 22 May 2018 11:55:52 +0000 (14:55 +0300)] 
[2.7] Fix line breaks added after hyphens by blurb. (GH-7052)

7 years agobpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
Miss Islington (bot) [Mon, 21 May 2018 14:10:27 +0000 (07:10 -0700)] 
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)

(cherry picked from commit 1179f4b40f375af5c59cd4b6be9cc313fa0e1a37)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years ago[2.7] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7015)
Serhiy Storchaka [Sun, 20 May 2018 22:50:33 +0000 (01:50 +0300)] 
[2.7] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7015)

uuid._ipconfig_getnode did not validate the maximum length of the value,
so long as the value had the same type of formatting as a MAC address.
This let it select DUIDs as MAC addresses. It now requires an exact
length match..
(cherry picked from commit c66c342cb42ab8a88884527ddfe3a5086bc06316)

Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
7 years agobpo-16055: Fixes incorrect error text for int('1', base=1000) (#6980)
Victor Stinner [Fri, 18 May 2018 23:53:13 +0000 (01:53 +0200)] 
bpo-16055: Fixes incorrect error text for int('1', base=1000) (#6980)

Fixes incorrect error text for int('1', base=1000)
and long('1', base=1000).

7 years ago[2.7] Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967...
Miss Islington (bot) [Fri, 18 May 2018 14:19:21 +0000 (07:19 -0700)] 
[2.7] Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967) (GH-6970)

(cherry picked from commit bde3e0bf096219234321ca9898fc3d3aed598453)

7 years ago[2.7] bpo-33503: Fix the broken pypi link in the source and the documentation (GH...
Stéphane Wirtel [Wed, 16 May 2018 14:57:36 +0000 (16:57 +0200)] 
[2.7] bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814). (GH-6905)

(cherry picked from commit 19177fbd5d6d9b29ccc302d65f9d9417ece082ce)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years ago[2.7] bpo-32861: robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795)...
Serhiy Storchaka [Mon, 14 May 2018 22:09:47 +0000 (01:09 +0300)] 
[2.7] bpo-32861: robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795) (GH-6817)

The robotparser's __str__ representation now includes wildcard
entries.
(cherry picked from commit c3fa1f2b93fa4bf96a8aadc74ee196384cefa31e)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>.
7 years agobpo-22069: Update TextIO documentation (GH-6609)
Miss Islington (bot) [Mon, 14 May 2018 16:11:42 +0000 (09:11 -0700)] 
bpo-22069: Update TextIO documentation (GH-6609)

Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c58fae08b29259eebd6cbcd2287820b14e8)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
7 years agobpo-33038: Fix gzip.GzipFile for file objects with a non-string name attribute. ...
Bo Bayles [Wed, 9 May 2018 10:14:40 +0000 (05:14 -0500)] 
bpo-33038: Fix gzip.GzipFile for file objects with a non-string name attribute. (GH-6095)

7 years ago[2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)....
Serhiy Storchaka [Wed, 9 May 2018 09:35:28 +0000 (12:35 +0300)] 
[2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738). (GH-6744)

(cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a)

7 years agobpo-33096: Removed unintentionally backported from Python 3 Tkinter files. (GH-6724)
Serhiy Storchaka [Tue, 8 May 2018 07:09:08 +0000 (10:09 +0300)] 
bpo-33096: Removed unintentionally backported from Python 3 Tkinter files. (GH-6724)

This partially reverts commit e80a232f2cfdab584133d9779c83885c5f9f1ba6.

7 years ago[2.7] bpo-33422: Fix quotation marks getting deleted when looking up byte/string...
Andrés Delfino [Mon, 7 May 2018 05:44:03 +0000 (02:44 -0300)] 
[2.7] bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701) (GH-6712)

Also update the list of string prefixes.
(cherry picked from commit b2043bbe6034b53f5ad337887f4741b74b70b00d)

7 years ago[2.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. ...
Serhiy Storchaka [Sun, 6 May 2018 07:51:49 +0000 (10:51 +0300)] 
[2.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708). (GH-6717)

(cherry picked from commit cedc9b74202d8c1ae39bca261cbb45d42ed54d45)

7 years agobpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701...
Cheryl Sabella [Sat, 5 May 2018 13:10:48 +0000 (06:10 -0700)] 
bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701) (GH-6620)

(cherry picked from commit 74382a3f175ac285cc924a73fd758e8dc3cc41bb)

7 years ago[2.7] bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH...
Bo Bayles [Sat, 5 May 2018 11:09:46 +0000 (06:09 -0500)] 
[2.7] bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) (GH-6646)

(cherry picked from commit 9f3535c9cde8813ce631d6ebe4d790682f594828)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
7 years agobpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
Miss Islington (bot) [Wed, 2 May 2018 10:23:41 +0000 (03:23 -0700)] 
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)

(cherry picked from commit 491bbedc209fea314a04cb3015da68fb0aa63238)

Co-authored-by: lekma <lekmalek@gmail.com>
7 years agoMitigate macOS race condition in installer build (GH-6686) (#6689)
Miss Islington (bot) [Wed, 2 May 2018 05:50:12 +0000 (22:50 -0700)] 
Mitigate macOS race condition in installer build (GH-6686) (#6689)

(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)

Co-authored-by: Ned Deily <nad@python.org>
7 years ago[2.7] bpo-33256: Replace angle brackets around python object repr to display it in...
Serhiy Storchaka [Mon, 30 Apr 2018 08:34:47 +0000 (11:34 +0300)] 
[2.7] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442). (GH-6650)

(cherry picked from commit 7d68bfa82654ba01d860b8a772ff63bf0bd183ee)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
7 years agoFix reference to exceptions in multprocessing docs. (GH-6647)
Bo Bayles [Mon, 30 Apr 2018 05:29:24 +0000 (00:29 -0500)] 
Fix reference to exceptions in multprocessing docs. (GH-6647)

7 years ago2.7.15+
Benjamin Peterson [Sun, 29 Apr 2018 23:22:11 +0000 (16:22 -0700)] 
2.7.15+

7 years agomerge 2.7.15 release branch
Benjamin Peterson [Sun, 29 Apr 2018 22:48:13 +0000 (15:48 -0700)] 
merge 2.7.15 release branch

7 years agobump to 2.7.15 v2.7.15
Benjamin Peterson [Sun, 29 Apr 2018 22:47:33 +0000 (15:47 -0700)] 
bump to 2.7.15

7 years agogenerate 2.7.15 NEWS
Benjamin Peterson [Sun, 29 Apr 2018 22:47:18 +0000 (15:47 -0700)] 
generate 2.7.15 NEWS

7 years agoMerge 2.7.15 release branch
Benjamin Peterson [Sun, 29 Apr 2018 19:24:24 +0000 (12:24 -0700)] 
Merge 2.7.15 release branch

7 years agoIndicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374)
Florian Weimer [Sun, 29 Apr 2018 19:18:33 +0000 (12:18 -0700)] 
Indicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374)

By spec, the "long double" in _PyGC_Head requires the union to always be 16-byte
aligned. However, obmalloc only yields 8-byte alignment. Compilers including GCC
8 are starting to use alignment information to do store-merging. So, the "long
double" needs to be changed to a simple "double" as was long ago done in Python
3 by e348c8d154cf6342c79d627ebfe89dfe9de23817. For 2.7, we need to add some
dummy padding to make sure _PyGC_Head stays the same size.

7 years ago[2.7] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (GH-6607)
Andrés Delfino [Thu, 26 Apr 2018 13:50:07 +0000 (10:50 -0300)] 
[2.7] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (GH-6607)

(cherry picked from commit 67a8f4fed3169e1b8c947c10f6e06863e399ae32)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
7 years agofix running the curses.has_key module (closes bpo-33359) (GH-6608)
Benjamin Peterson [Thu, 26 Apr 2018 05:57:34 +0000 (22:57 -0700)] 
fix running the curses.has_key module (closes bpo-33359) (GH-6608)

This was broken by poor automated translation back in 6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc.

7 years ago[2.7] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6605)
Serhiy Storchaka [Thu, 26 Apr 2018 00:28:14 +0000 (03:28 +0300)] 
[2.7] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6605)

(cherry picked from commit e9d9494d6b2a5e0c2d48d22c7f0d5e95504b4f7e)

7 years agotravis: Use -O3 option (GH-5599)
INADA Naoki [Wed, 25 Apr 2018 01:28:06 +0000 (10:28 +0900)] 
travis: Use -O3 option (GH-5599)

We don't use debugger on Travis.
(cherry picked from commit 8ff53564730f7ba503f5ad94418c309c48e8516d)

7 years ago[2.7] Update `make patchcheck` for blurb and NEWS.d (GH-2381) (GH-6576)
Antoine Pitrou [Mon, 23 Apr 2018 12:22:15 +0000 (14:22 +0200)] 
[2.7] Update `make patchcheck` for blurb and NEWS.d (GH-2381) (GH-6576)

(cherry picked from commit 1ba9469)

7 years ago[2.7] bpo-33297: Mention Pillow to work with more image formats. (GH-6505) (GH-6562)
Andrés Delfino [Sat, 21 Apr 2018 16:06:40 +0000 (13:06 -0300)] 
[2.7] bpo-33297: Mention Pillow to work with more image formats. (GH-6505) (GH-6562)

Also update PIL doc references to Pillow.
(cherry picked from commit 'b81ca28b378c8b29204a37f8bd433a3379f53f7d')

Co-authored-by: 'Andrés Delfino.34587441+andresdelfino@users.noreply.github.com'
7 years agobpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Miss Islington (bot) [Fri, 20 Apr 2018 20:48:43 +0000 (13:48 -0700)] 
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)

Upgrade ensurepip to bundle pip 10.0.1
(cherry picked from commit 0399cf9b5e370516e3d0aed6a63ff74aff5eadb5)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
7 years agobpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479) (GH-6542)
Andrés Delfino [Fri, 20 Apr 2018 06:15:01 +0000 (03:15 -0300)] 
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479) (GH-6542)

(cherry picked from commit 4b685bf7192fff48c8effeeae4f4d64f9420ec0f)

Update only the documentation about image formats.

7 years ago[2.7] bpo-33308: Fix a crash in the parser module when convert an ST object. (GH...
Serhiy Storchaka [Thu, 19 Apr 2018 06:16:43 +0000 (09:16 +0300)] 
[2.7] bpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519) (GH-6532)

Converting with line_info=False and col_info=True crashed before.
(cherry picked from commit e5362eaa75a154c6e91c5b1c47719d0a0f5ca48b)

7 years agobpo-33295: Skip test using missing external site (GH-6504) (GH-6510)
Miss Islington (bot) [Tue, 17 Apr 2018 15:35:32 +0000 (08:35 -0700)] 
bpo-33295: Skip test using missing external site (GH-6504) (GH-6510)

`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close`
used `http://www.imdb.com/` but it is moved to https so the test is
not valid anymore.  Skip test for the moment to allow CI to proceed.
(cherry picked from commit 36d56ea826caffbeac0fc0c6d90248b80516e33c)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years ago[2.7] fix pydoc-topics to work with Sphinx 1.7 (GH-6502)
Benjamin Peterson [Tue, 17 Apr 2018 06:54:08 +0000 (23:54 -0700)] 
[2.7] fix pydoc-topics to work with Sphinx 1.7 (GH-6502)

In fact, we now require a newer Sphinx version because APIs have moved around..
(cherry picked from commit acfb087f9f5590e5174a30eced3c2fe911f49d70)

7 years ago2.7.15rc1 version bump v2.7.15rc1
Benjamin Peterson [Sat, 14 Apr 2018 22:06:30 +0000 (15:06 -0700)] 
2.7.15rc1 version bump

7 years agomake NEWS for 2.7.15rc1
Benjamin Peterson [Sat, 14 Apr 2018 22:06:13 +0000 (15:06 -0700)] 
make NEWS for 2.7.15rc1

7 years agobpo-33148: Update Windows build to use OpenSSL 1.0.2o
Steve Dower [Sat, 14 Apr 2018 21:50:40 +0000 (14:50 -0700)] 
bpo-33148: Update Windows build to use OpenSSL 1.0.2o

closes https://github.com/python/cpython/pull/6474

7 years ago[2.7] bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408) (GH...
Miss Islington (bot) [Sat, 14 Apr 2018 15:21:02 +0000 (08:21 -0700)] 
[2.7] bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408) (GH-6471)

(cherry picked from commit 76215a4481191b648de522a4e2120f60822f6b9c)

Co-authored-by: Ned Deily <nad@python.org>
7 years ago[2.7] Fix errant NEWS item: bpo-19019 -> bpo-17128 (GH-6470)
Ned Deily [Sat, 14 Apr 2018 14:56:17 +0000 (10:56 -0400)] 
[2.7] Fix errant NEWS item: bpo-19019 -> bpo-17128 (GH-6470)

7 years ago[2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469)
Ned Deily [Sat, 14 Apr 2018 14:37:28 +0000 (10:37 -0400)] 
[2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469)

These include:

- bpo-32726: Provide an additional, more modern macOS installer variant that
  supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied
  third-party libraries to OpenSSL 1.0.2n and SQLite 3.22.0. The 10.9+
  installer now supplies its own private copy of Tcl/Tk 8.6.8.

- bpo-24414: Default macOS deployment target is now set by ``configure`` to
  the build system's OS version (as is done by Python 3), not ``10.4``;
  override with, for example, ``./configure MACOSX_DEPLOYMENT_TARGET=10.4``.

- bpo-19019: All 2.7 macOS installer variants now supply their own version
  of ``OpenSSL 1.0.2``; the Apple-supplied SSL libraries and root
  certificates are not longer used.  The ``Installer Certificate`` command
  in ``/Applications/Python 2.7`` may be used to download and install a
  default set of root certificates from the third-party ``certifi`` package.

- bpo-11485: python.org macOS Pythons no longer supply a default SDK value
  (e.g. ``-isysroot /``) or specific compiler version default (e.g.
  ``gcc-4.2``) when building extension modules.  Use ``CC``, ``SDKROOT``,
  and ``DEVELOPER_DIR`` environment variables to override compilers or to
  use an SDK.  See Apple's ``xcrun`` man page for more info.

- prepare for pending Apple removal of 32-bit support in future macOS release

7 years ago[2.7] bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script...
Serhiy Storchaka [Tue, 10 Apr 2018 08:03:52 +0000 (11:03 +0300)] 
[2.7] bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259) (GH-6436)

Based on patch by Oleg Krasnikov.
(cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de)

7 years ago[2.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179...
Miss Islington (bot) [Sat, 7 Apr 2018 02:01:35 +0000 (19:01 -0700)] 
[2.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6405)

(cherry picked from commit ef5ce884a41c8553a7eff66ebace908c1dcc1f89)

Co-authored-by: Jay Crotts <crotts.jay@gmail.com>
7 years ago[2.7] bpo-27212: Modify islice recipe to consume initial values preceding start ...
Cheryl Sabella [Mon, 2 Apr 2018 05:29:01 +0000 (01:29 -0400)] 
[2.7] bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (GH-6339)

(cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128)

7 years ago[2.7] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6322)
Serhiy Storchaka [Sun, 1 Apr 2018 07:26:33 +0000 (10:26 +0300)] 
[2.7] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6322)

(cherry picked from commit a95d98607efe0c43475b354543e49bf8e240bc6f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years ago[2.7] Gitignore gmon.out (GH-5796) (GH-6328)
Serhiy Storchaka [Sat, 31 Mar 2018 23:44:01 +0000 (02:44 +0300)] 
[2.7] Gitignore gmon.out (GH-5796) (GH-6328)

gmon.out is generated when profiling turned on

Full Configuration:
./configure --prefix=$PWD/install --enable-profiling  --enable-big-digits=30
--with-pydebug --with-assertions  --with-valgrind.
(cherry picked from commit 95ad3822a2b6287772bd752b6ab493c6d4198d4b)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
7 years ago[2.7] bpo-33096: Fix ttk.Treeview.insert. (GH-6228) (GH-6326)
Serhiy Storchaka [Sat, 31 Mar 2018 23:42:58 +0000 (02:42 +0300)] 
[2.7] bpo-33096: Fix ttk.Treeview.insert. (GH-6228) (GH-6326)

Allow ttk.Treeview.insert to insert iid that has a false boolean value.
Note iid=0 and iid=False would be same.
(cherry picked from commit 3ab44c0783eebdff687014f7d14d5dec59b6bd39)

Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
7 years ago[2.7] Fix error message in sqlite connection thread check. (GH-6028). (GH-6325)
Serhiy Storchaka [Sat, 31 Mar 2018 22:04:22 +0000 (01:04 +0300)] 
[2.7] Fix error message in sqlite connection thread check. (GH-6028). (GH-6325)

(cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6)

Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
7 years agobpo-31544: Fix a reference leak to 'self' after the previous target error handling...
scoder [Sat, 31 Mar 2018 12:23:30 +0000 (14:23 +0200)] 
bpo-31544: Fix a reference leak to 'self' after the previous target error handling fixes. (GH-6318)

This change generally splits the xmlparser creation code into an unsafe part with "rollback" error handling and a safe "object initialisation done" part with normal decref cleanup.

7 years agobpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6284)
Miss Islington (bot) [Wed, 28 Mar 2018 08:55:30 +0000 (01:55 -0700)] 
bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6284)

(cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f)

Co-authored-by: Ned Deily <nad@python.org>
7 years agoFix description about SimpleXMLRPCServer constructor parameter bind_and_activate...
Miss Islington (bot) [Mon, 26 Mar 2018 12:11:15 +0000 (05:11 -0700)] 
Fix description about SimpleXMLRPCServer constructor parameter bind_and_activate. (GH-776)

Passing True as the `bind_and_activate` *do* immediately opening and binding to their socket.
(cherry picked from commit e6223579c87b93f3e60d28796f521587d88091d4)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
7 years agoFix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)
Miss Islington (bot) [Mon, 26 Mar 2018 10:58:47 +0000 (03:58 -0700)] 
Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)

(cherry picked from commit 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc)

Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com>
7 years ago[2.7] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6215)
Christian Heimes [Sat, 24 Mar 2018 18:34:15 +0000 (19:34 +0100)] 
[2.7] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6215)

LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects
LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and
LibreSSL < 2.7.

Documentation updates and fixes for failing tests will be provided in
another patch set.

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

Co-authored-by: Christian Heimes <christian@python.org>
7 years agobpo-31544: Avoid calling "PyObject_GetAttrString()" (and potentially executing user...
scoder [Sat, 24 Mar 2018 05:56:41 +0000 (06:56 +0100)] 
bpo-31544: Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. (GH-3992)

7 years agoUpgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)
Miss Islington (bot) [Thu, 22 Mar 2018 04:14:22 +0000 (21:14 -0700)] 
Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)

(cherry picked from commit d93b5161af12291f3f98a260c90cc2975ea9e9cd)

Co-authored-by: Donald Stufft <donald@stufft.io>
7 years agoFix typos in mmap() error messages (GH-6173)
Miss Islington (bot) [Wed, 21 Mar 2018 06:55:44 +0000 (23:55 -0700)] 
Fix typos in mmap() error messages (GH-6173)

(cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoUpdate pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (GH-6135)
Miss Islington (bot) [Sat, 17 Mar 2018 15:54:45 +0000 (08:54 -0700)] 
Update pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (GH-6135)

(cherry picked from commit 7f81bb2addbbccfa45a2fc1aa6030f26dcf4bd78)

Co-authored-by: Donald Stufft <donald@stufft.io>
7 years ago[2.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-6111)
xdegaye [Tue, 13 Mar 2018 21:06:14 +0000 (22:06 +0100)] 
[2.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-6111)

(cherry picked from commit e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055)

7 years ago[2.7] bpo-33026: Fix jumping out of "with" block by setting f_lineno. (GH-6026)....
Miss Islington (bot) [Sun, 11 Mar 2018 08:55:59 +0000 (00:55 -0800)] 
[2.7] bpo-33026: Fix jumping out of "with" block by setting f_lineno. (GH-6026). (GH-6074) (GH-6076)

(cherry picked from commit 26c9f565d016db21257a60d29ab2c99383dd5ac7)
(cherry picked from commit 04aadf23eac51fec2e436c5960c1362bbb7d03de)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoClear possible exception before calling PyTuple_Pack in IMPORT_NAME (GH-6033)
Xiang Zhang [Fri, 9 Mar 2018 02:21:58 +0000 (10:21 +0800)] 
Clear possible exception before calling PyTuple_Pack in IMPORT_NAME (GH-6033)

7 years ago[2.7] closes bpo-32997: Fix REDOS in fpformat (GH-5984)
Jamie Davis [Tue, 6 Mar 2018 05:59:02 +0000 (00:59 -0500)] 
[2.7] closes bpo-32997: Fix REDOS in fpformat (GH-5984)

The regex to decode a number in fpformat is susceptible to catastrophic backtracking. This is a potential DOS vector if a server is using fpformat on untrusted number strings.

Replace it with an equivalent non-vulnerable regex. The match behavior of the new regex is slightly different. It captures the whole integer part of the number in one group, Leading zeros are stripped off later.

7 years ago[2.7] bpo-32981: Fix catastrophic backtracking vulns (GH-5955)
Benjamin Peterson [Sun, 4 Mar 2018 06:18:17 +0000 (22:18 -0800)] 
[2.7] bpo-32981: Fix catastrophic backtracking vulns (GH-5955)

* Prevent low-grade poplib REDOS (CVE-2018-1060)

The regex to test a mail server's timestamp is susceptible to
catastrophic backtracking on long evil responses from the server.

Happily, the maximum length of malicious inputs is 2K thanks
to a limit introduced in the fix for CVE-2013-1752.

A 2KB evil response from the mail server would result in small slowdowns
(milliseconds vs. microseconds) accumulated over many apop calls.
This is a potential DOS vector via accumulated slowdowns.

Replace it with a similar non-vulnerable regex.

The new regex is RFC compliant.
The old regex was non-compliant in edge cases.

* Prevent difflib REDOS (CVE-2018-1061)

The default regex for IS_LINE_JUNK is susceptible to
catastrophic backtracking.
This is a potential DOS vector.

Replace it with an equivalent non-vulnerable regex.

Also introduce unit and REDOS tests for difflib.

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Co-authored-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 0e6c8ee2358a2e23117501826c008842acb835ac)

7 years agobpo-32963: Fix the tutorial to state source has a default encoding of ASCII (GH-5961)
Brett Cannon [Fri, 2 Mar 2018 22:10:21 +0000 (14:10 -0800)] 
bpo-32963: Fix the tutorial to state source has a default encoding of ASCII (GH-5961)

7 years ago[2.7] bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801). (#5947)
Alexey Izbyshev [Thu, 1 Mar 2018 10:27:34 +0000 (13:27 +0300)] 
[2.7] bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801). (#5947)

(cherry picked from commit 3e197c7a6740d564ad52fb7901c07d5ff49460f5)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
7 years agobpo-18533: Avoid RuntimeError from repr() of recursive dictview (#4823) (#5357)
bennorth [Mon, 26 Feb 2018 22:35:03 +0000 (22:35 +0000)] 
bpo-18533: Avoid RuntimeError from repr() of recursive dictview (#4823) (#5357)

(cherry picked from commit d7773d92bd11640a8c950d6c36a9cef1cee36f96)

7 years agobpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length...
Miss Islington (bot) [Sun, 25 Feb 2018 21:22:43 +0000 (13:22 -0800)] 
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)

Dropped the part that says: "For objects that do not provide sequence protocol".
(cherry picked from commit 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years ago[2.7] bpo-25059: Clarify the print separator usage in tutorial (GH-5879)
Cheryl Sabella [Sun, 25 Feb 2018 20:50:26 +0000 (15:50 -0500)] 
[2.7] bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

By default `print` adds spaces between its arguments.

(cherry picked from commit 84c4b0cc67ceb4b70842b78c718b6e8214874d6a)

7 years agobpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
Miss Islington (bot) [Sun, 25 Feb 2018 19:38:24 +0000 (11:38 -0800)] 
bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

(cherry picked from commit fbee88244e8921afdb29fde51a9a010a8ae18277)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
7 years agoDelete a broken threading.local example (GH-5870)
Miss Islington (bot) [Sun, 25 Feb 2018 15:34:46 +0000 (07:34 -0800)] 
Delete a broken threading.local example (GH-5870)

This code never did anything correct or useful. The class attribute will never be affected, and the condition will never be true.
(cherry picked from commit 5fb632e83136399bad9427ee23ec8b771695290a)

Co-authored-by: Aaron Gallagher <habnabit@users.noreply.github.com>
7 years ago[2.7] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5882)
Christian Heimes [Sun, 25 Feb 2018 13:28:55 +0000 (14:28 +0100)] 
[2.7] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5882)

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

Co-authored-by: Christian Heimes <christian@python.org>
7 years agoFix ssl module, Python 2.7 doesn't have Py_MAX (#5878)
Christian Heimes [Sun, 25 Feb 2018 12:08:05 +0000 (13:08 +0100)] 
Fix ssl module, Python 2.7 doesn't have Py_MAX (#5878)

Signed-off-by: Christian Heimes <christian@python.org>
7 years ago[2.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5877)
Christian Heimes [Sun, 25 Feb 2018 11:31:17 +0000 (12:31 +0100)] 
[2.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5877)

The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.

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

Co-authored-by: Christian Heimes <christian@python.org>
7 years ago[2.7] bpo-30622: Improve NPN support detection (GH-5859) (#5863)
Christian Heimes [Sun, 25 Feb 2018 09:21:03 +0000 (10:21 +0100)] 
[2.7] bpo-30622: Improve NPN support detection (GH-5859) (#5863)

The ssl module now detects missing NPN support in LibreSSL.

Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org>
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 6cdb7954b0a578d899e4b78b868ea59eef08480a)

Co-authored-by: Christian Heimes <christian@python.org>