

def read_file(filename):
    'Read a file into a string'
    path = os.path.abspath(os.path.dirname(__file__))
    filepath = os.path.join(path, filename)
    try:
        return open(filename).read()
    except IOError:
        return ''

dataset/ETHPy150Open mlavin/django-all-access/setup.py read_file/VarMisuse@50/66 `filepath`->`filename`