This file is indexed.

/usr/lib/python3/dist-packages/keyring/backends/fail.py is in python3-keyring 10.6.0-1.

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
21
22
23
24
25
from ..backend import KeyringBackend


class Keyring(KeyringBackend):
    """
    Keyring that raises error on every operation.

    >>> kr = Keyring()
    >>> kr.get_password('svc', 'user')
    Traceback (most recent call last):
    ...
    RuntimeError: ...No recommended backend...
    """

    priority = 0

    def get_password(self, service, username, password=None):
        msg = (
            "No recommended backend was available. Install the "
            "keyrings.alt package if you want to use the non-"
            "recommended backends. See README.rst for details."
        )
        raise RuntimeError(msg)

    set_password = delete_pasword = get_password