@flake8ext
def check_no_basestring(logical_line):
 if re.search('\\bbasestring\\b', logical_line):
  msg = 'N326: basestring is not Python3-compatible, use six.string_types instead.'
  (yield (0, msg))

@ flake8ext def check_no_basestring ( logical_line ) : if re . search ( '\\bbasestring\\b' , logical_line ) : msg = 'N326: basestring is not Python3-compatible, use six.string_types instead.' ( yield ( 0 , msg ) )
n326 - dont use basestring .