def is_fp_closed(obj):
    if hasattr(obj, 'fp'):
        # Object is a container for another file-like object that gets released
        # on exhaustion (e.g. HTTPResponse)
        return obj.fp is None

    return obj.closed
Return True if path is a Python distribution
dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/packages/urllib3/util.py/is_fp_closed--crossover with--dataset/ETHPy150Open winpython/winpython/winpython/utils.py/is_python_distribution