def _parse_tuple(features, new_names):
        """Helping function of `_parse_features` that parses a tuple."""
        name_idx = 1
        try:
            feature_type = FeatureType(features[0])
        except ValueError:
            feature_type = None
            name_idx = 0

        if feature_type and not feature_type.has_dict():
            return OrderedDict([(feature_type, ...)])
        return OrderedDict([(feature_type, FeatureParser._parse_names_tuple(features[name_idx:], new_names))])
def _parse_tuple ( features , new_names ) : name_idx = 1 try : feature_type = FeatureType ( features [ 0 ] ) except ValueError : feature_type = None name_idx = 0 if feature_type and not feature_type . has_dict ( ) : return OrderedDict ( [ ( feature_type , ... ) ] ) return OrderedDict ( [ ( feature_type , FeatureParser . _parse_names_tuple ( features [ name_idx : ] , new_names ) ) ] )
Helping function of `_parse_features` that parses a tuple.