From 3b6f549e961fc790e5e7db8ec8c0709b63d6eee9 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 25 Apr 2023 08:46:07 +0200 Subject: [PATCH] docs: remove support for old sphinx-versions We're not using them, so no point in keeping support around. Reviewed-by: Eric Engestrom Part-of: --- docs/_exts/bootstrap.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/_exts/bootstrap.py b/docs/_exts/bootstrap.py index 9050d54..e7239a6 100644 --- a/docs/_exts/bootstrap.py +++ b/docs/_exts/bootstrap.py @@ -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(",")] -- 2.7.4