mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 20:30:30 -06:00
Do not emit warning for Documenter.format_args()
This commit is contained in:
1 parent
db4dd6c9f9
commit
0489fad63a
1 file changed
+1
-3
@@ -400,9 +400,7 @@ class Documenter:
|
||||
try:
|
||||
args = self.format_args(**kwargs)
|
||||
except TypeError:
|
||||
warnings.warn("Documenter.format_args() takes keyword arguments "
|
||||
"since Sphinx-2.1",
|
||||
RemovedInSphinx40Warning)
|
||||
# retry without arguments for old documenters
|
||||
args = self.format_args()
|
||||
except Exception as err:
|
||||
logger.warning(__('error while formatting arguments for %s: %s') %
|
||||
|
||||
Reference in new issue
Block a user