This file is indexed.

/usr/lib/python2.7/dist-packages/PythonCard/tools/oneEditor/snippet.py is in python-pythoncard 0.8.2-5.

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
from docutils import core
from docutils.writers.html4css1 import Writer,HTMLTranslator
from docutils.utils import SystemMessage

class NoHeaderHTMLTranslator(HTMLTranslator):
    def __init__(self, document):
        HTMLTranslator.__init__(self,document)
        self.head_prefix = ['','','','','']
        self.body_prefix = []
        self.body_suffix = []
        self.stylesheet = []

_w = Writer()
_w.translator_class = NoHeaderHTMLTranslator

def restify(string):
#    return core.publish_string(string,writer=_w)
    try:
        result = core.publish_string(string,writer=_w, settings_overrides={'traceback': True})
    except SystemMessage, e:
        result = None
        print "barf"
    return result

if __name__ == '__main__':
    test = """
Test example of reST__ document.

__ http://docutils.sf.net/rst.html

- item 1
- item 2
- item 3

"""
    print restify(test)