summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-05-12 09:32:38 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-05-12 09:37:37 +0900
commit42834e56c9c6a953979f2aeb7a429444ca1b4cb8 (patch)
treeef26edd581cc6fcb75fd20fb702fa3ad1b1793e4
parentcbedd4c5a24fd050e268b08655a18be5763b3479 (diff)
downloadsip4-tqt-42834e56.tar.gz
sip4-tqt-42834e56.zip
Replaced PyList_SET_ITEM as done in python-tqt.r14.0.11
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 65411c74aa20ff9a95283533954ea77ee25792a2)
-rw-r--r--doc/html/_sources/directives.txt4
-rw-r--r--doc/html/directives.html4
-rw-r--r--sphinx/directives.rst4
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/_sources/directives.txt b/doc/html/_sources/directives.txt
index 7e3a2e0..99bab2a 100644
--- a/doc/html/_sources/directives.txt
+++ b/doc/html/_sources/directives.txt
@@ -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.
diff --git a/doc/html/directives.html b/doc/html/directives.html
index 1ae1c60..8333659 100644
--- a/doc/html/directives.html
+++ b/doc/html/directives.html
@@ -406,7 +406,7 @@ list of <tt class="docutils literal"><span class="pre">TQWidget</span></tt> inst
}
// Add the wrapper to the list.
- PyList_SET_ITEM(l, i, wobj);
+ PyList_SetItem(l, i, wobj);
}
// Return the Python list.
@@ -1325,7 +1325,7 @@ object.</p>
return NULL;
}
- PyList_SET_ITEM(l, i, tobj);
+ PyList_SetItem(l, i, tobj);
}
// Return the Python list.
diff --git a/sphinx/directives.rst b/sphinx/directives.rst
index 7e3a2e0..99bab2a 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.