@flake8ext
def check_python3_no_iteritems(logical_line):
 if re.search('.*\\.iteritems\\(\\)', logical_line):
  msg = 'N327: Use six.iteritems() instead of dict.iteritems().'
  (yield (0, msg))

@ flake8ext def check_python3_no_iteritems ( logical_line ) : if re . search ( '.*\\.iteritems\\(\\)' , logical_line ) : msg = 'N327: Use six.iteritems() instead of dict.iteritems().' ( yield ( 0 , msg ) )
n327 - use six .