]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 years agoRemove hyphens from phrase "picks up where it left off" (GH-7410)
Mariatta [Sun, 10 Jun 2018 03:59:04 +0000 (20:59 -0700)] 
Remove hyphens from phrase "picks up where it left off" (GH-7410)

(cherry picked from commit d689f976199d2e211a97d526b57cfa9871cc578d)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33766: Document that end of file or string is a newline (GH-7383)
Miss Islington (bot) [Sat, 9 Jun 2018 23:55:26 +0000 (16:55 -0700)] 
bpo-33766: Document that end of file or string is a newline (GH-7383)

(cherry picked from commit 0aa17ee6a76df0946d42e7657a501f1862065a22)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
7 years agobpo-28222: Don't fail if pygments is not available (GH-7564)
Zachary Ware [Sat, 9 Jun 2018 18:50:23 +0000 (13:50 -0500)] 
bpo-28222: Don't fail if pygments is not available (GH-7564)

We can't just skip the test if docutils is available,
but pygments is not because the purpose of the test
was testing a bug in _check_rst_data().

(cherry-picked from b5bb404ccaa9a3dd81e220fb4ca40253be778831)

7 years agobpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) (GH-7562)
Victor Stinner [Sat, 9 Jun 2018 16:59:19 +0000 (18:59 +0200)] 
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) (GH-7562)

If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.

Add also test_regrtest.test_rerun_fail() test.

(cherry picked from commit c45fc7673e23f911639d10d3771ffef7be870c7a)

7 years agobpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
Miss Islington (bot) [Sat, 9 Jun 2018 01:28:02 +0000 (18:28 -0700)] 
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)

- bugfix and test for fragile metavar handling in argparse (see
  bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
7 years ago[2.7] Add version change for OpenSSL 1.1.0 compatibility (GH-7541)
Mayank Singhal [Sat, 9 Jun 2018 01:26:13 +0000 (06:56 +0530)] 
[2.7] Add version change for OpenSSL 1.1.0 compatibility (GH-7541)

7 years ago[2.7] bpo-33751: Fix test_file. (GH-7378) (GH-7445)
Serhiy Storchaka [Fri, 8 Jun 2018 17:24:19 +0000 (20:24 +0300)] 
[2.7] bpo-33751: Fix test_file. (GH-7378) (GH-7445)

testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.

Also improve cleaning up after tests.
(cherry picked from commit c2745d2d05546d76f655ab450eb23d1af39e0b1c)

7 years agobpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459)
Victor Stinner [Wed, 6 Jun 2018 21:33:31 +0000 (23:33 +0200)] 
bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459)

test_io hangs with --huntrleaks: exclude the test in regrtest.

7 years agobpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456)
Victor Stinner [Wed, 6 Jun 2018 17:04:50 +0000 (19:04 +0200)] 
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456)

Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.

(cherry picked from commit 492d6424a7ca907c8ec1df21e51062e8f3d88e32)

7 years agobpo-19418: audioop.c: Fix warnings on -0x80000000 (GH-7453)
Victor Stinner [Wed, 6 Jun 2018 15:51:07 +0000 (17:51 +0200)] 
bpo-19418: audioop.c: Fix warnings on -0x80000000 (GH-7453)

bpo-19418, bpo-33781: Fix the following warnings on Windows:

Modules\audioop.c(28): warning C4146: unary minus operator applied
    to unsigned type, result still unsigned
Modules\audioop.c(396): warning C4146: unary minus operator applied
    to unsigned type, result still unsigned

7 years agobpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452)
Victor Stinner [Wed, 6 Jun 2018 15:12:39 +0000 (17:12 +0200)] 
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452)

Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.

Document also (int)double rounding mode.

(cherry picked from commit 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280)

7 years agoPC/_subprocess.c: Fix signed/unsigned comparison (GH-7446)
Victor Stinner [Wed, 6 Jun 2018 11:10:41 +0000 (13:10 +0200)] 
PC/_subprocess.c: Fix signed/unsigned comparison (GH-7446)

Fix the following compiler warning on Windows:
..\PC\_subprocess.c(384): warning C4018: '>' : signed/unsigned mismatch

7 years ago[2.7] remove hg support from patchcheck (GH-7440). (GH-7444)
Benjamin Peterson [Wed, 6 Jun 2018 05:55:10 +0000 (22:55 -0700)] 
[2.7] remove hg support from patchcheck (GH-7440). (GH-7444)

(cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8)

7 years agobpo-33600: document that platform.linux_distribution() has been removed (GH-7281)
Timo Furrer [Tue, 5 Jun 2018 20:14:46 +0000 (22:14 +0200)] 
bpo-33600: document that platform.linux_distribution() has been removed (GH-7281)

7 years ago[2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) ...
Serhiy Storchaka [Tue, 5 Jun 2018 16:51:37 +0000 (19:51 +0300)] 
[2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) (GH-7432)

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

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-18174: Fix fd_count() on FreeBSD (GH-7420)
Victor Stinner [Tue, 5 Jun 2018 11:30:48 +0000 (13:30 +0200)] 
bpo-18174: Fix fd_count() on FreeBSD (GH-7420)

Python 2.7 doesn't have FileNotFoundError exception: use OSError and
errno.ENOENT.

7 years agobpo-18174: regrtest -R 3:3 now also detects FD leak (#7409)
Victor Stinner [Tue, 5 Jun 2018 10:36:31 +0000 (12:36 +0200)] 
bpo-18174: regrtest -R 3:3 now also detects FD leak (#7409)

"python -m test --huntrleaks ..." now also checks for leak of file
descriptors.

Co-Authored-By: Richard Oudkerk <shibturn@gmail.com>
7 years agobpo-18174: Fix file descriptor leaks in tests (GH-7408)
Victor Stinner [Mon, 4 Jun 2018 22:36:42 +0000 (00:36 +0200)] 
bpo-18174: Fix file descriptor leaks in tests (GH-7408)

* test_tempfile.test_no_leak_fd() mocks os.close() but it doesn't
  call the original os.close() method and so leaks an open file
  descriptor. Fix the test by calling the original os.close()
  function.
* test_posix.test_fdopen_directory(): close the directory file
  descriptor when the test completes.

7 years ago[2.7] bpo-31234: Join threads explicitly in tests (#7406)
Victor Stinner [Mon, 4 Jun 2018 21:53:52 +0000 (23:53 +0200)] 
[2.7] bpo-31234: Join threads explicitly in tests (#7406)

* Add support.wait_threads_exit(): context manager looping at exit
  until the number of threads decreases to its original number.
* Add some missing thread.join()
* test_asyncore.test_send(): call explicitly t.join() because the cleanup
  function is only called outside the test method, whereas the method
  has a @test_support.reap_threads decorator
* test_hashlib: replace threading.Event with thread.join()
* test_thread:

  * Use wait_threads_exit() context manager
  * Replace test_support with support
  * test_forkinthread(): check child process exit status in the
    main thread to better handle error.

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)