def loadLocalVariables(filename):
    """Accepts a filename and attempts to load the Emacs variable declarations
    from that file, simulating what Emacs does.

    See http://www.gnu.org/software/emacs/manual/html_node/File-Variables.html
    """
    f = file(filename, "r")
    lines = [f.readline(), f.readline()]
    f.close()
    for line in lines:
        try:
            return _parseLocalVariables(line)
        except __HOLE__:
            pass
    return {}
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/scripts/trial.py/loadLocalVariables