This file is indexed.

/usr/lib/python3/dist-packages/pydap/cas/urs.py is in python3-pydap 3.2.2+ds1-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
from . import get_cookies


def setup_session(username, password, check_url=None,
                  session=None, verify=True):
    """
    A special call to get_cookies.setup_session that is tailored for
    URS EARTHDATA at NASA credentials.

    """
    if session is not None:
        # URS connections cannot be kept alive at the moment.
        session.headers.update({'Connection': 'close'})
    session = get_cookies.setup_session('https://urs.earthdata.nasa.gov',
                                        username=username,
                                        password=password,
                                        session=session,
                                        check_url=check_url,
                                        verify=verify)
    return session