Rmove six forgotten before
- six.itervalues Change-Id: I504c63204507529eda5f7958f8a3137865becec6
This commit is contained in:
parent
27f82cb429
commit
b665388bf5
|
@ -14,7 +14,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import jinja2
|
import jinja2
|
||||||
import six
|
|
||||||
|
|
||||||
from muranopkgcheck import error
|
from muranopkgcheck import error
|
||||||
|
|
||||||
|
@ -33,7 +32,7 @@ def main():
|
||||||
print('Validators:')
|
print('Validators:')
|
||||||
for v in validators.VALIDATORS:
|
for v in validators.VALIDATORS:
|
||||||
print(v.__name__)
|
print(v.__name__)
|
||||||
errors = sorted(six.itervalues(error.errors),
|
errors = sorted(error.errors.values(),
|
||||||
key=lambda item: item['code'])
|
key=lambda item: item['code'])
|
||||||
t = jinja2.Template(TEMPLATE)
|
t = jinja2.Template(TEMPLATE)
|
||||||
r = t.render(errors=errors)
|
r = t.render(errors=errors)
|
||||||
|
|
Loading…
Reference in New Issue