Clean imports in code
In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. http://docs.openstack.org/developer/hacking/#imports Change-Id: Ic07b017966075ca8946f29ee65ca13070cb5b1a3
This commit is contained in:
parent
d74f305fbe
commit
1f9ec8dd57
|
@ -15,8 +15,7 @@
|
|||
#
|
||||
|
||||
from __future__ import with_statement
|
||||
from jinja2 import FileSystemLoader
|
||||
from jinja2 import Environment
|
||||
import jinja2
|
||||
import lxml.etree as et
|
||||
import uuid
|
||||
import sys
|
||||
|
@ -156,8 +155,8 @@ for case in root:
|
|||
else:
|
||||
REPORT[class_name]['result'] = 'success'
|
||||
|
||||
jinja = Environment(
|
||||
loader=FileSystemLoader(os.path.join(
|
||||
jinja = jinja2.Environment(
|
||||
loader=jinja2.FileSystemLoader(os.path.join(
|
||||
os.path.dirname(__file__), 'templates')
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue