/usr/share/doc/python-pyth/examples/writing/pythonDoc.py is in python-pyth 0.5.6-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 | # -*- coding: utf-8 -*-
from pyth.plugins.python.reader import *
def buildDoc():
return PythonReader.read((
P [
T(ITALIC, BOLD) [ u"Hello World" ],
u", hee hee hee! ", T(url=u'http://www.google.com') [ u"This seems to work" ]
],
L [
[unicode(word) for word in ("One", "Two", "Three", "Four")]
],
L [
u"Introduction",
LE [
u"First sentence in the\nsub-section",
u"Also some other stuff",
L [
u"Alpha",
L [
u"Beta\nWhomble",
LE [ u"Beta", u"Whoop\nWhoa" ],
u"Beta",
],
u"Gamma",
u"Gamma",
],
u"Final sentence in the sub-section",
],
T(BOLD) [ u"Conclusion" ],
],
u"That's all, folks! 再見!"
))
|