Files
wg-backend-django/acer-env/lib/python3.10/site-packages/sqlparse/__pycache__/cli.cpython-310.pyc

39 lines
4.6 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>ԄcP<00>@sRdZddlZddlZddlmZddlZddlmZdd<06>Zdd<08>Z d d d
<EFBFBD>Z
dS) aeModule that contains the command line app.
Why does this file exist, and why not put this in __main__?
You might be tempted to import things from __main__ later, but that will
cause problems: the code will get executed twice:
- When you run `python -m sqlparse` python will execute
``__main__.py`` as a script. That means there won't be any
``sqlparse.__main__`` in ``sys.modules``.
- When you import __main__ it will get executed again (as a module) because
there's no ``sqlparse.__main__`` in ``sys.modules``.
Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
<EFBFBD>N)<01> TextIOWrapper)<01> SQLParseErrorc Cs<>gd<01>}tjdddd<05>}|<01>d<06>|jddd d
d d <0C>|jd dtjd<0F>|<01>d<10>}|jdddd|d<15>d<16>dd<18>|D<00><01><01>d<19>|jdddd|d<1D>d<16>dd<18>|D<00><01><01>d<19>|jdd d!d"d#d$gd%d<19>|jd&d'd(d)d*d+<2B>|jd,d-d.d(d)d/d+<2B>|jd0d1d2td3d4<64>|jd5d6d(d)d7d+<2B>|jd8d9d(d)d:d+<2B>|jd;d<d(d)d=d><3E>|jd?d@d(d)dAd><3E>|jdBdCdDtdEd4<64>|jdFdGd)t dHd4<64>|jdIdJdKdLdM<64>|S)NN)<03>upper<65>lower<65>
capitalize<EFBFBD> sqlformatzEFormat FILE according to OPTIONS. Use "-" as FILE to read from stdin.z%(prog)s [OPTIONS] FILE, ...)<03>prog<6F> description<6F>usage<67>filenamez-oz --outfile<6C>outfile<6C>FILEz)write output to FILE (defaults to stdout))<03>dest<73>metavar<61>helpz --version<6F>version)<02>actionrzFormatting Optionsz-kz
--keywords<64>CHOICE<43> keyword_casez,change case of keywords, CHOICE is one of {}z, cs<00><00>|]}d<00>|<01>VqdS<00>z"{}"N<><01>format<61><02>.0<EFBFBD>x<>r<00>_/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/sqlparse/cli.py<70> <genexpr>?<00><02>z create_parser.<locals>.<genexpr>)rr<00>choicesrz-iz --identifiers<72>identifier_casez/change case of identifiers, CHOICE is one of {}csrrrrrrrrGrz-lz
--language<67>LANG<4E> output_format<61>python<6F>phpzJoutput a snippet in programming language LANG, choices are "python", "php"z--strip-comments<74>strip_comments<74>
store_trueFzremove comments)rr<00>defaultrz-rz
--reindent<6E>reindentzreindent statementsz--indent_width<74> indent_width<74>z(indentation width (defaults to 2 spaces))rr(<00>typerz--indent_after_first<73>indent_after_firstz2indent after first line of statement (e.g. SELECT)z--indent_columns<6E>indent_columnsz<indent all columns by indent_width instead of keyword lengthz-az--reindent_alignedz%reindent statements to aligned format)rr(rz-sz--use_space_around_operatorsz*place spaces around mathematical operatorsz --wrap_after<65>
wrap_afterrz*Column after which lists should be wrappedz --comma_first<73> comma_firstz-Insert linebreak before comma (default False)z
--encoding<6E>encodingzutf-8z*Specify the input encoding (default utf-8))rr(r)
<EFBFBD>argparse<73>ArgumentParser<65> add_argument<6E>sqlparse<73> __version__<5F>add_argument_groupr<00>join<69>int<6E>bool)<03> _CASE_CHOICES<45>parser<65>grouprrr<00> create_parser s<><06>
<06><06>
<02><06><02><06><06><06><06><06><06><06><06><06><06><06><06>r>cCstj<01>d<01>|<00><01>dS)z5Print msg and optionally exit with return code exit_.z [ERROR] {}
<EFBFBD>)<04>sys<79>stderr<72>writer)<01>msgrrr<00>_error<6F>srDc
Cs<>t<00>}|<01>|<00>}|jdkr&ttjj|jd<02>}z
|<02><08>}W|<02> <09>nB|<02> <09>wz!t
|j|jd<02><02>}d<03> |<04> <0C><00>}Wd<00>n1sAwYWnt yb}ztd<04>|j|<05><02>WYd}~Sd}~wwd}|jr<>z t
|jd|jd<02>}d}Wnt y<>}ztd<08>|j|<05><02>WYd}~Sd}~wwtj}t|<00>}ztj<14>|<08>}Wnty<>}z td <09>|<05><01>WYd}~Sd}~wwtj|fi|<08><01>} |<07>| <09>|<07><18>|r<>|<07><19>d
S) N<>-)r1<00>zFailed to read {}: {}F<>wTzFailed to open {}: {}zInvalid options: {}r)r><00>
parse_argsr rr@<00>stdin<69>bufferr1<00>read<61>detach<63>openr8<00> readlines<65>OSErrorrDrr <00>stdout<75>varsr5<00> formatter<65>validate_optionsrrB<00>flush<73>close)
<EFBFBD>argsr<<00>wrapper<65>data<74>f<>e<> close_stream<61>stream<61>formatter_opts<74>srrr<00>main<69>sR


<1C><04> <10><08><02><08><02><08><02>
r_)N) <0B>__doc__r2r@<00>iorr5<00>sqlparse.exceptionsrr>rDr_rrrr<00><module>s   w