def get_num_fds():
    proc = psutil.Process(PID)
    try:
        return proc.num_fds()
    except __HOLE__:  # psutil < 2.0
        return proc.get_num_fds()
dataset/ETHPy150Open scrapinghub/splash/splash/utils.py/get_num_fds