Files
wg-backend-django/acer-env/lib/python3.10/site-packages/sqlparse/__pycache__/utils.cpython-310.pyc

40 lines
3.3 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>Ԅcv <00>@s<>ddlZddlZddlmZddlmZe<01>dej<07>Ze<01>d<05>Z dd<07>Z
dd <09>Z d
d <0B>Z dd d <0A>Z dd<0F>Zeddd<11><01>Zeddd<14><01>ZdS)<18>N)<01>deque)<01>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|<00>}t<01>|<01>}dg}|D]}|sqt<03>|<04>r|<03>d<01>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.<2E><00><><EFBFBD><EFBFBD><EFBFBD>)<06>str<74> SPLIT_REGEX<45>split<69>
LINE_MATCH<EFBFBD>match<63>append)<05>stmt<6D>text<78>lines<65> outputlines<65>line<6E>r<00>a/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/sqlparse/utils.py<70>split_unquoted_newlines$s

 rcCs8|durdS|ddvr|d|dkr|dd<04>}|S)z4Helper that removes surrounding quotes from strings.Nr)<03>"<22>'<27>`r<00>r)<01>valrrr<00> remove_quotes6s
 rcs<00>fdd<02>}|S)zqFunction decorator to help with recursion
:param cls: Classes to not recurse over
:return: function
cs<00><02><00>fdd<02><08><01>S)Ncs,|<00><00>D] }t|<01><00>s<0F>|<01>q<04>|<00>dS<00>N)<02> get_sublists<74>
isinstance)<02>tlist<73>sgroup)<03>cls<6C>f<> wrapped_frrr!Fs

<02> z(recurse.<locals>.wrap.<locals>.wrapped_fr)r <00>r)r r!r<00>wrapEszrecurse.<locals>.wrapr)rr#rr"r<00>recurse?s  r$cs<>|}|r t|t<01>s |gn|}|rt|t<01>s|gn|}<06>dur dS|r)t<00>|<04>r)dS|r8t<02>fdd<05>|D<00><01>r8dS|rGt<02>fdd<05>|D<00><01>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<00>|]}<01>j|<01>VqdSr)r
)<02>.0<EFBFBD>pattern<72><01>tokenrr<00> <genexpr>a<00><02>zimt.<locals>.<genexpr>c3s<00>|]}<01>j|vVqdSr)<01>ttype)r%r+r'rrr)cr*)r<00>list<73>any)r(<00>i<>m<>t<>clss<73>types<65> mpatternsrr'r<00>imtQsr4cCstt<01>||<01>dd<02>dS)zCAdvance the iterator n-steps ahead. If n is none, consume entirely.r)<01>maxlenN)r<00> itertools<6C>islice)<02>iterator<6F>nrrr<00>consumeisr:cc<00>(<00>|j|7_dV|j|8_dSr)<01>offset<65><02>filter_r9rrrr<n<00><02>r<rccr;r)<01>indentr=rrrr@ur?r@)NNN)r)r)r6<00>re<72> collectionsr<00>
contextlibr<00>compile<6C>VERBOSErr rrr$r4r:r<r@rrrr<00><module>s"  

<04>