;jX%ddlZddlZddlZddlZddlZddlZddlZddlZddlZdZ dZ e fdZ ddZ dZdZd Zd Zd Zd Zd ZdZdZdZdZdS)NzApyarrow.{} is deprecated as of {}, please use pyarrow.{} instead.cfd}|S)a A decorator that takes docstring templates, concatenates them, and finally performs string substitution on them. This decorator will add a variable "_docstring_components" to the wrapped callable to keep track of the original docstring template for potential future use. If the docstring is a template, it will be saved as a string. Otherwise, it will be saved as a callable and the docstring will be obtained via the __doc__ attribute. This decorator cannot be used on Cython classes due to a CPython constraint, which enforces the __doc__ attribute to be read-only. See https://github.com/python/cpython/issues/91309 Parameters ---------- *docstrings : None, str, or callable The string / docstring / docstring template to be prepended in order before the default docstring under the callable. **params The key/value pairs used to format the docstring template. cg}D]a}|t|dr||j0t|ts|jr||b|jr,|tj|jfd|D}d d|D|_||_|S)N_docstring_componentsc~g|]9}t|tr tdkr |jdin|:S)r) isinstancestrlenformat).0 componentparamss >C:\PYTHON\MyICR_Suite\python\Lib\site-packages\pyarrow/util.py z*doc..decorator..Lsg   )S)) .1&kkAoo I  & &v & & &   crg|]4}t|tr|ntj|jpd5S)r)rr textwrapdedent__doc__)r r s rrz*doc..decorator..TsR   i--> _Y%6%<"==   r) hasattrextendrrr rappendrrjoin) decorateddocstring_components docstringparams_applied docstringsrs r decoratorzdoc..decorator:s0!$ 7 7I y"9:: 7$++3Is++ 7y/@ 7$++I666   L ' ' 8I(J(J K K K    2    GG  "0       ! 'rr)rrr s`` rdocr!$s+,%%%%%%N rcRt|||fd}|S)Nc>tj|i|SN)warningswarn)argskwargsapimsgtypes rwrapperz_deprecate_api..wrappergs* c4   sD#F###r) _DEPR_MSGr )old_namenew_namer) next_versionr+r,r*s ` ` @r_deprecate_apir1dsF   8\8 < ._DeprecatedMetactjtjt dt |S)N stacklevel)r%r&r-r __name__ FutureWarningr)selfother new_classr0r.s r__instancecheck__z;_deprecate_class.._DeprecatedMeta.__instancecheck__ssL M  <9KLL     eY// /rN)r9 __module__ __qualname__r>)r=r0r.sr_DeprecatedMetar4rs8 0 0 0 0 0 0 0 0 0rrA)r+)r.r=r0 instancecheckrAs``` r_deprecate_classrCms[ 000000000$000 ?8i\2 6 66rcH t|dS#t$rYdSwxYw)NTF)iter TypeError)objs r _is_iterablerH~s9 S t uus  !!cLt|tpt|dS)N __fspath__)rr rpaths r _is_path_likerMs! dC ?GD,$?$??rc t|trtj|S tj|S#t $rYnwxYwtd)zA Convert *path* to a string or unicode path if possible. znot a path-like object)rr osrL expanduserrJAttributeErrorrFrKs r_stringify_pathrRs$(w!!$''' w!!$//"3"3444       , - --s0A'' A43A4c0tjd|dS)z- Return a product of sequence items. c ||zSr$r)abs rzproduct..s 1r) functoolsreduce)seqs rproductr\s  ,,c1 5 55rc(|sd}|t|z}nxd}|}t|D]<\}}|dkrdx}}n,||}|dkr |||dz zz }+|dkr |||dz zz }=||z |t|zkrtd||fS)z Return a contiguous span of N-D array data. Parameters ---------- shape : tuple strides : tuple itemsize : int Specify array shape data Returns ------- start, end : int The span end points. rrXzarray data is non-contiguous)r\ enumerate ValueError)shapestridesitemsizestartendidimstrides rget_contiguous_spanrhs ='&& , ,FAsaxxQZFzzvq))!37++ ;(WU^^3 3 3;<< < #:rcdtjtjtj}tj|5}|d|tjtjd| dcdddS#1swxYwYdS)N)rrrX) socketAF_INET SOCK_STREAM contextlibclosingbind setsockopt SOL_SOCKET SO_REUSEADDR getsockname)socks rfind_free_portrus =); < BBB!!!$%%%%%%%%%%%%%%%%%%sAB%%B),B)c,ddlm}|jS)Nruuid4)uuidrxhexrws rguidr{s" 577;rc tjd}tj|}|rR|D]"}||urt |t jrn#n,d}|tj|}|Rdx}x}}dS)Nr)sys _getframegc get_referrersrtypes FrameTypeclear)frame this_framerefss r!_break_traceback_cycle_from_framersq!!J E " "D '  EJ&&:eU_+M+M&   && '!%$D$5:::rcddlm}m}||ddi}||5}t|d5}||dddn #1swxYwYddddS#1swxYwYdS)Nr)urlopenRequestz User-Agentpyarrow)headerswb)urllib.requestrropenwriteread)urlout_pathrrreqresponsefs r_download_urllibrs//////// '# i8 9 9 9C % (D ! ! %Q GGHMMOO $ $ $ % % % % % % % % % % % % % % %%%%%%%%%%%%%%%%%%%s4B(A( B(A, ,B/A, 0BBBcddl}||5}t|d5}||jdddn #1swxYwYddddS#1swxYwYdS)Nrr)requestsgetrrcontent)rrrrrs r_download_requestsrsOOO c  &h (D ! ! &Q GGH$ % % % & & & & & & & & & & & & & & &&&&&&&&&&&&&&&&&&&s4A*A A*A A*A A**A.1A.ctjdtdtjdkrt dtjddl}d}tj d }tj |d }d }tj |d }tj |d  ddl }t}n#t$r t}YnwxYw||||||tj|sJtj|sJ|||dS)aB Download and extract latest IANA timezone database into the location expected by Arrow which is %USERPROFILE%\Downloads\tzdata. .. deprecated:: 24.0.0 This function is deprecated and will be removed in a future version. PyArrow now uses the operating system's timezone database on Windows. zpyarrow.util.download_tzdata_on_windows is deprecated as of 24.0.0 and will be removed in a future version. PyArrow now uses the operating system's timezone database on most Windows builds.r6r7win32z)Timezone database is already provided by rNz5https://data.iana.org/time-zones/tzdata-latest.tar.gzz%USERPROFILE%\Downloads\tzdataz tzdata.tar.gzz^https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xmlzwindowsZones.xmlT)exist_ok)r%r&r:r}platformrFtarfilerOrL expandvarsrmakedirsrr ImportErrorrexistsr extractall)r tzdata_url tzdata_pathtzdata_compressed_pathwindows_zones_urlwindows_zones_pathr download_fns rdownload_tzdata_on_windowsrs~ M G   |wRCLRRSSSNNNHJ'$$%FGGKW\\+GGxk3EFFK d++++'( '''& 'K 2333K!#5666 7>>0 1 111 1 7>>, - --- - LL'((33K@@@@@s CC'&C')T)rOrmrYrrjr}rrr%r-r!r:r1rCrHrMrRr\rhrur{rrrrrrrrse(   H ===@@M$(7777"@@@ . . . 666!!!H%%% %%%.%%%&&&+A+A+A+A+Ar