def no_direct_use_of_unicode_function(logical_line):
 if unicode_func_re.match(logical_line):
  (yield (0, 'G320: Use six.text_type() instead of unicode()'))

def no_direct_use_of_unicode_function ( logical_line ) : if unicode_func_re . match ( logical_line ) : ( yield ( 0 , 'G320: Use six.text_type() instead of unicode()' ) )
check for use of unicode() builtin g320 .