Use future.utils iterkeys; fix some more style issues

This commit is contained in:
dhleong 2016-10-10 19:50:34 -04:00
parent abc0dd5e31
commit 4c53e5d006

View File

@ -23,6 +23,7 @@ from future import standard_library
standard_library.install_aliases()
from builtins import * # noqa
from future.utils import iterkeys
import re
@ -30,7 +31,7 @@ class DiagnosticFilter( object ):
def __init__( self, config ):
self._filters = []
for filter_type in config.iterkeys():
for filter_type in iterkeys( config ):
wrapper = _AsIs
actual_filter_type = filter_type