summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2019-05-17 09:55:34 (GMT)
committerKushal Das <mail@kushaldas.in>2019-05-17 09:55:34 (GMT)
commitcbb6484573ae2058e55614b28d73b0c8478f9a70 (patch)
tree2279089fb2343dd0a23262c8f69a30cf6e56bce6 /Doc/extending
parentfed02e15b39b6f1521ea21654be5fc0757a8720a (diff)
downloadcpython-cbb6484573ae2058e55614b28d73b0c8478f9a70.zip
cpython-cbb6484573ae2058e55614b28d73b0c8478f9a70.tar.gz
cpython-cbb6484573ae2058e55614b28d73b0c8478f9a70.tar.bz2
Doc: Replace the deprecated highlightlang directive by highlight. (#13377)
highlightlang is deprecated since April 2018 in Sphinx. See https://github.com/sphinx-doc/sphinx/pull/4845
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/building.rst6
-rw-r--r--Doc/extending/embedding.rst2
-rw-r--r--Doc/extending/extending.rst2
-rw-r--r--Doc/extending/newtypes.rst2
-rw-r--r--Doc/extending/newtypes_tutorial.rst2
-rw-r--r--Doc/extending/windows.rst2
6 files changed, 8 insertions, 8 deletions
diff --git a/Doc/extending/building.rst b/Doc/extending/building.rst
index 9bfad7f..753b551 100644
--- a/Doc/extending/building.rst
+++ b/Doc/extending/building.rst
@@ -1,4 +1,4 @@
-.. highlightlang:: c
+.. highlight:: c
.. _building:
@@ -20,7 +20,7 @@ The initialization function has the signature:
It returns either a fully-initialized module, or a :c:type:`PyModuleDef`
instance. See :ref:`initializing-modules` for details.
-.. highlightlang:: python
+.. highlight:: python
For modules with ASCII-only names, the function must be named
``PyInit_<modulename>``, with ``<modulename>`` replaced by the name of the
@@ -43,7 +43,7 @@ function corresponding to the filename is found.
See the *"Multiple modules in one library"* section in :pep:`489` for details.
-.. highlightlang:: c
+.. highlight:: c
Building C and C++ Extensions with distutils
============================================
diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst
index 13d83b7..483bc85 100644
--- a/Doc/extending/embedding.rst
+++ b/Doc/extending/embedding.rst
@@ -1,4 +1,4 @@
-.. highlightlang:: c
+.. highlight:: c
.. _embedding:
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index 433178a..e459514 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -1,4 +1,4 @@
-.. highlightlang:: c
+.. highlight:: c
.. _extending-intro:
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 8b9549d..308c067 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1,4 +1,4 @@
-.. highlightlang:: c
+.. highlight:: c
.. _new-types-topics:
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst
index b4bf9b9..59c8cc0 100644
--- a/Doc/extending/newtypes_tutorial.rst
+++ b/Doc/extending/newtypes_tutorial.rst
@@ -1,4 +1,4 @@
-.. highlightlang:: c
+.. highlight:: c
.. _defining-new-types:
diff --git a/Doc/extending/windows.rst b/Doc/extending/windows.rst
index 67bdd47..c7b92c6 100644
--- a/Doc/extending/windows.rst
+++ b/Doc/extending/windows.rst
@@ -1,4 +1,4 @@
-.. highlightlang:: c
+.. highlight:: c
.. _building-on-windows: