This file is indexed.

/usr/lib/python3/dist-packages/duecredit/parsers.py is in python3-duecredit 0.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
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
import re

def extract_references_from_rst(rst):
    # for now will be very simple, just trying to separate
    # then up until the end or another section starting
    pass

def test_extract_references_from_rst():
    # some obscure examples of how people specify references
    samples = [
        """
    References
    ----------
    .. [1] line1
           line2

    .. [2] line11
           line12

        """,

        """
    References
    ----------

    - line1
      line2

        """,

        """
        References
        ----------

        .. [xyz1] line1
           line2

        .. [xyz2] line11
           line12


        Buga duga
        ---------
        """,

        """
        References
        ----------

        line1
        line2

        line11
        line12
        """
        ]
    extract_references_from_rst(samples[0])