def _transform_equals_sign(tokens, local_dict, global_dict):
 result = []
 if ((OP, '=') in tokens):
  result.append((NAME, 'Eq'))
  result.append((OP, '('))
  for (index, token) in enumerate(tokens):
   if (token == (OP, '=')):
    result.append((OP, ','))
    continue
   result.append(token)
  result.append((OP, ')'))
 else:
  result = tokens
 return result

def _transform_equals_sign ( tokens , local_dict , global_dict ) : result = [ ] if ( ( OP , '=' ) in tokens ) : result . append ( ( NAME , 'Eq' ) ) result . append ( ( OP , '(' ) ) for ( index , token ) in enumerate ( tokens ) : if ( token == ( OP , '=' ) ) : result . append ( ( OP , ',' ) ) continue result . append ( token ) result . append ( ( OP , ')' ) ) else : result = tokens return result
transforms the equals sign = to instances of eq .