summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Maddox <louismmx@gmail.com>2021-07-23 21:53:46 +0100
committerLouis Maddox <louismmx@gmail.com>2021-07-23 21:53:46 +0100
commit10dba797f204bc00d1e170cf024b22bffe241f25 (patch)
tree1589920b65014e7e88327104cdd12153645fb9c1
parentf89f787cc91552638026e82e472d2c3647a3f6ac (diff)
downloadsphinx-git-10dba797f204bc00d1e170cf024b22bffe241f25.tar.gz
Address flake8 errors in whitespace linting
-rw-r--r--sphinx/application.py6
-rw-r--r--sphinx/config.py3
-rw-r--r--sphinx/testing/fixtures.py2
3 files changed, 6 insertions, 5 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 9fdc240de..b55eb76c1 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -608,9 +608,9 @@ class Sphinx:
:param node: A node class
:param figtype: The type of enumerable nodes. Each figtype has individual numbering
sequences. As system figtypes, ``figure``, ``table`` and
- ``code-block`` are defined. It is possible to add custom nodes to these
- default figtypes. It is also possible to define new custom figtype if
- a new figtype is given.
+ ``code-block`` are defined. It is possible to add custom nodes to
+ these default figtypes. It is also possible to define new custom
+ figtype if a new figtype is given.
:param title_getter: A getter function to obtain the title of node. It takes an
instance of the enumerable node, and it must return its title as
string. The title is used to the default title of references for
diff --git a/sphinx/config.py b/sphinx/config.py
index b9f29668e..a025ed665 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -215,7 +215,8 @@ class Config:
def pre_init_values(self) -> None:
"""
- Initialize some limited config variables before initializing i18n and loading extensions
+ Initialize some limited config variables before initializing i18n and loading
+ extensions.
"""
variables = ['needs_sphinx', 'suppress_warnings', 'language', 'locale_dirs']
for name in variables:
diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py
index 5f753d221..daad5a7f6 100644
--- a/sphinx/testing/fixtures.py
+++ b/sphinx/testing/fixtures.py
@@ -252,7 +252,7 @@ def rollback_sysmodules():
"""
Rollback sys.modules to its value before testing to unload modules
during tests.
-
+
For example, used in test_ext_autosummary.py to permit unloading the
target module to clear its cache.
"""