diff --git a/CHANGES b/CHANGES index 321469059..3accf942a 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,7 @@ Bugs fixed * #1771: automated .mo building doesn't work properly. * #1783: Autodoc: Python2 Allow unicode string in __all__. Thanks to Jens Hedegaard Nielsen. +* #1781: Setting `html_domain_indices` to a list raises a type check warnings. Release 1.3 (released Mar 10, 2015) =================================== diff --git a/sphinx/config.py b/sphinx/config.py index ac3358dda..090875a79 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -28,6 +28,10 @@ if PY3: CONFIG_EXIT_ERROR = "The configuration file (or one of the modules it imports) " \ "called sys.exit()" +IGNORE_CONFIG_TYPE_CHECKS = ( + 'html_domain_indices', 'latex_domain_indices', 'texinfo_domain_indices' +) + class Config(object): """ @@ -288,6 +292,8 @@ class Config(object): # NB. since config values might use l_() we have to wait with calling # this method until i18n is initialized for name in self._raw_config: + if name in IGNORE_CONFIG_TYPE_CHECKS: + continue # for a while, ignore multiple types config value. see #1781 if name not in Config.config_values: continue # we don't know a default value default, dummy_rebuild = Config.config_values[name]