Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dns/__pycache__/_features.cpython-312.pyc

30 lines
3.2 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<> <00><00><><00>UddlZddlZddlZddlmZmZmZdedefd<05>Z dede
fd<07>Z iZ eee
fe d<d ede
fd
<EFBFBD>Zd ed e
ddfd <0C>Zd ggd<0E>dgdgdgdgd<13>Zeeeefe d<y)<15>N)<03>Dict<63>List<73>Tuple<6C>version<6F>returnc<00><00>|jd<01>}g}|D]C}djtjd<03>|<03><00>} |j t |<04><00><00>Et|<02>S#t $rYt|<02>SwxYw)N<>.<2E>c<00>&<00>|tjvS)N)<02>string<6E>digits)<01>xs <20><E:\Project\pygoedge\.venv\Lib\site-packages\dns/_features.py<70><lambda>z"_tuple_from_text.<locals>.<lambda>s <00><00>!<21>v<EFBFBD>}<7D>}<7D>*<<3C>)<08>split<69>join<69> itertools<6C> takewhile<6C>append<6E>int<6E> Exception<6F>tuple)r<00>
text_parts<EFBFBD> int_parts<74> text_part<72> digit_prefixs r<00>_tuple_from_textr s<><00><00><18><1D><1D>s<EFBFBD>#<23>J<EFBFBD><12>I<EFBFBD><1F> <09><19>w<EFBFBD>w<EFBFBD> <15> <1F> <1F> <<3C>i<EFBFBD> H<>
<EFBFBD> <0C> <12> <15> <1C> <1C>S<EFBFBD><1C>.<2E> /<2F>  <20> <11><19> <1B><1B><><19> <12> <11> <10><19> <1B><1B> <12>s<00>A'<02>' A><05>=A><05> requirementc<00><><00>|jd<01>\}} tjj|<01>}|<03>y t |<03>}t |<02>}||kryy#t$rYywxYw)zeIs the requirement fulfilled?
The requirement must be of the form
package>=version
z>=FT)r<00> importlib<69>metadatarrr)r<00>package<67>minimumr<00> t_version<6F> t_minimums r<00>_version_checkr'sy<00><00>#<23>(<28>(<28><14>.<2E><14>G<EFBFBD>W<EFBFBD><15><1B>$<24>$<24>,<2C>,<2C>W<EFBFBD>5<><07> <12>?<3F><18> <1B>!<21><17>)<29>I<EFBFBD> <20><17>)<29>I<EFBFBD><10>9<EFBFBD><1C><14> <0F><> <15><15><14><15>s<00>!A<00> A"<03>!A"<03>_cache<68>featurec<00><><00>tj|<00>}|<01>|Stj|<00>}|<02>
dt|<yd}|D]}t|<04>r<01>d}n|t|<|S)z<>Is *feature* available?
This tests if all optional packages needed for the
feature are available and recent enough.
Returns ``True`` if the feature is available,
and ``False`` if it is not or if metadata is
missing.
FT)r(<00>get<65> _requirementsr')r)<00>value<75> requirements<74>okrs r<00>haver02sn<00><00> <13>J<EFBFBD>J<EFBFBD>w<EFBFBD> <1F>E<EFBFBD> <0C><18><14> <0C> <20>$<24>$<24>W<EFBFBD>-<2D>L<EFBFBD><13><1B><1F><06>w<EFBFBD><0F><14> <0A>B<EFBFBD>#<23> <0B><1D>k<EFBFBD>*<2A><16>B<EFBFBD> <11>$<24><19>F<EFBFBD>7<EFBFBD>O<EFBFBD> <0A>Ir<00>enabledc<00><00>|t|<y)z<>Force the status of *feature* to be *enabled*.
This method is provided as a workaround for any cases
where importlib.metadata is ineffective, or for testing.
N)r()r)r1s r<00>forcer3Ms <00><00> <1E>F<EFBFBD>7<EFBFBD>Orzcryptography>=45)zhttpcore>=1.0.0z httpx>=0.28.0z h2>=4.2.0zaioquic>=1.2.0z
idna>=3.10z
trio>=0.30z
wmi>=1.5.1)<06>dnssec<65>doh<6F>doq<6F>idna<6E>trio<69>wmir,)<11>importlib.metadatar!rr <00>typingrrr<00>strr<00>boolr'r(<00>__annotations__r0r3r,<00>rr<00><module>r@s<><00><01><1A><10> <0A>$<24>$<24> <1C>c<EFBFBD> <1C>e<EFBFBD> <1C><10><14><10> <09><10>0<1D><06><04>S<EFBFBD>$<24>Y<EFBFBD><0F><1C><0E>#<23><0E>$<24><0E>6<1E>3<EFBFBD><1E><14><1E>$<24><1E>"<22>"<22> <<3C> <1C> <1D> <19>N<EFBFBD> <19>N<EFBFBD> <18>><3E> '<02> <0A>t<EFBFBD>C<EFBFBD><14>c<EFBFBD><19>N<EFBFBD>#<23> r