Files
ServerSync/lib/prompt_toolkit/input/__pycache__/defaults.cpython-314.pyc

34 lines
2.9 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i<EFBFBD> <00><01>j<00>^RIHt^RIt^RIt^RIHtHt^RIHtH t H
t
RR.t R RRllt R R
lt R#) <0C>)<01> annotationsN)<02>ContextManager<65>TextIO)<03>
DummyInput<EFBFBD>Input<75> PipeInput<75> create_input<75>create_pipe_inputc<01>$<00>V^8<>dQhRRRRRR/#)<07><00>stdinz TextIO | None<6E>always_prefer_tty<74>bool<6F>returnr<00>)<01>formats"<22>D/tmp/pip-target-wqrk2shd/lib/python/prompt_toolkit/input/defaults.py<70> __annotate__rs"<00><00>)!<21>)!<21> <0A>)!<21><14>)!<21>RW<52>)!<21>c<05><00>\PR8XdG^RIHpVf\Pf \ 4#T!T;'g\P4#^RIHpVfi\PpV'dQ\P\P\P3FpVP4'gKTpM VP4T!T4# \Pd\ 4u#i;i)a<>
Create the appropriate `Input` object for the current os/environment.
:param always_prefer_tty: When set, if `sys.stdin` is connected to a Unix
`pipe`, check whether `sys.stdout` or `sys.stderr` are connected to a
pseudo terminal. If so, open the tty for reading instead of reading for
`sys.stdin`. (We can open `stdout` or `stderr` for reading, this is how
a `$PAGER` works.)
<EFBFBD>win32)<01>
Win32Input)<01>
Vt100Input)<0E>sys<79>platformrrr r<00>vt100r<00>stdout<75>stderr<72>isatty<74>fileno<6E>io<69>UnsupportedOperation)r rrr<00>objs&& rr r s<><00><00> <0B>|<7C>|<7C>w<EFBFBD><1E>%<25> <11>=<3D>S<EFBFBD>Y<EFBFBD>Y<EFBFBD>.<2E><1D><<3C> <1F><19>%<25>,<2C>,<2C>3<EFBFBD>9<EFBFBD>9<EFBFBD>-<2D>-<2D>%<25> <11>=<3D><17>I<EFBFBD>I<EFBFBD>E<EFBFBD> <20><1F>I<EFBFBD>I<EFBFBD>s<EFBFBD>z<EFBFBD>z<EFBFBD>3<EFBFBD>:<3A>:<3A>><3E>C<EFBFBD><1A>z<EFBFBD>z<EFBFBD>|<7C>|<7C> #<23><05><1D>?<3F> <20> <11>L<EFBFBD>L<EFBFBD>N<EFBFBD><1A>%<25> <20> <20><><12>&<26>&<26> <20><1D><<3C> <1F> <20>s<00>C'<00>'D <03>D c<01><00>V^8<>dQhRR/#)r rzContextManager[PipeInput]r)rs"rrr;s<00><00>'<27>'<27>4<>'rc<05><><00>\PR8Xd^RIHpVP 4#^RIHpVP 4#)a!
Create an input pipe.
This is mostly useful for unit testing.
Usage::
with create_pipe_input() as input:
input.send_text('inputdata')
Breaking change: In prompt_toolkit 3.0.28 and earlier, this was returning
the `PipeInput` directly, rather than through a context manager.
r)<01>Win32PipeInput)<01>PosixPipeInput)rr<00>
win32_piper&<00>create<74>
posix_piper')r&r's rr
r
;s4<00><00> <0B>|<7C>|<7C>w<EFBFBD><1E>.<2E><1D>$<24>$<24>&<26>&<26>.<2E><1D>$<24>$<24>&<26>&r)NF)<0E>
__future__rr!r<00>typingrr<00>baserrr<00>__all__r r
rrr<00><module>r/s1<00><01>"<22> <09>
<EFBFBD>)<29>.<2E>.<2E><13><17> <02><07> )!<21>X'r