dateparser/languages/dictionary.py
def are_tokens_valid(self, tokens):
        """
        Check if tokens are valid tokens for the locale.

        :param tokens:
            a list of string or unicode tokens.
        :type tokens: list

        :return: True if tokens are valid, False otherwise.
        """
        match_relative_regex = self._get_match_relative_regex_cache()
        for token in tokens:
            if any([match_relative_regex.match(token),
                    token in self, token.isdigit()]):
                continue
            else:
                return False
        else:
            return True
def are_tokens_valid(self, tokens):
        match_relative_regex = self._get_match_relative_regex_cache()
        for token in tokens:
            if any([match_relative_regex.match(token),
                    token in self, token.isdigit()]):
                continue
            else:
                return False
        else:
            return True
def are_tokens_valid ( self , tokens ) : match_relative_regex = self . _get_match_relative_regex_cache ( ) for token in tokens : if any ( [ match_relative_regex . match ( token ) , token in self , token . isdigit ( ) ] ) : continue else : return False else : return True
Check if tokens are valid tokens for the locale.

        :param tokens:
            a list of string or unicode tokens.
        :type tokens: list

        :return: True if tokens are valid, False otherwise.
Check if tokens are valid tokens for the locale .