def _read(fname, fail_silently=False):
try:<EOL><INDENT>filepath = os.path.join(os.path.dirname(__file__), fname)<EOL>with io.open(filepath, '<STR_LIT>', encoding='<STR_LIT:utf8>') as f:<EOL><INDENT>return f.read()<EOL><DEDENT><DEDENT>except:<EOL><INDENT>if not fail_silently:<EOL><INDENT>raise<EOL><DEDENT>return '<STR_LIT>'<EOL><DEDENT>
Read the content of the given file. The path is evaluated from the
directory containing this file.