def comparison_negative(logical_line):
 match = COMPARE_NEGATIVE_REGEX.search(logical_line)
 if match:
  pos = match.start(1)
  if (match.group(2) == 'in'):
   (yield (pos, "E713 test for membership should be 'not in'"))
  else:
   (yield (pos, "E714 test for object identity should be 'is not'"))

def comparison_negative ( logical_line ) : match = COMPARE_NEGATIVE_REGEX . search ( logical_line ) if match : pos = match . start ( 1 ) if ( match . group ( 2 ) == 'in' ) : ( yield ( pos , "E713 test for membership should be 'not in'" ) ) else : ( yield ( pos , "E714 test for object identity should be 'is not'" ) )
negative comparison .