Re: [Python-Dev] [Python-checkins] cpython: Issue #18393: Remove use of deprecated API on OSX

On Mon, Jul 15, 2013 at 11:32 AM, ronald.oussoren <python-checkins@python.org> wrote:
http://hg.python.org/cpython/rev/ccbaf6762b54 changeset: 84634:ccbaf6762b54 user: Ronald Oussoren <ronaldoussoren@mac.com> date: Mon Jul 15 18:32:09 2013 +0200 summary: Issue #18393: Remove use of deprecated API on OSX
The "Gestalt" function on OSX is deprecated (starting with OSX 10.8), remove its usage from the stdlib. The patch removes a number of private
I believe this means that Lib/test/leakers/test_gestalt.py can be removed as well.
functions and a private module, but does not change the public API.
The removed code was effectively dead, the platform module has used other code to fetch the OSX version for years and could only use on the Gestalt-based code as a fallback. That fallback can only trigger on broken OSX installs (that is, someone has removed parts of the system install)
files: Lib/platform.py | 64 +------------------------- Misc/NEWS | 4 + Modules/_gestalt.c | 84 ---------------------------------- setup.py | 4 - 4 files changed, 5 insertions(+), 151 deletions(-)
<snip diffs>
-- Repository URL: http://hg.python.org/cpython
-- Zach

On 15 Jul, 2013, at 18:43, Zachary Ware <zachary.ware@gmail.com> wrote:
On Mon, Jul 15, 2013 at 11:32 AM, ronald.oussoren <python-checkins@python.org> wrote:
http://hg.python.org/cpython/rev/ccbaf6762b54 changeset: 84634:ccbaf6762b54 user: Ronald Oussoren <ronaldoussoren@mac.com> date: Mon Jul 15 18:32:09 2013 +0200 summary: Issue #18393: Remove use of deprecated API on OSX
The "Gestalt" function on OSX is deprecated (starting with OSX 10.8), remove its usage from the stdlib. The patch removes a number of private
I believe this means that Lib/test/leakers/test_gestalt.py can be removed as well.
Interesting... test_gestalt.py cannot have worked in Py3k at all. I've removed the file. Thanks, Ronald
participants (2)
-
Ronald Oussoren
-
Zachary Ware