This file is indexed.

/usr/lib/python3/dist-packages/betamax/exceptions.py is in python3-betamax 0.8.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
class BetamaxError(Exception):
    def __init__(self, message):
        super(BetamaxError, self).__init__(message)

    def __repr__(self):
        return 'BetamaxError("%s")' % self.message


class MissingDirectoryError(BetamaxError):
    pass


class ValidationError(BetamaxError):
    pass


class InvalidOption(ValidationError):
    pass


class BodyBytesValidationError(ValidationError):
    pass


class MatchersValidationError(ValidationError):
    pass


class RecordValidationError(ValidationError):
    pass


class RecordIntervalValidationError(ValidationError):
    pass


class PlaceholdersValidationError(ValidationError):
    pass


class PlaybackRepeatsValidationError(ValidationError):
    pass


class SerializerValidationError(ValidationError):
    pass


validation_error_map = {
    'allow_playback_repeats': PlaybackRepeatsValidationError,
    'match_requests_on': MatchersValidationError,
    'record': RecordValidationError,
    'placeholders': PlaceholdersValidationError,
    'preserve_exact_body_bytes': BodyBytesValidationError,
    're_record_interval': RecordIntervalValidationError,
    'serialize': SerializerValidationError,  # TODO: Remove this
    'serialize_with': SerializerValidationError
}