https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sqlparse/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sqlparse/__pycache__/utils.cpython-310.pyc
o

�e}_q
�@s�ddlZddlZddlmZddlmZe�dej�Ze�d�Z	dd�Z
dd	�Zd
d�Zddd
�Z
dd�Zeddd��Zeddd��ZdS)�N)�deque)�contextmanageraZ
(
 (?:                     # Start of non-capturing group
  (?:\r\n|\r|\n)      |  # Match any single newline, or
  [^\r\n'"]+          |  # Match any character series without quotes or
                         # newlines, or
  "(?:[^"\\]|\\.)*"   |  # Match double-quoted strings, or
  '(?:[^'\\]|\\.)*'      # Match single quoted strings
 )
)
z(\r\n|\r|\n)cCsRt|�}t�|�}dg}|D]}|sqt�|�r|�d�q|d|7<q|S)z�Split a string on all unquoted newlines.

    Unlike str.splitlines(), this will ignore CR/LF/CR+LF if the requisite
    character is inside of a string.����)�str�SPLIT_REGEX�split�
LINE_MATCH�match�append)�stmt�text�lines�outputlines�line�r�0/usr/lib/python3/dist-packages/sqlparse/utils.py�split_unquoted_newlines$s

rcCs8|durdS|ddvr|d|dkr|dd�}|S)z4Helper that removes surrounding quotes from strings.Nr)�"�'r�r)�valrrr�
remove_quotes6s
rcs�fdd�}|S)zqFunction decorator to help with recursion

    :param cls: Classes to not recurse over
    :return: function
    cs���fdd���S)Ncs,|��D]}t|��s�|�q�|�dS�N)�get_sublists�
isinstance)�tlist�sgroup)�cls�f�	wrapped_frrr Fs

�z(recurse.<locals>.wrap.<locals>.wrapped_fr)r�r)rr r�wrapEszrecurse.<locals>.wrapr)rr"rr!r�recurse?s	r#cs�|}|rt|t�s|gn|}|rt|t�s|gn|}�dur dS|r)t�|�r)dS|r8t�fdd�|D��r8dS|rGt�fdd�|D��rGdSdS)aHelper function to simplify comparisons Instance, Match and TokenType
    :param token:
    :param i: Class or Tuple/List of Classes
    :param m: Tuple of TokenType & Value. Can be list of Tuple for multiple
    :param t: TokenType or Tuple/List of TokenTypes
    :return:  bool
    NFTc3s�|]}�j|�VqdSr)r
)�.0�pattern��tokenrr�	<genexpr>a��zimt.<locals>.<genexpr>c3s�|]}�j|vVqdSr)�ttype)r$r*r&rrr(cr))r�list�any)r'�i�m�t�clss�types�	mpatternsrr&r�imtQsr3cCstt�||�dd�dS)zCAdvance the iterator n-steps ahead. If n is none, consume entirely.r)�maxlenN)r�	itertools�islice)�iterator�nrrr�consumeisr9cc�(�|j|7_dV|j|8_dSr)�offset��filter_r8rrrr;n��r;rccr:r)�indentr<rrrr?ur>r?)NNN)r)r)r5�re�collectionsr�
contextlibr�compile�VERBOSErr	rrr#r3r9r;r?rrrr�<module>s"

�
	


https://t.me/RX1948 - 2025