/usr/share/pyshared/simpleparse/common/__init__.py is in python-simpleparse 2.1.0a1-6build1.
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 | """Common (library) definitions
You normally use this module by importing one of our
sub-modules (which automatically registers itself with
the SOURCES list defined here).
Calling common.share( dictionary ) with a dictionary
mapping string names to element token instances will
make the element tokens available under those string
names in default parsers. Note: a Parser can override
this by specifying an explicit definitionSources
parameter in its initialiser.
"""
def share( dictionary ):
SOURCES.append( dictionary)
SOURCES = [
]
|