Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/certbot/_internal/display/ |
| [Home] [System Details] [Kill Me] |
�
���_c@sedZddlZyddlZWn&ek
rJddljjjZnXdefd��YZ dS(s8Provides Tab completion when
prompting users for a
path.i����Nt CompletercBs2eZdZd�Zd�Zd�Zd�ZRS(s/Provides
Tab completion when prompting users for a path.
This class is meant to be used with readline to provide Tab
completion for users entering paths. The complete method can be
passed to readline.set_completer directly, however, this function
works best as a context manager. For example:
with Completer():
raw_input()
In this example, Tab completion will be available during the call to
raw_input above, however, readline will be restored to its previous
state when exiting the body of the with statement.
cCsd|_|_|_dS(N(tNonet_itert_original_completert_original_delims(tself((sG/usr/lib/python2.7/site-packages/certbot/_internal/display/completer.pyt__init__scCs5|dkr%tj|d�|_nt|jd�S(s(Provides
path completion for use with readline.
:param str text: text to offer completions for
:param int state: which completion to return
:returns: possible completion for text or ``None`` if all
completions have been returned
:rtype: str
it*N(tglobtiglobRtnextR(Rttexttstate((sG/usr/lib/python2.7/site-packages/certbot/_internal/display/completer.pytcompletescCsztj�|_tj�|_tj|j�tjd�tjdk ridtjkritj
d�n
tj
d�dS(Ns
;tlibeditsbind ^I rl_completes
tab:
complete(treadlinet
get_completerRtget_completer_delimsRt
set_completerR
tset_completer_delimst__doc__Rtparse_and_bind(R((sG/usr/lib/python2.7/site-packages/certbot/_internal/display/completer.pyt __enter__.s
cCs$tj|j�tj|j�dS(N(RRRRR(Rtunused_typetunused_valuetunused_traceback((sG/usr/lib/python2.7/site-packages/certbot/_internal/display/completer.pyt__exit__<s(t__name__t
__module__RRR
RR(((sG/usr/lib/python2.7/site-packages/certbot/_internal/display/completer.pyRs
(
RRRtImportErrort(certbot._internal.display.dummy_readlinet _internaltdisplaytdummy_readlinetobjectR(((sG/usr/lib/python2.7/site-packages/certbot/_internal/display/completer.pyt<module>s