示例#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
示例#2
0
文件: encoding.py 项目: zalois/spyder
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
示例#3
0
def is_text_file(filename):
    """
    Test if the given path is a text-like file.
    """
    return not is_binary(filename)