/usr/share/pyshared/simpleparse/stt/TextTools/Constants/TagTables.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 20 21 22 23 24 25 26 27 28 29 30 31 32 | """ Constants for writing tag tables
These are defined in mxte.h and imported here via the C extension.
See the documentation for details about the various constants.
Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2003, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
"""
### Module init.
def _module_init():
from simpleparse.stt.TextTools.mxTextTools import mxTextTools
global id2cmd
id2cmd = {}
# Fetch symbols from the C extension and add them to this module
ns = globals()
for name, value in vars(mxTextTools).items():
if name[:7] == '_const_':
cmd = name[7:]
ns[cmd] = value
if value == 0:
id2cmd[0] = 'Fail/Jump'
else:
id2cmd[value] = cmd
_module_init()
|