Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/PIL/__pycache__/features.cpython-310.pyc

117 lines
9.4 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f)<00>
@s
ddlmZddlZddlZddlZddlZddlmZddlZddl m
Z
dddd d
d <0B>Z dAdd<11>Z dBdd<14>Z dCdd<17>Zddddd<1C>ZdAdd<1E>ZdBdd <20>ZdCd!d"<22>Zd#d$d%d&d'd(d)d*d+d,<2C> ZdDd.d/<2F>ZdBd0d1<64>ZdCd2d3<64>ZdDd4d5<64>ZdBd6d7<64>ZdCd8d9<64>ZdEdFd?d@<40>ZdS)G<>)<01> annotationsN)<01>IO<49>)<01>Image)<02> PIL._imaging<6E>PILLOW_VERSION)zPIL._tkinter_finder<65>
tk_version)<02>PIL._imagingft<66>freetype2_version)zPIL._imagingcms<6D>littlecms_version)<02> PIL._webp<62>webpdecoder_version)<05>pil<69>tkinter<65> freetype2<65>
littlecms2<EFBFBD>webp<62>feature<72>str<74>return<72>boolc
Cs||tvr d|<00><00>}t|<01><01>t|\}}zt|<02>WdSty$YdSty=}zt<05>t|<04><01>WYd}~dSd}~ww)z<>
Checks if a module is available.
:param feature: The module to check for.
:returns: ``True`` if available, ``False`` otherwise.
:raises ValueError: If the module is not defined in this version of Pillow.
zUnknown module TFN)<08>modules<65>
ValueError<EFBFBD>
__import__<EFBFBD>ModuleNotFoundError<6F> ImportError<6F>warnings<67>warnr)r<00>msg<73>module<6C>ver<65>ex<65>r"<00>N/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/features.py<70> check_modules
  <08><02>r$<00>
str | NonecCs,t|<00>sdSt|\}}tt||gd<02>|<02>S)z<>
:param feature: The module to check for.
:returns:
The loaded version number as a string, or ``None`` if unknown or not available.
:raises ValueError: If the module is not defined in this version of Pillow.
N<><01>fromlist)r$r<00>getattrr)rrr r"r"r#<00>version_module.s r)<00> list[str]cC<01>dd<02>tD<00>S)z4
:returns: A list of all supported modules.
cS<01>g|]}t|<01>r|<01>qSr")r$<00><02>.0<EFBFBD>fr"r"r#<00>
<listcomp>A<00>z)get_supported_modules.<locals>.<listcomp>)rr"r"r"r#<00>get_supported_modules=<00>r2)<02>jpeg<65>jpeglib)<02>jpeg2k<32>jp2klib)<02>zip<69>zlib)<02>libtiffr:)<04>jpg<70>jpg_2000r9r:cCs:|tvr d|<00><00>}t|<01><01>t|\}}|<02>d<02>ttj<04>vS)z<>
Checks if a codec is available.
:param feature: The codec to check for.
:returns: ``True`` if available, ``False`` otherwise.
:raises ValueError: If the codec is not defined in this version of Pillow.
zUnknown codec <20>_encoder)<05>codecsr<00>dirr<00>core)rr<00>codec<65>libr"r"r#<00> check_codecLs

 rCcCsNt|<00>sdSt|\}}ttj|<02>d<02><02>}|dkr%|<03>d<04>d<00>d<06>dS|S)a
:param feature: The codec to check for.
:returns:
The version number as a string, or ``None`` if not available.
Checked at compile time for ``jpg``, run-time otherwise.
:raises ValueError: If the codec is not defined in this version of Pillow.
N<>_versionr:<00>
rzVersion r)rCr>r(rr@<00>split)rrArB<00>versionr"r"r#<00> version_codec]s rHcCr+)z3
:returns: A list of all supported codecs.
cSr,r")rCr-r"r"r#r0vr1z(get_supported_codecs.<locals>.<listcomp>)r>r"r"r"r#<00>get_supported_codecsrr3rI)r <00> HAVE_WEBPANIMN)r <00> HAVE_WEBPMUXN)r <00>HAVE_TRANSPARENCYN)r <00> HAVE_RAQM<51> raqm_version)r <00> HAVE_FRIBIDI<44>fribidi_version)r <00> HAVE_HARFBUZZ<5A>harfbuzz_version)r<00>HAVE_LIBJPEGTURBO<42>libjpeg_turbo_version)r<00>HAVE_LIBIMAGEQUANT<4E>imagequant_version)r<00>HAVE_XCBN) <09> webp_anim<69>webp_mux<75> transp_webp<62>raqm<71>fribidi<64>harfbuzz<7A> libjpeg_turbo<62> libimagequant<6E>xcb<63> bool | Nonec
Cs<>|tvr d|<00><00>}t|<01><01>t|\}}}z t|dgd<03>}t||<03>WSty+YdStyD}zt<06>t|<06><01>WYd}~dSd}~ww)z<>
Checks if a feature is available.
:param feature: The feature to check for.
:returns: ``True`` if available, ``False`` if unavailable, ``None`` if unknown.
:raises ValueError: If the feature is not defined in this version of Pillow.
zUnknown feature <20>PILr&N) <09>featuresrrr(rrrrr)rrr<00>flagr <00>imported_moduler!r"r"r#<00> check_feature<72>s
  <08><02>rfcCs:t|<00>sdSt|\}}}|durdStt||gd<02>|<03>S)z<>
:param feature: The feature to check for.
:returns: The version number as a string, or ``None`` if not available.
:raises ValueError: If the feature is not defined in this version of Pillow.
Nr&)rfrcr(r)rrrdr r"r"r#<00>version_feature<72>s rgcCr+)z5
:returns: A list of all supported features.
cSr,r")rfr-r"r"r#r0<00>r1z*get_supported_features.<locals>.<listcomp>)rcr"r"r"r#<00>get_supported_features<65>r3rhcCsJ|tvrt|<00>S|tvrt|<00>S|tvrt|<00>Stjd|<00>d<02>dd<04>dS)z<>
:param feature: A module, codec, or feature name.
:returns:
``True`` if the module, codec, or feature is available,
``False`` or ``None`` otherwise.
zUnknown feature 'z'.<2E>)<01>
stacklevelF)rr$r>rCrcrfrr<00>rr"r"r#<00>check<63>srlcCs4|tvrt|<00>S|tvrt|<00>S|tvrt|<00>SdS)z<>
:param feature:
The module, codec, or feature to check for.
:returns:
The version number as a string, or ``None`` if unknown or not available.
N)rr)r>rHrcrgrkr"r"r#rG<00>srGcCs"t<00>}|<00>t<02><00>|<00>t<03><00>|S)zJ
:returns: A list of all supported modules, features, and codecs.
)r2<00>extendrhrI)<01>retr"r"r#<00> get_supported<65>s  roT<>out<75>IO[str] | None<6E>supported_formats<74>Nonec Cst|durtj}t<02><03>td|d<03>tdtj<06><00>|d<03>tj<07><08>}td|d<00> <09><00><00>|d<03>|dd<01>D] }td|<03> <09><00><00>|d<03>q3td|d<03>td tj
pMd
<EFBFBD><00>|d<03>tj tj krctd tj <0B><00>|d<03>td tj <0C><00>|d<03>td|d<03>td t j<0E>tj<10><01><00>|d<03>tdt j<0E>tjj<10><01><00>|d<03>td|d<03>dD]{\}}t|<04><01>r d}|dkr<>td<11>}|dur<>d|}|dur<>t|<04>}|du<01>r|dv}|dkr<>tdd<16>|<06>d<17>D<00><01>dk}|r<>dnd} |dkr<>dD]}
t|
<EFBFBD>} | dur<>|d|
<EFBFBD>d| <0B><00>7}q<>td|d | ||d<03>q<>td|d!|d<03>q<>td"|d#|d<03>q<>td|d<03>|<01>r<>t<16>t<18>} tj<19><1A>D] \} }| |<00>| <0A><00>q'ttj<1D>D]~}|<0E>}|tjv<00>rN|<0F>dtj|<00><00>}t||d<03>|| v<00>ritd$<24>d<1D> t| |<00><01><01>|d<03>g}|tj!v<00>rv|<10>d%<25>|tj"v<00>r<>|<10>d&<26>|tj#v<00>r<>|<10>d'<27>|tj$v<00>r<>|<10>d(<28>|tj%v<00>r<>|<10>d)<29>td*<2A>d<1D> |<10><01>|d<03>td|d<03><00>q9dSdS)+a 
Prints information about this installation of Pillow.
This function can be called with ``python3 -m PIL``.
It can also be called with ``python3 -m PIL.report`` or ``python3 -m PIL --report``
to have "supported_formats" set to ``False``, omitting the list of all supported
image file formats.
:param out:
The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
:param supported_formats:
If ``True``, a list of all supported image file formats will be printed.
NzD--------------------------------------------------------------------)<01>filezPillow zPython rrz zPython executable is <20>unknownz%Environment Python files loaded from z System Python files loaded from z"Python Pillow modules loaded from z"Binary Pillow modules loaded from ))rzPIL CORE)r<00>TKINTER)r<00> FREETYPE2)r<00>
LITTLECMS2)r<00>WEBP)rZzWEBP Transparency)rY<00>WEBPMUX)rXzWEBP Animation)r;<00>JPEG)r<zOPENJPEG (JPEG2000))r9zZLIB (PNG/ZIP))r:<00>LIBTIFF)r[zRAQM (Bidirectional Text))r_z#LIBIMAGEQUANT (Quantization method))r`zXCB (X protocol)r;r^zlibjpeg-turbo )rr;rcss<00>|]}t|<01>VqdS)N)<01>int)r.<00>xr"r"r#<00> <genexpr>)s<02>zpilinfo.<locals>.<genexpr><3E>.)ri<00>z compiled for<6F>loadedr[)r\r]z, <20> z---z support ok,z
support okz***zsupport not installedzExtensions: {}<7D>open<65>save<76>save_all<6C>decode<64>encodez Features: {})&<26>sys<79>stdoutr<00>init<69>printrb<00> __version__rG<00>
splitlines<EFBFBD>strip<69>
executable<EFBFBD>prefix<69> base_prefix<69>os<6F>path<74>dirname<6D>__file__r@rlrg<00>tuplerF<00> collections<6E> defaultdict<63>list<73> EXTENSION<4F>items<6D>append<6E>sorted<65>ID<49>MIME<4D>format<61>join<69>OPEN<45>SAVE<56>SAVE_ALL<4C>DECODERS<52>ENCODERS)rprr<00>py_version_lines<65>
py_version<EFBFBD>namer<00>vrT<00>version_static<69>tr/<00>v2<76>
extensions<EFBFBD>ext<78>i<>linercr"r"r#<00>pilinfo<66>s<> 
   <06><06>  

 <02> 
  
<06> 
 
 
 
 
<04>r<>)rrrr)rrrr%)rr*)rrrra)NT)rprqrrrrrs)<1B>
__future__rr<>r<>r<>r<00>typingrrb<00>rrr$r)r2r>rCrHrIrcrfrgrhrlrGror<>r"r"r"r#<00><module>sT   <06>

<06>


<06>