From: Erik Faye-Lund Date: Tue, 25 Apr 2023 06:46:07 +0000 (+0200) Subject: docs: remove support for old sphinx-versions X-Git-Tag: upstream/23.3.3~9452 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b6f549e961fc790e5e7db8ec8c0709b63d6eee9;p=platform%2Fupstream%2Fmesa.git 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: --- 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(",")]