403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/itertools.cpython-310.pyc
o

;js	�@s<dZddlZddlZddlZd
dd�Zddd�Zdd	�ZdS)z$
Helpful generators and other tools
�Nccs��t�|dur	dnt�|��}d}t|�}	|�||�}|s3||ks&|dur1||d�}|r1|VdS||��ks=|durF|||���V|��}q)z�
    Generator function for iterating through large strings, particularly useful
    as a replacement for str.splitlines().

    See http://stackoverflow.com/a/3865367
    Nz\s+r)�re�compile�escape�len�search�start�end)�orig�sep�exp�pos�length�match�val�r�H/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/itertools.py�splits ��r�ccs��z
|t|�kr
t�Wntytd��wz9	z|�|�}Wnty6tjj�|d�}|�|�}Ynw|s:n|VqWz|��WdStyPYdSwz|��Wwty`Yww)zc
    Generator that reads chunk_size bytes at a time from a file/filehandle and
    yields it.
    zchunk_size must be an integerT�rbN)	�int�
ValueError�read�AttributeError�salt�utils�filesZfopen�close)Zfh_Z
chunk_size�chunkrrr�	read_file%s>��������rc	Cs\zt|�}Wn
tyYdSw|D]}z
t�||�r!|WSWqty+YqwdS)z�
    Convenience function which runs fnmatch.fnmatch() on each element of passed
    iterable. The first matching candidate is returned, or None if there is no
    matching candidate.
    N)�iter�	TypeError�fnmatch)Z
candidates�patternZcandidates_iter�	candidaterrr�fnmatch_multipleAs�
��r$)N)r)�__doc__r!rZsalt.utils.filesrrrr$rrrr�<module>s



Youez - 2016 - github.com/yon3zu
LinuXploit