From b0f84597184c9ef78ef182984ba3d3b9b40f9462 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Mon, 24 Sep 2018 17:17:31 +0100 Subject: [PATCH] Remove deprecated OSX checks --- src/_macosx.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_macosx.m b/src/_macosx.m index ce791d1f9d21..cad0d3d8658d 100644 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -2580,9 +2580,7 @@ static bool verify_framework(void) ProcessSerialNumber psn; /* These methods are deprecated, but they don't require the app to have started */ - if (CGMainDisplayID()!=0 - && GetCurrentProcess(&psn)==noErr - && SetFrontProcess(&psn)==noErr) return true; + if (CGMainDisplayID()!=0) return true; PyErr_SetString(PyExc_ImportError, "Python is not installed as a framework. The Mac OS X backend will " "not be able to function correctly if Python is not installed as a "