Exemplo n.º 1
0
def is_text_file(filename):
    """
    Test if the given path is a text-like file.
    """
    try:
        return not is_binary(filename)
    except (OSError, IOError):
        return False
Exemplo n.º 2
0
def is_text_file(filename):
    """
    Test if the given path is a text-like file.
    """
    try:
        return not is_binary(filename)
    except (OSError, IOError):
        return False
Exemplo n.º 3
0
def is_text_file(filename):
    """
    Test if the given path is a text-like file.
    """
    return not is_binary(filename)