def readme(path='<STR_LIT>'):
path = os.path.realpath(os.path.join(os.path.dirname(__file__), path))<EOL>handle = None<EOL>url_prefix = '<STR_LIT>'.format(name=NAME, version=VERSION)<EOL>try:<EOL><INDENT>handle = codecs.open(path, encoding='<STR_LIT:utf-8>')<EOL>return handle.read(<NUM_LIT>).replace('<STR_LIT>', '<STR_LIT>'.format(url_prefix))<EOL><DEDENT>except IOError:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>finally:<EOL><INDENT>getattr(handle, '<STR_LIT>', lambda: None)()<EOL><DEDENT>
Try to read README.rst or return empty string if failed.

    :param str path: Path to README file.

    :return: File contents.
    :rtype: str