Files
sirh/venv/lib/python3.12/site-packages/sqlparse/__pycache__/utils.cpython-312.pyc

40 lines
4.5 KiB
Plaintext
Raw Normal View History

2026-04-29 11:52:03 +02:00
<EFBFBD>
<00><><EFBFBD>i<EFBFBD> <00><00><><00>ddlZddlZddlmZddlmZej dej<00>Zej d<05>Z d<06>Z
d<07>Z d<08>Z d d <09>Z d
<EFBFBD>Zedd <0B><01>Zedd <0C><01>Zy)<10>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)c<00><><00>t|<00>}tj|<01>}dg}|D]9}|s<01>tj |<04>r|j d<01><00>-|dxx|z cc<<00>;|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>lines <20>K/home/fatima/modif/sirh/venv/lib/python3.12/site-packages/sqlparse/utils.py<70>split_unquoted_newlinesr$sk<00><00>
<0F>t<EFBFBD>9<EFBFBD>D<EFBFBD> <17> <1D> <1D>d<EFBFBD> #<23>E<EFBFBD><15>$<24>K<EFBFBD><15>$<24><04><13> <14> <17> <1D> <1D>d<EFBFBD> #<23> <17> <1E> <1E>r<EFBFBD> "<22> <17><02>O<EFBFBD>t<EFBFBD> #<23>O<EFBFBD> $<24> <17><16>c<00>:<00>|<00>y|ddvr|d|dk(r|dd}|S)z4Helper that removes surrounding quotes from strings.Nr)<03>"<22>'<27>`r<00><00>)<01>vals r<00> remove_quotesr6s5<00><00>
<EFBFBD>{<7B><0E>
<EFBFBD>1<EFBFBD>v<EFBFBD><1F> <20>S<EFBFBD><11>V<EFBFBD>s<EFBFBD>2<EFBFBD>w<EFBFBD>%6<><11>!<21>B<EFBFBD>i<EFBFBD><03> <0E>Jrc<00><00><00><00>fd<01>}|S)zqFunction decorator to help with recursion
:param cls: Classes to not recurse over
:return: function
c<00><00><01><00><01><00><02><00>fd<01><08><01>S)Nc<00>j<00><03>|j<00>D]}t|<01><02>r<01><00>|<01><00><00>|<00>y<00>N)<02> get_sublists<74>
isinstance)<05>tlist<73>sgroup<75>cls<6C>f<> wrapped_fs <20><><EFBFBD>rr(z(recurse.<locals>.wrap.<locals>.wrapped_fFs6<00><><00><1F>,<2C>,<2C>.<2E> &<26><06>!<21>&<26>#<23>.<2E><1D>f<EFBFBD>%<25> &<26> <0E>e<EFBFBD>Hrr)r'r(r&s`@<40>r<00>wrapzrecurse.<locals>.wrapEs<00><><00> <15> <19>rr)r&r)s` r<00>recurser*?s<00><><00> <19> <10>Krc<00><00><00><00><00>y|r t<00>|<01>ry|r5t|t<00>rt<00>fd<03>|D<00><00>ry<00>j|<02>ry|r5t|t<00>rt<00>fd<04>|D<00><00>ryy<01>j|vryy)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
FTc3<00><<00>K<00>|]}<00>j|<01><00><01><00>y<00>wr!)r )<03>.0<EFBFBD>pattern<72>tokens <20>r<00> <genexpr>zimt.<locals>.<genexpr>_s<00><><00><><00>:<3A>W<EFBFBD>;<3B>5<EFBFBD>;<3B>;<3B><07>(<28>:<3A>s<00>c3<00>:<00>K<00>|]}<01>j|v<00><01><00>y<00>wr!)<01>ttype)r-r2r/s <20>rr0zimt.<locals>.<genexpr>es<00><><00><><00>7<>E<EFBFBD>5<EFBFBD>;<3B>;<3B>%<25>'<27>7<>s<00>)r#<00>list<73>anyr r2)r/<00>i<>m<>ts` r<00>imtr8Qs<><00><><00> <0A>}<7D><14><08>Z<EFBFBD><05>q<EFBFBD> !<21><13><08> <15>a<EFBFBD><14> <1E><12>:<3A><01>:<3A>:<3A><1B> <18>U<EFBFBD>[<5B>[<5B>!<21>_<EFBFBD><17><08> <15>a<EFBFBD><14> <1E><12>7<>Q<EFBFBD>7<>7<><1B> <11><13>[<5B>[<5B>A<EFBFBD> <1D><17> rc<00>F<00>ttj||<01>d<01><02>y)zCAdvance the iterator n-steps ahead. If n is none, consume entirely.r)<01>maxlenN)r<00> itertools<6C>islice)<02>iterator<6F>ns r<00>consumer?ls<00><00> <09>)<29>
<1A>
<1A>8<EFBFBD>Q<EFBFBD>
'<27><01>2rc#<00>hK<00>|xj|z c_d<00><01>|xj|zc_y<00>wr!)<01>offset<65><02>filter_r>s rrArAq<00>%<00><00><><00> <0B>N<EFBFBD>N<EFBFBD>a<EFBFBD><17>N<EFBFBD> <09> <0B>N<EFBFBD>N<EFBFBD>a<EFBFBD><17>N<EFBFBD><4E><00>02c#<00>hK<00>|xj|z c_d<00><01>|xj|zc_y<00>wr!)<01>indentrBs rrGrGxrDrE)NNN)r)r)r;<00>re<72> collectionsr<00>
contextlibr<00>compile<6C>VERBOSEr r rrr*r8r?rArGrrr<00><module>rMs<><00><01><11> <09><1D>%<25><19>b<EFBFBD>j<EFBFBD>j<EFBFBD>
<04><08>Z<EFBFBD>Z<EFBFBD>
<11> <0B><18>R<EFBFBD>Z<EFBFBD>Z<EFBFBD><0F> (<28>
<EFBFBD><17>$<0F><10>$<11>63<>
<10><18><10><18> <10><18><10>r