def whitespace_around_comma(logical_line):
 line = logical_line
 for m in WHITESPACE_AFTER_COMMA_REGEX.finditer(line):
  found = (m.start() + 1)
  if (' DCTB ' in m.group()):
   (yield (found, ("E242 tab after '%s'" % m.group()[0])))
  else:
   (yield (found, ("E241 multiple spaces after '%s'" % m.group()[0])))

def whitespace_around_comma ( logical_line ) : line = logical_line for m in WHITESPACE_AFTER_COMMA_REGEX . finditer ( line ) : found = ( m . start ( ) + 1 ) if ( ' DCTB ' in m . group ( ) ) : ( yield ( found , ( "E242 tab after '%s'" % m . group ( ) [ 0 ] ) ) ) else : ( yield ( found , ( "E241 multiple spaces after '%s'" % m . group ( ) [ 0 ] ) ) )
avoid extraneous whitespace in the following situations: - more than one space around an assignment operator to align it with another .