This file is indexed.

/usr/lib/python2.7/dist-packages/service_identity/exceptions.py is in python-service-identity 1.0.0-3.

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""
All exceptions thrown by service_identity.

Separated into an own package for nicer tracebacks, you should still import
them from __init__.py.
"""

from __future__ import absolute_import, division, print_function

from characteristic import attributes


@attributes(["errors"])
class VerificationError(Exception):
    """
    Service identity verification failed.
    """


@attributes(["mismatched_id"])
class DNSMismatch(object):
    """
    Not matching DNSPattern could be found.
    """


@attributes(["mismatched_id"])
class SRVMismatch(object):
    """
    Not matching SRVPattern could be found.
    """


@attributes(["mismatched_id"])
class URIMismatch(object):
    """
    Not matching URIPattern could be found.
    """


class CertificateError(Exception):
    """
    Certificate contains invalid or unexpected data.
    """