This file is indexed.

/usr/lib/python2.7/dist-packages/prompt_toolkit/selection.py is in python-prompt-toolkit 1.0.9-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
"""
Data structures for the selection.
"""
from __future__ import unicode_literals

__all__ = (
    'SelectionType',
    'SelectionState',
)


class SelectionType(object):
    """
    Type of selection.
    """
    #: Characters. (Visual in Vi.)
    CHARACTERS = 'CHARACTERS'

    #: Whole lines. (Visual-Line in Vi.)
    LINES = 'LINES'

    #: A block selection. (Visual-Block in Vi.)
    BLOCK = 'BLOCK'


class SelectionState(object):
    """
    State of the current selection.

    :param original_cursor_position: int
    :param type: :class:`~.SelectionType`
    """
    def __init__(self, original_cursor_position=0, type=SelectionType.CHARACTERS):
        self.original_cursor_position = original_cursor_position
        self.type = type

    def __repr__(self):
        return '%s(original_cursor_position=%r, type=%r)' % (
            self.__class__.__name__,
            self.original_cursor_position, self.type)