Files
Trancribe/venv/lib/python3.12/site-packages/idna/__pycache__/cli.cpython-312.pyc

43 lines
5.7 KiB
Plaintext
Raw Normal View History

<EFBFBD>
$n!j+<00><00>,<00>dZddlZddlZddlmZddlmZddlmZm Z ddl
m Z m Z m Z ddlmZmZdd lmZd
ed efd <0C>Zd ej,fd <0A>Zdeed eefd<0F>Zdededed efd<13>Zdde eed efd<15>Zedk(rej<e<1C><00>yy)z{Command-line interface for the :mod:`idna` package.
Invoked via ``python -m idna``. See :func:`main` for the entry point.
<EFBFBD>N)<01>Iterable)<01>chain)<02>IO<49>Optional<61>)<03> IDNAError<6F>decode<64>encode)<02>_alabel_prefix<69>_unicode_dots_re)<01> __version__<5F>s<>returnc<00>|<00><01>tjd<01><00>t<00>fd<02>tj|<00>D<00><00>S)zBReturn True if any label in ``s`` carries the ``xn--`` ACE prefix.<2E>asciic3<00>\<00>K<00>|]#}|j<00>j<00><02><00><01><00>%y<00>w<01>N)<02>lower<65>
startswith)<03>.0<EFBFBD>label<65>prefixs <20><>J/home/jean/linux-transcriber/venv/lib/python3.12/site-packages/idna/cli.py<70> <genexpr>z%_looks_like_alabel.<locals>.<genexpr>s"<00><><00><><00>W<>E<EFBFBD>u<EFBFBD>{<7B>{<7B>}<7D>'<27>'<27><06>/<2F>W<>s<00>),)r r <00>anyr <00>split)rrs @r<00>_looks_like_alabelrs1<00><><00> <1B> "<22> "<22>7<EFBFBD> +<2B>F<EFBFBD> <0E>W<>=M<>=S<>=S<>TU<54>=V<>W<> W<>W<>c<00>6<00>tjdd<02><03>}|j<00>}|jdddddd <09>
<EFBFBD>|jd d ddd d<0E>
<EFBFBD>|jddd<11><12>|jdddt<00><00><02><16>|jddd<19><1A>|S)Nzpython -m idnau<61>Convert a domain name between its Unicode (U-label) and ASCII-compatible (A-label) forms. With no mode flag, the direction is chosen from the first input — if it contains an xn-- label the stream is decoded, otherwise it is encoded — and the same mode is applied to every remaining input. UTS #46 mapping is applied by default; pass --strict to disable it. When no domains are given on the command line and stdin is piped, one domain per line is read from stdin.)<02>prog<6F> descriptionz-ez--encode<64>mode<64> store_constr
z+Encode the input to its ASCII A-label form.)<04>dest<73>action<6F>const<73>helpz-dz--decoder z-Decode the input from its ASCII A-label form.z--strict<63>
store_truezGDisable the default UTS #46 mapping and apply IDNA 2008 rules verbatim.)r%r'z --version<6F>versionzidna )r%r)<00>domain<69>*z=One or more domain names to convert. Omit to read from stdin.)<02>nargsr')<05>argparse<73>ArgumentParser<65>add_mutually_exclusive_group<75> add_argumentr )<02>parserr"s r<00> _build_parserr2s<><00><00> <15> $<24> $<24> <1D> <1F> <06>F<EFBFBD> <12> .<2E> .<2E> 0<>D<EFBFBD><08><15><15> <0C><12> <13><1C><16> :<3A> <16><06> <09><15><15> <0C><12> <13><1C><16> <<3C> <16><06> <0B><17><17><12><1B> V<><18><06>
 <0B><17><17><13><18><17> <0B>}<7D>%<25><18><06>
 <0B><17><17><10><11> L<><18><06>
<12>Mr<00>streamc#<00>HK<00>|D]}|j<00>}|s<01>|<02><01><00>y<01>w)z@Yield non-empty stripped lines from ``stream``, ignoring blanks.N)<01>strip)r3<00>line<6E>strippeds r<00> _iter_stdinr8Is(<00><00><><00><16><1B><04><17>:<3A>:<3A><<3C><08> <13><1A>N<EFBFBD><1B>s<00>"<01>"r*r"<00>uts46c <00><><00> |dk(rtt||<02><02><00>y
tt||<02><02>jd<03><00> y
#t$r.}td|<01>d|<00>d|<03><00>tj
<00><07>Yd}~y d}~wwxYw) zEConvert ``domain`` and write the result; return ``False`` on failure.r )r9rzidna: z failed for z: )<01>fileNFT)<06>printr r
r<00>sys<79>stderr)r*r"r9<00>errs r<00> _convert_oner@Qsz<00><00><15> <0F>8<EFBFBD> <1B> <11>&<26><16>u<EFBFBD>-<2D> .<2E> <10> <12>&<26><16>u<EFBFBD>-<2D>4<>4<>W<EFBFBD>=<3D> ><3E> <10><> <15><15> <0A><06>t<EFBFBD>f<EFBFBD>L<EFBFBD><16>
<EFBFBD>"<22>S<EFBFBD>E<EFBFBD>:<3A><13><1A><1A>L<><14><><15>s<00>A<00>%A<00> A<<03>$A7<03>7A<<03>argvc<00><><00>t<00>}|j|<00>}|j }|jr |j}nItj
j <00>sttj
<00>}n|jd<01>t<04>}t|d<02>}|<06>y|jxst|<06>rdnd}t|g|<05>D<00>cgc]}t|||<03><00><02>} }t| <09>rdSdScc}w)a<>Entry point for ``python -m idna``.
When more than one domain is supplied (via positional arguments or
piped stdin) and no mode flag is given, the first input determines
the direction and that mode is applied uniformly to the rest.
:param argv: Argument list excluding the program name. Defaults to
:data:`sys.argv` when ``None``.
:returns: ``0`` on success, ``1`` if any conversion fails.
z6a domain argument is required when stdin is a terminalNrr r
r)r2<00>
parse_args<EFBFBD>strictr*r=<00>stdin<69>isattyr8<00>error<6F>iter<65>nextr"rrr@<00>all)
rAr1<00>argsr9<00>domains<6E>iterator<6F>firstr"r*<00>resultss
r<00>mainrP^s<><00><00><1B>_<EFBFBD>F<EFBFBD> <11> <1C> <1C>T<EFBFBD> "<22>D<EFBFBD><14> <0B> <0B>O<EFBFBD>E<EFBFBD> <0B>{<7B>{<7B>!%<25><1B><1B><07> <10>Y<EFBFBD>Y<EFBFBD> <1D> <1D> <1F><1D>c<EFBFBD>i<EFBFBD>i<EFBFBD>(<28><07><0E> <0C> <0C>M<>N<><13>G<EFBFBD>}<7D>H<EFBFBD> <10><18>4<EFBFBD> <20>E<EFBFBD> <0C>}<7D><10> <0F>9<EFBFBD>9<EFBFBD> M<>%7<><05>%><3E><18>H<EFBFBD>D<EFBFBD>?D<>e<EFBFBD>W<EFBFBD>h<EFBFBD>?W<>X<>V<EFBFBD>|<7C>F<EFBFBD>D<EFBFBD>%<25>0<>X<>G<EFBFBD>X<><13>G<EFBFBD> <0C>1<EFBFBD>#<23>!<21>#<23><>Ys<00>C6<04>__main__r)<1F>__doc__r-r=<00>collections.abcr<00> itertoolsr<00>typingrr<00>rr r
<00>corer r <00> package_datar <00>str<74>boolrr.r2r8r@<00>list<73>intrP<00>__name__<5F>exit<69>rr<00><module>r`s<><00><01><04>
<10>
<EFBFBD>$<24><1B><1F>'<27>'<27>2<>%<25>X<01>#<23>X<01>$<24>X<01> /<12>x<EFBFBD>.<2E>.<2E>/<12>d<1B><02>3<EFBFBD><07><1B>H<EFBFBD>S<EFBFBD>M<EFBFBD><1B>
<10><13>
<10>C<EFBFBD>
<10><04>
<10><14>
<10>$<24>x<EFBFBD><04>S<EFBFBD> <09>"<22>$<24>c<EFBFBD>$<24>B <0C>z<EFBFBD><19> <0C>C<EFBFBD>H<EFBFBD>H<EFBFBD>T<EFBFBD>V<EFBFBD><14>r