Skip to content

Commit

Permalink
builder: drop legacy builder constructor
Browse files Browse the repository at this point in the history
Since we enforce a minimum Sphinx v6.1, there is no longer a need to
maintain a compatibility call to a legacy super method; dropping.

Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Feb 27, 2024
1 parent f3d325d commit c444bb3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions sphinxcontrib/confluencebuilder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from docutils.io import StringOutput
from pathlib import Path
from sphinx import addnodes
from sphinx import version_info as sphinx_version_info
from sphinx.builders import Builder
from sphinx.locale import _ as SL
from sphinxcontrib.confluencebuilder.assets import ConfluenceAssetManager
Expand Down Expand Up @@ -54,15 +53,7 @@ class ConfluenceBuilder(Builder):
supported_remote_images = True

def __init__(self, app, env=None):
# As of Sphinx v5.1.0, builders will accept an `env` option to
# configure against an environment (over later having an environment
# assigned.
if sphinx_version_info >= (5, 1):
# pylint: disable=too-many-function-args
super().__init__(app, env)
# pylint: enable=too-many-function-args
else:
super().__init__(app) # pylint: disable=E1120
super().__init__(app, env)

self.cache_doctrees = {}
self.cloud = False
Expand Down

0 comments on commit c444bb3

Please sign in to comment.