Clean imports in code
In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. [1]: "Do not import objects, only modules". [1] https://docs.openstack.org/hacking/0.10.3/ Change-Id: Ib28240efb761a9426c57ac2551e0f19f07cdc2fb
This commit is contained in:
parent
276bda510e
commit
527547a3ee
@ -10,8 +10,8 @@ from sphinx.util.console import bold
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
from sphinx.application import Sphinx
|
from sphinx import application
|
||||||
if not isinstance(app, Sphinx):
|
if not isinstance(app, application.Sphinx):
|
||||||
return
|
return
|
||||||
app.connect('build-finished', emit_redirects)
|
app.connect('build-finished', emit_redirects)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user