Using items() instead of six.iteritems()
We'd better not use six.iteritems(), read follow doc http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html Change-Id: I32aff3ad0cc936c6b623db313b6f6a0790cbc7fb
This commit is contained in:
@@ -16,7 +16,6 @@ import os
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
import pep8
|
import pep8
|
||||||
import six
|
|
||||||
|
|
||||||
|
|
||||||
def flake8ext(f):
|
def flake8ext(f):
|
||||||
@@ -61,7 +60,7 @@ def _regex_for_level(level, hint):
|
|||||||
|
|
||||||
log_translation_hint = re.compile(
|
log_translation_hint = re.compile(
|
||||||
'|'.join('(?:%s)' % _regex_for_level(level, hint)
|
'|'.join('(?:%s)' % _regex_for_level(level, hint)
|
||||||
for level, hint in six.iteritems(_all_log_levels)))
|
for level, hint in _all_log_levels.items()))
|
||||||
|
|
||||||
log_warn = re.compile(
|
log_warn = re.compile(
|
||||||
r"(.)*LOG\.(warn)\(\s*('|\"|_)")
|
r"(.)*LOG\.(warn)\(\s*('|\"|_)")
|
||||||
|
|||||||
Reference in New Issue
Block a user