403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/sqlparse/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/sqlparse/__pycache__/utils.cpython-311.pyc
�

�e}_q
����ddlZddlZddlmZddlmZejdej��Zejd��Z	d�Z
d�Zd�Zdd	�Z
d
�Zedd���Zedd
���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)c���t|��}t�|��}dg}|D]E}|s�t�|��r|�d���5|dxx|z
cc<�F|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�lines     �0/usr/lib/python3/dist-packages/sqlparse/utils.py�split_unquoted_newlinesr$s���
�t�9�9�D����d�#�#�E��$�K��$�$���	$��
�
�
�d�
#�
#�	$����r�"�"�"�"���O�O�O�t�#�O�O�O�O���c�Z�|�dS|ddvr|d|dkr
|dd�}|S)z4Helper that removes surrounding quotes from strings.Nr)�"�'r��)�vals r�
remove_quotesr6s?��
�{���
�1�v�����A��#�b�'� 1� 1��!�B�$�i���Jrc����fd�}|S)zqFunction decorator to help with recursion

    :param cls: Classes to not recurse over
    :return: function
    c��������fd���S)Nc���|���D]}t|���s�|����|��dS�N)�get_sublists�
isinstance)�tlist�sgroup�cls�f�	wrapped_fs  ���rr'z(recurse.<locals>.wrap.<locals>.wrapped_fFsR����,�,�.�.�
&�
&��!�&�#�.�.�&��I�f�%�%�%��
�A�e�H�H�H�H�Hrr)r&r'r%s`@�r�wrapzrecurse.<locals>.wrapEs0�����	�	�	�	�	�	�	��rr)r%r(s` r�recurser)?s#���������Krc�(��|}|rt|t��s|gn|}|rt|t��s|gn|}��dS|rt�|��rdS|rt�fd�|D����rdS|rt�fd�|D����rdSdS)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
    NFTc3�,�K�|]}�j|�V��dSr )r)�.0�pattern�tokens  �r�	<genexpr>zimt.<locals>.<genexpr>as,�����J�J�W�;�5�;��0�J�J�J�J�J�Jrc3�*�K�|]
}�j|vV��dSr )�ttype)r,r1r.s  �rr/zimt.<locals>.<genexpr>cs*�����?�?��u�{�e�+�?�?�?�?�?�?r)r"�list�any)r.�i�m�t�clss�types�	mpatternss`      r�imtr:Qs����
�D��9�z�!�T�2�2�9�Q�E�E��E��=�:�a��#6�#6�=����A�I��}��u�	
��*�U�D�)�)���t�	��s�J�J�J�J�	�J�J�J�J�J���t�	��3�?�?�?�?��?�?�?�?�?���t��urc�N�ttj||��d���dS)zCAdvance the iterator n-steps ahead. If n is none, consume entirely.r)�maxlenN)r�	itertools�islice)�iterator�ns  r�consumerAis(��	�)�
�8�Q�
'�
'��2�2�2�2�2�2rc#�RK�|xj|z
c_dV�|xj|zc_dSr )�offset��filter_r@s  rrCrCn�3�����N�N�a��N�N�	�E�E�E��N�N�a��N�N�N�Nrrc#�RK�|xj|z
c_dV�|xj|zc_dSr )�indentrDs  rrHrHurFr)NNN)r)r)r=�re�collectionsr�
contextlibr�compile�VERBOSEr	rrrr)r:rArCrHrrr�<module>rNs������	�	�	�	�������%�%�%�%�%�%��b�j�
��Z�
�
���R�Z��
(�
(�
����$������$����03�3�3�
���������������r

Youez - 2016 - github.com/yon3zu
LinuXploit