예제 #1
0
파일: encoding.py 프로젝트: impact27/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
예제 #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)