summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-03 23:37:48 (GMT)
committerGitHub <noreply@github.com>2023-07-03 23:37:48 (GMT)
commitb4256135809d78d342e9d92e8bc3f527d3d3057f (patch)
tree330cecf4879a55d1f5b3e98104b10a7bcfa6b0fb /Include
parent648688c137744a623a71dc2413d2879b80c99eae (diff)
downloadcpython-b4256135809d78d342e9d92e8bc3f527d3d3057f.zip
cpython-b4256135809d78d342e9d92e8bc3f527d3d3057f.tar.gz
cpython-b4256135809d78d342e9d92e8bc3f527d3d3057f.tar.bz2
gh-106320: Fix _PyImport_GetModuleAttr() declaration (#106386)
Replace PyAPI_DATA() with PyAPI_FUNC().
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_import.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_import.h b/Include/internal/pycore_import.h
index 457a654..c048ae8 100644
--- a/Include/internal/pycore_import.h
+++ b/Include/internal/pycore_import.h
@@ -24,8 +24,8 @@ extern int _PyImport_FixupBuiltin(
extern int _PyImport_FixupExtensionObject(PyObject*, PyObject *,
PyObject *, PyObject *);
-PyAPI_DATA(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *);
-PyAPI_DATA(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *);
+PyAPI_FUNC(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *);
+PyAPI_FUNC(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *);
struct _import_runtime_state {