From 70b7090a438f7962f28acc23fa78cdb6f5d084a0 2020-04-14 09:02:11 From: Lumir Balhar Date: 2020-04-14 09:02:11 Subject: [PATCH] Fix compatibility with the latest release of Sphinx `l_` from sphinx.locale has been deprecated for a long time. `_` is the new name for the same function but it seems that the imports there are useless. https://github.com/sphinx-doc/sphinx/commit/8d653a406dc0dc6c2632176ab4757ca15474b10f --- diff --git a/docs/sphinxext/configtraits.py b/docs/sphinxext/configtraits.py index 4e76769..2b05d2b 100644 --- a/docs/sphinxext/configtraits.py +++ b/docs/sphinxext/configtraits.py @@ -8,8 +8,7 @@ Cross reference like this: :configtrait:`Application.log_datefmt`. """ -from sphinx.locale import l_ -from sphinx.util.docfields import Field + def setup(app): app.add_object_type('configtrait', 'configtrait', objname='Config option')