/usr/lib/python2.7/dist-packages/prompt_toolkit/enums.py is in python-prompt-toolkit 1.0.15-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 | from __future__ import unicode_literals
class IncrementalSearchDirection(object):
FORWARD = 'FORWARD'
BACKWARD = 'BACKWARD'
class EditingMode(object):
# The set of key bindings that is active.
VI = 'VI'
EMACS = 'EMACS'
#: Name of the search buffer.
SEARCH_BUFFER = 'SEARCH_BUFFER'
#: Name of the default buffer.
DEFAULT_BUFFER = 'DEFAULT_BUFFER'
#: Name of the system buffer.
SYSTEM_BUFFER = 'SYSTEM_BUFFER'
# Dummy buffer. This is the buffer returned by
# `CommandLineInterface.current_buffer` when the top of the `FocusStack` is
# `None`. This could be the case when there is some widget has the focus and no
# actual text editing is possible. This buffer should also never be displayed.
# (It will never contain any actual text.)
DUMMY_BUFFER = 'DUMMY_BUFFER'
|