From f31fe9cb530e25a7a65b107c2c4d68b44c250f90 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 26 Aug 2023 18:33:23 +0200 Subject: [PATCH] gh-85283: _scproxy uses the limited C API The _scproxy (macOS) C extension is now built with the limited C API. --- .../next/C API/2023-08-28-17-58-46.gh-issue-85283.-4lp73.rst | 2 ++ Modules/_scproxy.c | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 Misc/NEWS.d/next/C API/2023-08-28-17-58-46.gh-issue-85283.-4lp73.rst diff --git a/Misc/NEWS.d/next/C API/2023-08-28-17-58-46.gh-issue-85283.-4lp73.rst b/Misc/NEWS.d/next/C API/2023-08-28-17-58-46.gh-issue-85283.-4lp73.rst new file mode 100644 index 000000000000000..ae756295de27f78 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2023-08-28-17-58-46.gh-issue-85283.-4lp73.rst @@ -0,0 +1,2 @@ +The ``_scproxy`` (macOS) C extension is now built with the :ref:`limited C API +`. Patch by Victor Stinner. diff --git a/Modules/_scproxy.c b/Modules/_scproxy.c index 0df0324df55f7d4..3582cd4d848b0a3 100644 --- a/Modules/_scproxy.c +++ b/Modules/_scproxy.c @@ -2,6 +2,8 @@ * Helper method for urllib to fetch the proxy configuration settings * using the SystemConfiguration framework. */ +#define Py_LIMITED_API 0x030d0000 + #include #include