def mounted(path):
    pat = path.strip() + ' '
    with open('/proc/mounts') as mounts:
        return any(pat in mount for mount in mounts)
dataset/ETHPy150Open Netflix/aminator/aminator/util/linux.py/mounted/original