eb6b43ba06
Previously, we had an issue whereby errors found in the generated source would result in the following, rather unhelpful error messages: <oslo_config.sphinxext>:1: WARNING: Unexpected indentation. Turns out that the 'ViewList.append' function takes a third argument, 'offset', to indicate where in the source an error is occurring. Start using this to improve the quality of the error messages we get from poorly formatted options. Given that we don't actually modify the source file, it's also necessary to write the output from the directive to an intermediate temp file. This also fixes the order of imports, given that we're adding new imports as we go. Change-Id: I6f6796629705926dbed5015f20d47187b77c9c50 Related-Bug: #1755783 |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
_i18n.py | ||
_list_opts.py | ||
cfg.py | ||
cfgfilter.py | ||
fixture.py | ||
generator.py | ||
iniparser.py | ||
sphinxconfiggen.py | ||
sphinxext.py | ||
types.py | ||
version.py |