/usr/lib/python2.7/dist-packages/pyte/__main__.py is in python-pyte 0.4.8-1.
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 | # -*- coding: utf-8 -*-
"""
pyte
~~~~
Command-line tool for "disassembling" escape and CSI sequences::
$ echo -e "\e[Jfoo" | python -m pyte
ERASE_IN_DISPLAY 0
DRAW f
DRAW o
DRAW o
LINEFEED
$ python -m pyte foo
DRAW f
DRAW o
DRAW o
:copyright: (c) 2011 by Selectel, see AUTHORS for more details.
:license: LGPL, see LICENSE for more details.
"""
if __name__ == "__main__":
import sys
import pyte
if len(sys.argv) == 1:
pyte.dis(sys.stdin.read())
else:
pyte.dis("".join(sys.argv[1:]))
|