Files
ServerSync/lib/invoke/__pycache__/loader.cpython-314.pyc

72 lines
7.9 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
t<10>iu<00><00><><00>^RIt^RIt^RIHt^RIHtHt^RIHt^RI H
t
^RI H t H t Ht^RIHt^RIHt^R IHt!R
R 4t!R R ]4tR#)<0E>N)<01>
ModuleSpec)<02>module_from_spec<65>spec_from_file_location)<01>Path)<01>
ModuleType)<03>Any<6E>Optional<61>Tuple)<01>Config)<01>CollectionNotFound)<01>debugc<00>ba<00>]tRt^toRtR
V3RlRlltV3RlRltR
V3RlRlltR tVt R#) <0B>Loaderzc
Abstract class defining how to find/import a session's base `.Collection`.
.. versionadded:: 1.0
Nc<00>2<<01>V^8<>dQhRS[R,RR/#)<05><00>configr <00>returnN)r )<02>format<61> __classdict__s"<22><>4/tmp/pip-target-zhdecbcm/lib/python/invoke/loader.py<70> __annotate__<5F>Loader.__annotate__s <00><><00> <1D> <1D>x<EFBFBD><08>1<> <1D>T<EFBFBD> <1D>c <0C>.<00>Vf \4pWnR#)z<>
Set up a new loader with some `.Config`.
:param config:
An explicit `.Config` to use; it is referenced for loading-related
config options. Defaults to an anonymous ``Config()`` if none is
given.
N)r r)<02>selfrs&&r<00>__init__<5F>Loader.__init__s<00><00> <12>><3E><1B>X<EFBFBD>F<EFBFBD><1C> rc<00>6<<01>V^8<>dQhRS[RS[S[,/#<00>r<00>namer<00><03>strr r)rrs"<22>rrr"s <00><><00> "<22> "<22><13> "<22><18>*<2A>!5<> "rc <0C><00>\h)a`
Implementation-specific finder method seeking collection ``name``.
Must return a ModuleSpec valid for use by `importlib`, which is
typically a name string followed by the contents of the 3-tuple
returned by `importlib.module_from_spec` (``name``, ``loader``,
``origin``.)
For a sample implementation, see `.FilesystemLoader`.
.. versionadded:: 1.0
)<01>NotImplementedError)rr s&&r<00>find<6E> Loader.find"s
<00><00>"<22>!rc<00>L<<01>V^8<>dQhRS[S[,RS[S[S[3,/#r)r r"r
r)rrs"<22>rrr1s(<00><><00>/<1A>/<1A><18>#<23><1D>/<1A>%<25>
<EFBFBD>C<EFBFBD><0F>2H<32>/rc <0C><><00>Vf!VPPPpVPV4pV'd<>VP'd<>VP
'd<>\ VP
4pVPpTpVP'd VPp\V4pV\P9d!\PP^V4\V4pV\PVP&VPPV4V\V43#Rp\!VP#V44\$h)aQ
Load and return collection module identified by ``name``.
This method requires a working implementation of `.find` in order to
function.
In addition to importing the named module, it will add the module's
parent directory to the front of `sys.path` to provide normal Python
import behavior (i.e. so the loaded module may load local-to-it modules
or packages.)
:returns:
Two-tuple of ``(module, directory)`` where ``module`` is the
collection-containing Python module object, and ``directory`` is
the string path to the directory the module was found in.
.. versionadded:: 1.0
z-ImportError loading {!r}, raising ImportError)r<00>tasks<6B>collection_namer%<00>loader<65>originr<00>parentr"<00>sys<79>path<74>insertr<00>modulesr <00> exec_moduler r<00> ImportError) rr <00>spec<65> source_file<6C> enclosing_dir<69> module_parent<6E> enclosing_str<74>module<6C>msgs && r<00>load<61> Loader.load1s<><00><00>& <10><<3C><17>;<3B>;<3B>$<24>$<24>4<>4<>D<EFBFBD><13>y<EFBFBD>y<EFBFBD><14><EFBFBD><04> <0F>D<EFBFBD>K<EFBFBD>K<EFBFBD>K<EFBFBD>D<EFBFBD>K<EFBFBD>K<EFBFBD>K<EFBFBD><1E>t<EFBFBD>{<7B>{<7B>+<2B>K<EFBFBD>(<28>.<2E>.<2E>M<EFBFBD>
*<2A>M<EFBFBD><13>{<7B>{<7B>{<7B> -<2D> 4<> 4<> <0A><1F> <0A>.<2E>M<EFBFBD><1C>C<EFBFBD>H<EFBFBD>H<EFBFBD>,<2C><13><08><08><0F><0F><01>=<3D>1<>%<25>d<EFBFBD>+<2B>F<EFBFBD>%+<2B>C<EFBFBD>K<EFBFBD>K<EFBFBD><04> <09> <09> "<22> <10>K<EFBFBD>K<EFBFBD> #<23> #<23>F<EFBFBD> +<2B><19>3<EFBFBD>}<7D>-<2D>-<2D> -<2D>=<3D><03> <0A>c<EFBFBD>j<EFBFBD>j<EFBFBD><14><1E><1F><19>r)r<00>N)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__rr%r;<00>__static_attributes__<5F>__classdictcell__)rs@rrrs-<00><><00><00><08> <1D> <1D> "<22> "<22>/<1A>/<1A>/rrc<00>taa<01>]tRt^ctoRtR V3RlV3Rlllt]V3RlRl4tV3RlRltRt Vt
V;t #)
<EFBFBD>FilesystemLoaderz<72>
Loads Python files from the filesystem (e.g. ``tasks.py``.)
Searches recursively towards filesystem root from a given start point.
.. versionadded:: 1.0
c<00>:<<01>V^8<>dQhRS[S[,RS[RR/#)r<00>start<72>kwargsrN)r r"r)rrs"<22>rr<00>FilesystemLoader.__annotate__ps&<00><><00><1C><1C>h<EFBFBD>s<EFBFBD>m<EFBFBD><1C>c<EFBFBD><1C>d<EFBFBD>rc <08>|<<01>\SV`!R/VBVf!VPPPpWnR#)N<>)<06>superrrr)<00> search_root<6F>_start)rrHrI<00> __class__s&&,<2C>rr<00>FilesystemLoader.__init__ps2<00><><00> <0A><07><18>"<22>6<EFBFBD>"<22> <10>=<3D><18>K<EFBFBD>K<EFBFBD>%<25>%<25>1<>1<>E<EFBFBD><1B> rc<00> <<01>V^8<>dQhRS[/#)rr)r")rrs"<22>rrrJws<00><><00>*<2A>*<2A>s<EFBFBD>*rc<08>T<00>VP;'g\P!4#r=)rO<00>os<6F>getcwd)rs&rrH<00>FilesystemLoader.startvs<00><00><14>{<7B>{<7B>)<29>)<29>b<EFBFBD>i<EFBFBD>i<EFBFBD>k<EFBFBD>)rc<00>6<<01>V^8<>dQhRS[RS[S[,/#rr!)rrs"<22>rrrJ{s <00><><00><14><14><13><14><18>*<2A>!5<>rc<08>$<00>\RPVP44RpRPV4pVPP\P
4p\ \\V4^,44EFp\P
PV^V4pV\P!V49d,\V\PPWc44pM<>V\P!V49gK<>\PP\PPWaR44'gK<>\PPWa4p\V\PPVR4V.R7pM V'd\RPV44V#R# \\3d4Rp\TPT44\!YPR7hi;i)z&FilesystemLoader find starting at {!r}Nz{}.pyz __init__.py)<01>submodule_search_locationszFound module: {!r}z4ImportError loading {!r}, raising CollectionNotFound)r rH)r rrH<00>splitrT<00>sep<65>reversed<65>range<67>len<65>join<69>listdirrr/<00>exists<74>FileNotFoundError<6F>ModuleNotFoundErrorr ) rr r4r9<00>paths<68>xr/<00>basepathr:s && rr%<00>FilesystemLoader.find{s<><00><00> <0A>6<>=<3D>=<3D>d<EFBFBD>j<EFBFBD>j<EFBFBD>I<>J<><13><04><18><1E><1E><04>%<25><06><14>
<EFBFBD>
<EFBFBD> <20> <20><12><16><16>(<28><05> B<01><1D>e<EFBFBD>C<EFBFBD><05>J<EFBFBD><11>N<EFBFBD>3<>4<><01><19>v<EFBFBD>v<EFBFBD>{<7B>{<7B>5<EFBFBD><11>1<EFBFBD>:<3A>.<2E><04><19>R<EFBFBD>Z<EFBFBD>Z<EFBFBD><04>-<2D>-<2D>2<><1C>b<EFBFBD>g<EFBFBD>g<EFBFBD>l<EFBFBD>l<EFBFBD>4<EFBFBD>8<><16>D<EFBFBD><1A><19>R<EFBFBD>Z<EFBFBD>Z<EFBFBD><04>-<2D>-<2D>"<22>'<27>'<27>.<2E>.<2E><16>G<EFBFBD>G<EFBFBD>L<EFBFBD>L<EFBFBD><14>]<5D>;<3B>3<12>3<12> "<22>w<EFBFBD>w<EFBFBD>|<7C>|<7C>D<EFBFBD>7<>H<EFBFBD>2<><1C><1A><07><07> <0C> <0C>X<EFBFBD>}<7D>=<3D>4<<3C>:<3A><16>D<EFBFBD>
<1A>!5<>"<14><15>*<2A>1<>1<>$<24>7<>8<><1B> <0B><14><14><> "<22>#6<>7<> B<01>H<>C<EFBFBD> <11>#<23>*<2A>*<2A>T<EFBFBD>"<22> #<23>$<24>$<24>j<EFBFBD>j<EFBFBD>A<> A<> B<01>s"<00>"B(G <00>AG <00>AG <00>,G <00> AH)rOr=) r>r?r@rArBr<00>propertyrHr%rCrD<00> __classcell__)rPrs@@rrFrFcs7<00><><00><00><08><1C><1C> <0E>*<2A><0E>*<2A><14><14>rrF)rTr.<00>importlib.machineryr<00>importlib.utilrr<00>pathlibr<00>typesr<00>typingrr r
<00>r <00>
exceptionsr <00>utilr rrFrLrr<00><module>rrs?<00><01> <09>
<EFBFBD>*<2A>D<><18><1C>'<27>'<27><14>*<2A><17>R<1A>R<1A>j7<14>v<EFBFBD>7r