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
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
def is_text_file(filename): """ Test if the given path is a text-like file. """ return not is_binary(filename)