Commit Graph

80667 Commits

Author SHA1 Message Date
Serhiy Storchaka 6c58f7f4b1
[2.7] Fix line breaks added after hyphens by blurb. (GH-7052) 2018-05-22 14:55:52 +03:00
Miss Islington (bot) 3ccc31386d
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
(cherry picked from commit 1179f4b40f)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-05-21 07:10:27 -07:00
Serhiy Storchaka ea9a0994cd
[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 c66c342cb4)

Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
2018-05-21 01:50:33 +03:00
Victor Stinner d13169fc5a
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).
2018-05-19 01:53:13 +02:00
Miss Islington (bot) 6a8954a91a [2.7] Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967) (GH-6970)
(cherry picked from commit bde3e0bf09)
2018-05-18 17:19:21 +03:00
Stéphane Wirtel ad65d09fd0 [2.7] bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814). (GH-6905)
(cherry picked from commit 19177fbd5d)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
2018-05-16 10:57:36 -04:00
Serhiy Storchaka 861d38443d
[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 c3fa1f2b93)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>.
2018-05-15 01:09:47 +03:00
Miss Islington (bot) 84fc6c59cf
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 7ffd4c58fa)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
2018-05-14 09:11:42 -07:00
Bo Bayles afe5f633e4 bpo-33038: Fix gzip.GzipFile for file objects with a non-string name attribute. (GH-6095) 2018-05-09 13:14:40 +03:00
Serhiy Storchaka d7e783b17f
[2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738). (GH-6744)
(cherry picked from commit ddb6215a55)
2018-05-09 12:35:28 +03:00
Serhiy Storchaka 903f189b6e
bpo-33096: Removed unintentionally backported from Python 3 Tkinter files. (GH-6724)
This partially reverts commit e80a232f2c.
2018-05-08 10:09:08 +03:00
Andrés Delfino c40eeeb5e6 [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 b2043bbe60)
2018-05-07 08:44:03 +03:00
Serhiy Storchaka a55ac801f7
[2.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708). (GH-6717)
(cherry picked from commit cedc9b7420)
2018-05-06 10:51:49 +03:00
Cheryl Sabella 3a04598f63 bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701) (GH-6620)
(cherry picked from commit 74382a3f17)
2018-05-05 16:10:48 +03:00
Bo Bayles 4a1bc26832 [2.7] bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) (GH-6646)
(cherry picked from commit 9f3535c9cd)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
2018-05-05 14:09:46 +03:00
Miss Islington (bot) 6d3d02c69a
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
(cherry picked from commit 491bbedc20)

Co-authored-by: lekma <lekmalek@gmail.com>
2018-05-02 03:23:41 -07:00
Miss Islington (bot) 5818f08962 Mitigate macOS race condition in installer build (GH-6686) (#6689)
(cherry picked from commit fc6aa28bfd)

Co-authored-by: Ned Deily <nad@python.org>
2018-05-02 01:50:12 -04:00
Serhiy Storchaka 07ad02f62c
[2.7] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442). (GH-6650)
(cherry picked from commit 7d68bfa826)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
2018-04-30 11:34:47 +03:00
Bo Bayles 07c3a612c7 Fix reference to exceptions in multprocessing docs. (GH-6647) 2018-04-30 08:29:24 +03:00
Benjamin Peterson 0d7d26bce4 2.7.15+ 2018-04-29 16:22:11 -07:00
Benjamin Peterson 75c8df51ac merge 2.7.15 release branch 2018-04-29 15:48:13 -07:00
Benjamin Peterson ca079a3ea3 bump to 2.7.15 2018-04-29 15:47:33 -07:00
Benjamin Peterson 4c86fc01f6 generate 2.7.15 NEWS 2018-04-29 15:47:18 -07:00
Benjamin Peterson 0b3800d82a Merge 2.7.15 release branch 2018-04-29 12:24:24 -07:00
Florian Weimer 0b91f8a668 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 e348c8d154. For 2.7, we need to add some
dummy padding to make sure _PyGC_Head stays the same size.
2018-04-29 12:18:33 -07:00
Andrés Delfino 1c6c8510f9 [2.7] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (GH-6607)
(cherry picked from commit 67a8f4fed3)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-26 16:50:07 +03:00
Benjamin Peterson 3219bbf6a1
fix running the curses.has_key module (closes bpo-33359) (GH-6608)
This was broken by poor automated translation back in 6e3dbbdf39.
2018-04-25 22:57:34 -07:00
Serhiy Storchaka 55299fffe3
[2.7] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6605)
(cherry picked from commit e9d9494d6b)
2018-04-26 03:28:14 +03:00
INADA Naoki 730fb07c3c
travis: Use -O3 option (GH-5599)
We don't use debugger on Travis.
(cherry picked from commit 8ff5356473)
2018-04-25 10:28:06 +09:00
Antoine Pitrou 36af11877a
[2.7] Update `make patchcheck` for blurb and NEWS.d (GH-2381) (GH-6576)
(cherry picked from commit 1ba9469)
2018-04-23 14:22:15 +02:00
Andrés Delfino b9827b7620 [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'
2018-04-21 19:06:40 +03:00
Miss Islington (bot) 4caba7a940
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Upgrade ensurepip to bundle pip 10.0.1
(cherry picked from commit 0399cf9b5e)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2018-04-20 13:48:43 -07:00
Andrés Delfino 7a45eb9efb bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479) (GH-6542)
(cherry picked from commit 4b685bf719)

Update only the documentation about image formats.
2018-04-20 09:15:01 +03:00
Serhiy Storchaka d988c0b6bd
[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 e5362eaa75)
2018-04-19 09:16:43 +03:00
Miss Islington (bot) afc768d698 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 36d56ea826)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-04-17 11:35:32 -04:00
Benjamin Peterson 7d19676213
[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 acfb087f9f)
2018-04-16 23:54:08 -07:00
Benjamin Peterson bad9a580ca 2.7.15rc1 version bump 2018-04-14 15:06:30 -07:00
Benjamin Peterson f2f1d4b2a5 make NEWS for 2.7.15rc1 2018-04-14 15:06:13 -07:00
Steve Dower bba2ba180d bpo-33148: Update Windows build to use OpenSSL 1.0.2o
closes https://github.com/python/cpython/pull/6474
2018-04-14 15:04:21 -07:00
Miss Islington (bot) 01a0fd4a3a [2.7] bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408) (GH-6471)
(cherry picked from commit 76215a4481)

Co-authored-by: Ned Deily <nad@python.org>
2018-04-14 11:21:02 -04:00
Ned Deily 93c91ac8f6
[2.7] Fix errant NEWS item: bpo-19019 -> bpo-17128 (GH-6470) 2018-04-14 10:56:17 -04:00
Ned Deily ee8e4b61d6
[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
2018-04-14 10:37:28 -04:00
Serhiy Storchaka a61f5da547
[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 c93938b5be)
2018-04-10 11:03:52 +03:00
Miss Islington (bot) 77f0a41d72 [2.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6405)
(cherry picked from commit ef5ce884a4)

Co-authored-by: Jay Crotts <crotts.jay@gmail.com>
2018-04-06 22:01:35 -04:00
Cheryl Sabella 325191bd6b [2.7] bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (GH-6339)
(cherry picked from commit da1734c58d)
2018-04-01 22:29:01 -07:00
Serhiy Storchaka 72f3e08875
[2.7] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6322)
(cherry picked from commit a95d98607e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-01 10:26:33 +03:00
Serhiy Storchaka 4a3c4babd9
[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 95ad3822a2)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
2018-04-01 02:44:01 +03:00
Serhiy Storchaka e80a232f2c
[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 3ab44c0783)

Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
2018-04-01 02:42:58 +03:00
Serhiy Storchaka 924035a5e5
[2.7] Fix error message in sqlite connection thread check. (GH-6028). (GH-6325)
(cherry picked from commit 030345c0bf)

Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
2018-04-01 01:04:22 +03:00
scoder c498cd8bf8 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.
2018-03-31 15:23:30 +03:00