]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 years agobpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)
Victor Stinner [Fri, 22 Jun 2018 07:11:33 +0000 (09:11 +0200)] 
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)

Add -g to LDFLAGS when compiling with LTO to get debug symbols.

7 years agobpo-33931: Fix building using PC\VS9.0\build.bat -e (GH-7844)
Anselm Kruis [Thu, 21 Jun 2018 14:08:32 +0000 (16:08 +0200)] 
bpo-33931: Fix building using PC\VS9.0\build.bat -e (GH-7844)

Set the openssl version to 1.0.2o and fix compiling Tcl.

7 years agobpo-33901: Fix test_gdbm for gdbm 1.15 (GH-7798) (GH-7818)
Victor Stinner [Wed, 20 Jun 2018 08:57:38 +0000 (10:57 +0200)] 
bpo-33901: Fix test_gdbm for gdbm 1.15 (GH-7798) (GH-7818)

Fix test_gdbm.test_reorganize() on macOS with gdbm 1.15: add a
larger value to make sure that the file size changes.

(cherry picked from commit 13c79c677f9ec9437c82eda72fa1c2d288d8fceb)

7 years agobpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH...
Miss Islington (bot) [Tue, 19 Jun 2018 18:02:17 +0000 (11:02 -0700)] 
bpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH-7797) (GH-7803)

(cherry picked from commit 71ca738f4cd2696d056d0cdb83bebd576f98ccc2)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
7 years agoFix four spelling typos in documentation (GH-7753)
Xtreak [Tue, 19 Jun 2018 03:46:49 +0000 (09:16 +0530)] 
Fix four spelling typos in documentation (GH-7753)

7 years agobpo-33892: Doc: Use gender neutral words (GH-7770)
Andrés Delfino [Mon, 18 Jun 2018 15:33:58 +0000 (12:33 -0300)] 
bpo-33892: Doc: Use gender neutral words (GH-7770)

(cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years ago[2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758)
Terry Jan Reedy [Sat, 16 Jun 2018 22:15:18 +0000 (18:15 -0400)] 
[2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758)

Make it the same as when one runs 'python'..
(cherry picked from commit 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years agobpo-33571: Improve the glossary description for '...' prompt (GH-6971)
Miss Islington (bot) [Sat, 16 Jun 2018 03:58:15 +0000 (20:58 -0700)] 
bpo-33571: Improve the glossary description for '...' prompt (GH-6971)

Mention that it can be triggered by triple quotes and after specifying decorators.
(cherry picked from commit 68680035143a3a6398faa88f067f244c74691d19)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoImprove the grammar in the glossary item for `list` (GH-7727)
Miss Islington (bot) [Sat, 16 Jun 2018 02:53:58 +0000 (19:53 -0700)] 
Improve the grammar in the glossary item for `list` (GH-7727)

" ... access to elements is O(1)."

(cherry picked from commit 7469ff5017ec315a81e35913f19a32f0dbdf712e)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoFix compiler warnings on Windows (GH-7729)
Victor Stinner [Fri, 15 Jun 2018 22:33:51 +0000 (00:33 +0200)] 
Fix compiler warnings on Windows (GH-7729)

Fix comparison between signed and unsigned integers. Example of fixed
warning:

Modules\_sre.c(838): warning C4018: '<' : signed/unsigned mismatch

(cherry picked from commit 1fa174a418d78ef24aa741945230a5074b3e6236)

7 years agobpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726)
Victor Stinner [Fri, 15 Jun 2018 21:59:56 +0000 (23:59 +0200)] 
bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726)

* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)

python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.

(cherry picked from commit 019d33b7a447e78057842332fb5d3bad01922122)

* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)

python-gdb now catchs UnicodeDecodeError exceptions when calling
string().

(cherry picked from commit d22fc0bc7de7882da204abe50884bbde2da4f9e7)

bpo-29367: python-gdb.py now supports also method-wrapper
(wrapperobject) objects.

(cherry picked from commit 611083331d534481ca7956a376e38fb0e9ef3854)

7 years ago[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)
Andrés Delfino [Fri, 15 Jun 2018 19:23:37 +0000 (16:23 -0300)] 
[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)

'expresson list' refers to the grammar term 'expression_list' in the subscription production..
(cherry picked from commit 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) (GH...
Xiang Zhang [Fri, 15 Jun 2018 13:26:55 +0000 (21:26 +0800)] 
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) (GH-7704)

Hangul composition check boundaries are wrong for the second character
([0x1161, 0x1176) instead of [0x1161, 0x1176]) and third character ((0x11A7, 0x11C3)
instead of [0x11A7, 0x11C3])..
(cherry picked from commit d134809cd3764c6a634eab7bb8995e3e2eff14d5)

Co-authored-by: Wonsup Yoon <pusnow@me.com>
7 years ago[2.7] bpo-33828: Clarify auto-numbering is not available to string.Formatter. (GH... 5581/head
Xiang Zhang [Wed, 13 Jun 2018 02:37:54 +0000 (10:37 +0800)] 
[2.7] bpo-33828: Clarify auto-numbering is not available to string.Formatter. (GH-7668) (GH-7676)

string.Formatter auto-numbering feature was added in 3.4 and not
available in 2.7. Make the documentation unambiguous.

7 years agobpo-33845: Update Doc\make.bat on 2.7 to bring it on par to master version (GH-7667)
Andrés Delfino [Wed, 13 Jun 2018 00:30:57 +0000 (21:30 -0300)] 
bpo-33845: Update Doc\make.bat on 2.7 to bring it on par to master version (GH-7667)

7 years agobpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7624)
Ned Deily [Mon, 11 Jun 2018 09:01:01 +0000 (05:01 -0400)] 
bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7624)

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