From 65411c74aa20ff9a95283533954ea77ee25792a2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 12 May 2021 09:32:38 +0900 Subject: Replaced PyList_SET_ITEM as done in python-tqt. Signed-off-by: Michele Calgaro --- sphinx/directives.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sphinx') diff --git a/sphinx/directives.rst b/sphinx/directives.rst index ecaaa5b..858f112 100644 --- a/sphinx/directives.rst +++ b/sphinx/directives.rst @@ -397,7 +397,7 @@ list of ``QWidget`` instances:: } // Add the wrapper to the list. - PyList_SET_ITEM(l, i, wobj); + PyList_SetItem(l, i, wobj); } // Return the Python list. @@ -1387,7 +1387,7 @@ For example:: return NULL; } - PyList_SET_ITEM(l, i, tobj); + PyList_SetItem(l, i, tobj); } // Return the Python list. -- cgit v1.2.1