scout/utils/md5.py
def generate_md5_key(list_of_arguments):
    """
    Generate an md5-key from a list of arguments.

    Args:
        list_of_arguments: A list of strings

    Returns:
        A md5-key object generated from the list of strings.
    """
    for arg in list_of_arguments:
        if not isinstance(arg, string_types):
            raise SyntaxError("Error in generate_md5_key: "
                              "Argument: {0} is a {1}".format(arg, type(arg)))

    hash = hashlib.md5()
    hash.update(' '.join(list_of_arguments).encode('utf-8'))
    return hash.hexdigest()
def generate_md5_key(list_of_arguments):
    """
    Generate an md5-key from a list of arguments.

    Args:
        list_of_arguments: A list of strings

    Returns:
        A md5-key object generated from the list of strings.
    """
    for arg in list_of_arguments:
        if not isinstance(arg, string_types):
            raise SyntaxError("Error in generate_md5_key: "
                              "Argument: {0} is a {1}".format(arg, type(arg)))

    hash = hashlib.md5()
    hash.update(' '.join(list_of_arguments).encode('utf-8'))
    return hash.hexdigest()
Generate an md5-key from a list of arguments.

    Args:
        list_of_arguments: A list of strings

    Returns:
        A md5-key object generated from the list of strings.