/usr/lib/python2.7/dist-packages/twisted/plugins/twisted_lore.py is in python-twisted-lore 13.2.0-1ubuntu1.2.
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 | from zope.interface import implements
from twisted.lore.scripts.lore import IProcessor
from twisted.plugin import IPlugin
class _LorePlugin(object):
implements(IPlugin, IProcessor)
def __init__(self, name, moduleName, description):
self.name = name
self.moduleName = moduleName
self.description = description
DefaultProcessor = _LorePlugin(
"lore",
"twisted.lore.default",
"Lore format")
MathProcessor = _LorePlugin(
"mlore",
"twisted.lore.lmath",
"Lore format with LaTeX formula")
SlideProcessor = _LorePlugin(
"lore-slides",
"twisted.lore.slides",
"Lore for slides")
ManProcessor = _LorePlugin(
"man",
"twisted.lore.man2lore",
"UNIX Man pages")
NevowProcessor = _LorePlugin(
"nevow",
"twisted.lore.nevowlore",
"Nevow for Lore")
|