/usr/share/pyshared/labyrinth_lib/debug.py is in labyrinth 0.6-0ubuntu3.
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 | """Debugging functions"""
def show_attrlist(al):
"""Display a pango attribute list."""
it = al.get_iterator()
def show_range():
print "%d-%d:" % it.range(),
for x in it.get_attrs():
print (x.type, x.start_index, x.end_index),
if hasattr(x, 'value'):
print x.value,
print
show_range()
while it.next():
show_range()
|