docs: remove support for old sphinx-versions
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 25 Apr 2023 06:46:07 +0000 (08:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Apr 2023 22:45:41 +0000 (22:45 +0000)
We're not using them, so no point in keeping support around.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8399>

docs/_exts/bootstrap.py

index 9050d54..e7239a6 100644 (file)
@@ -30,8 +30,6 @@
 
 # Based on https://github.com/pydata/pydata-sphinx-theme
 
-from packaging.version import Version
-
 from docutils import nodes
 
 import sphinx
@@ -77,10 +75,7 @@ class BootstrapHTML5TranslatorMixin:
         # init the attributes
         atts = {}
 
-        if Version(sphinx.__version__) < Version("4.3"):
-            self._table_row_index = 0
-        else:
-            self._table_row_indices.append(0)
+        self._table_row_indices.append(0)
 
         # get the classes
         classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]