403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.188
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/__pycache__/colorizer.cpython-315.pyc
R
>lqji<c
��]PHs]PHs]PHs]PHs]QHGs]QHGsP
sQs	Qs
\
2s\OQ2s
QQQQQ	QQ
QQQ-sQsQ
sQQ\2sQs\Q6Xc"]QHPGs\Q]P
Q5]QHXGs\\2P!P!)�)�idleConf)�	Delegatorc�P�QU*QOU2*Q*!)z9Return a named group pattern matching list of alternates.z(?P<%s>�|�))�join)�name�
alternatess&&�&C:\Python315\\Lib\idlelib\colorizer.py�anyrs ���t��c�h�h�z�2�2�S�8�8�c��Q[Q[O2*Q*oQQOQQQO[O2*Q*,2*Q*oQoQQOQQQQO[O2*Q*,2*Q*oQo[	[
2Tt,tFD>oUO
Q2%cJU[O7fJ3[U2MJ@	ooQ	[Q
U2*Q*o[QQ,2oQ
o	U	Q*o
U	Q*oU	Q*oU	Q*o
[QV�V�,2o[OQOVxV�VV4[QQ,2,	2[O[O*2oU!ttoh)z\b�KEYWORDrz[:,;=^&|@~)\]}]z\b(?:z)\bz))z_\b�_z([^.'\"\\#]\b|^)�BUILTIN�COMMENTz#[^\n]*z!(?i:r|u|f|fr|rf|b|br|rb|t|rt|tr)?z'[^'\\\n]*(\\.[^'\\\n]*)*'?z"[^"\\\n]*(\\.[^"\\\n]*)*"?z''''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?z'"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?�STRING�SYNCz\nz,^[ \t]*(?P<MATCH_SOFTKW>match)\b(?![ \t]*(?:zB^[ \t]*(?P<CASE_SOFTKW>case)[ \t]+(?P<CASE_DEFAULT_UNDERSCORE>_\b)z+^[ \t]*(?P<CASE_SOFTKW2>case)\b(?![ \t]*(?:z7^[ \t]*(?P<LAZY_SOFTKW>lazy)(?=[ \t]+(?:import|from)\b))r�keyword�kwlistr�dir�builtins�
startswith�str�re�compile�DOTALL�	MULTILINE)�kw�match_softkw�case_default�case_softkw_and_pattern�lazy_softkwr�builtinlist�builtin�comment�stringprefix�sqstring�dqstring�	sq3string�	dq3string�string�progs                r
�make_patr-s���	��Y����/�	/�%�	7�B�	��(�(���t�y�y����0�0�6�9�$
��	�	�	��	2��	��(�(����t�y�y����0�0�6�9�	$
��	�	�	��	'��
*-�X��/����/�/�#�.���w�~�~�-��3�t�9��K�/�"�C�	�;�$?�?�%�G�G��)�j�\�*�G�7�L��<�<�H��<�<�H��I�I�I��I�I�I�
��I�(�E�
F�F�
�:�:�c�h�h� '�&� ,� 7� #�F�U�G� 4�	 !�"��i�i�"�,�,�.�
0�D��K��%/s�G�7G�Gz\s+(\w+)�MATCH_SOFTKWr�CASE_SOFTKW�CASE_DEFAULT_UNDERSCORE�CASE_SOFTKW2�LAZY_SOFTKWc�L�QUO2O22!)z<Get only the non-empty named groups from an re.Match object.c3�L�SF �DvqU%fJV1w�	J	P!3h�N�)�.0�k�vs&  r
�	<genexpr>�'matched_named_groups.<locals>.<genexpr>Ts��!=���!=�v���F�Q�F�!=�s�$�$)�	groupdict�items)�re_matchs&r
�matched_named_groupsr?Rs��C��!3�!3�!5�!;�!;�!=�C�Crc	�>�[O2o[OUQ2o[OUQ2Q*o[OUQ2oUOUQ*UQ*UUQ*UQ*UQ*Q5P!)z[Set color options of Text widget.

If ColorDelegator is used, this should be called first.
�normal�cursor�
foreground�hilite�
background)rCrE�insertbackground�selectforeground�selectbackground�inactiveselectbackground)r�CurrentTheme�GetHighlight�config)�text�theme�
normal_colors�cursor_color�
select_colorss&    r
�color_configrRWs���
�!�!�#�E��)�)�%��:�M��(�(���9�,�G�L��)�)�%��:�M��K�K� ��.� ��.�%�&�|�4�&�|�4�!.�|�!<�
�
rc�`�\sQs]lsnQsQsQsQsQsQs	QQks
QQksQQ	ksQ
s
QQksQsQ
sQsQsQsQsUsP!)�ColorDelegatoraDelegator for syntax highlighting (text coloring).

Instance variables:
    delegate: Delegator below this one in the stack, meaning the
            one this one delegates to.

    Used to track state:
    after_id: Identifier for scheduled after event, which is a
            timer for colorizing the text.
    allow_colorizing: Boolean toggle for applying colorizing.
    colorizing: Boolean flag when colorizing is in process.
    stop_colorizing: Boolean flag to end an active colorizing
            process.
c��[OU2UO2[Um[UmUO2P!r5)r�__init__�
init_stater,�idprog�LoadTagDefs��selfs&r
rV�ColorDelegator.__init__|s4�����4� �������	�������rc�@�PUmP	UmP
UmP
UmP!)z1Initialize variables that track colorizing state.)�after_id�allow_colorizing�stop_colorizing�
colorizingrZs&r
rW�ColorDelegator.init_state�s ����
� $���$�����rc��UOdUOQ2[OV2UdAUO	2UOQUO2UOQQ2P!P	UmP
Um	P!)aJSet the delegate for this instance.

A delegate is an instance of a Delegator class and each
delegate points to the next delegator in the stack.  This
allows multiple delegators to be chained together for a
widget.  The bottom delegate for a colorizer is a Text
widget.

If there is a delegate, also start the colorizing process.
z<<toggle-auto-coloring>>�1.0�end)
�delegate�unbindr�setdelegate�
config_colors�bind�toggle_colorize_event�notify_ranger`r_)r[rfs&&r
rh�ColorDelegator.setdelegate�sr���=�=�$��K�K�2�3����d�-������ ��I�I�0�$�2L�2L�M����e�U�+�$(�D� �$)�D�!rc��UOO2FDvqUOU1-U@J	UOQ2P!)z4Configure text widget tags with colors from tagdefs.�sel)�tagdefsr=�
tag_configure�	tag_raise)r[�tag�cnfs&  r
ri�ColorDelegator.config_colors�s:�����*�*�,�H�C����s�*�c�*�-����u�rc���[O2oQ[OUQ2Q[OUQ2Q[OUQ2Q[OUQ2Q	[OUQ
2QQPQ
P-QQPQ
P-Q[OUQ2Q[OUQ2-	Um[%c[QUO2P!P!)z.Create dictionary of tag names to text colors.rr%rrrr$rr+�
DEFINITION�
definitionrrErC�TODO�ERROR�error�hitrp)rrJrKrp�DEBUG�print)r[rNs& r
rY�ColorDelegator.LoadTagDefs�s����%�%�'���x�,�,�U�I�>��x�,�,�U�I�>��x�,�,�U�I�>��h�+�+�E�8�<��(�/�/��|�D��\�4��t�<��\�4��t�<��X�*�*�5�'�:�

�8�(�(���6�����5�%�	�4�<�<�0�5rc��UOU2oUOOVU2UOVQ[	U2**2P!)z:Insert chars into widget at index and mark for colorizing.z+%dc)�indexrf�insertrl�len)r[r��chars�tagss&&&&r
r��ColorDelegator.insert�s@���
�
�5�!���
�
���U�4�0����%��#�e�*�)<�!<�=rc��UOU2oUOOV2UOU2P!)z5Delete chars between indexes and mark for colorizing.)r�rf�deleterl�r[�index1�index2s&&&r
r��ColorDelegator.delete�s0�����F�#���
�
���V�,����&�!rc�v�UOQV2UO%c[%c[Q2P!UO%cP	Um[%c[Q2UO%c9[%c[Q2UO]UO2UmP!)zCMark text changes for processing and restart colorizing, if active.ryzcolorizing already scheduled�stop colorizingzschedule colorizing)	�tag_addr^r}r~rar`r_�after�
recolorizer�s&&&r
rl�ColorDelegator.notify_range�sy�����V�V�,��=�=�=��u�e�:�;���?�?�?�#'�D� ��u�e�-�.�� � � ��u�e�1�2� �J�J�q�$�/�/�:�D�M�rc��UO%c<UOoPUm[%c[Q2UOU2P
UmP	UmP!)N�cancel scheduled recolorizer)r^r}r~�after_cancelr_r`)r[r^s& r
�close�ColorDelegator.close�sF���=�=�=��}�}�H� �D�M��u�e�:�;����h�'� %���#��rc�4�UO%c<UOoPUm[%c[Q2UOU2UO%c1UO
%c[%c[Q2P	UmUO%(UmUO%c4UO
%f"UO]UO2Um[%c![QUO%cQLQ2Q!)z�Toggle colorizing on and off.

When toggling off, if colorizing is scheduled or is in
process, it will be cancelled and/or stopped.

When toggling on, colorizing will be scheduled.
r�r�zauto colorizing turned�on�off�break)	r^r}r~r�r_rar`r�r�)r[�eventr^s&& r
rk�$ColorDelegator.toggle_colorize_event�s����=�=�=��}�}�H� �D�M��u�e�:�;����h�'�� � � �T�_�_�_��u�e�-�.�#'�D� �$(�$9�$9� 9���� � � ����� �J�J�q�$�/�/�:�D�M��5��*��/�/�/�$�U�
<�rc��PUmUO%f[%c[Q2P!UO%f[%c[Q2P!UO
%c[%c[Q2P!P
UmP	Um[%c[Q2[O2oUO2[O2o[%c[QV!*
*2P
UmUO%cUUOQQ2%c;[%c[Q2UO]UO2UmP!P!P!P
Smh9h)	a#Timer event (every 1ms) to colorize text.

Colorizing is only attempted when the text widget exists,
when colorizing is toggled on, and when the colorizing
process is not already running.

After colorizing is complete, some cleanup is done to
make sure that all the text has been colorized.
zno delegatezauto colorizing is offzalready colorizingz
colorizing...z%.3f secondsryrdzreschedule colorizing)
r^rfr}r~r_rar`�time�perf_counter�recolorize_main�
tag_nextranger�r�)r[�t0�t1s&  r
r��ColorDelegator.recolorize�s����
��}�}�}��u�e�M�*���$�$�$��u�e�4�5���?�?�?��u�e�0�1��		$�#(�D� �"�D�O��u�e�O�,��"�"�$�B�� � �"��"�"�$�B��u�e�N�b�e�4�5�#�D�O�� � � �T�%7�%7���%F�%F��u�e�3�4� �J�J�q�$�/�/�:�D�M�&G� ��$�D�O�s�E=�%AE=�6E=�=	Fc�J�QoUOQU29o%Cc�UOQU]*U]*2UOQU]*2oU%c
U]*LQoPoSo]oP
oU%cJzSoUOUQU**2o[	U]*]d2oQUOUQ*27oUO
V�2o	U	%fP!UOFDo
UOV�U2J	VY*
oUOVT2QUOUQ*27cSoPoLP
oU%fUOQU2UO2UO%fCJ[%c[Q2P!P!)z(Evaluate text and apply colorizing tags.rdryrz+%d lines linestartz-1czcolorizing stopped)r��
tag_remove�
tag_prevranger��min�	tag_names�getrp�_add_tags_in_sectionr��update_idletasksr`r}r~)r[�next�todo_tag_range�sync_tag_range�headr��lines_to_get�ok�mark�linerss&          r
r��ColorDelegator.recolorize_mainso���� $� 2� 2�6�4� @�@�n�@��O�O�F�N�1�$5�~�a�7H�I�!�/�/���q�8I�J�N�(6�>�!�$�E�D��E��D��L��B��b����z�z�$�)>�)5�*6�#6�7��"�<�!�#3�S�9���t�~�~�d�U�l�;�;���x�x��+�����<�<�C��O�O�C�t�4�(��
���)�)�%�6��T�^�^�D�5�L�9�9��D��E��B���L�L���.��%�%�'��'�'�'��u�e�$8�9��OArc�v�[OUU2oUOUUQUQ
Q0UQUQ
Q02P!)a�Add a tag to a given range in the text widget.

This is a utility function, receiving the range as `start` and
`end` positions, each of which is a number of characters
relative to the given `head` index in the text widget.

The tag to add is determined by `matched_group_name`, which is
the name of a regular expression "named group" as matched by
by the relevant highlighting regexps.
�+�d�c)�prog_group_name_to_tagr�r�)r[�startrer��matched_group_namerss&&&&& r
�_add_tag�ColorDelegator._add_tagDsL��%�(�(�);�);�=�����S��v�Q�u�Q�i�q�)��v�Q�s�1�g�Q�'�	)rc
�j�UOOU2FD�o[U2FD~vqEUOU2vqgUO	VgV$2UQ7fJ3UO
O
V29o%fJXUO]2vqgUO	VgUQ2J�	J�	P!)z�Parse and add highlighting tags to a given part of the text.

`chars` is a string with the text to parse and to which
highlighting is to be applied.

    `head` is the index in the text widget where the text is found.
rw)�def�class)r,�finditerr?�spanr�rX�match)	r[r�r��mr�matched_text�a�b�m1s	&&&      r
r��#ColorDelegator._add_tags_in_sectionUs������#�#�E�*�A�&:�1�&=�"���v�v�d�|����
�
�a�D�/��#3�3�!�[�[�.�.�u�8�8�r�8�8�!�w�w�q�z����
�
�a�D�,�?�
'>�+rc�V�UOFDoUOUQQ2J	P!)zRemove all colorizing tags.rdre)rpr�)r[rss& r
�removecolors�ColorDelegator.removecolorsfs ���<�<�C��O�O�C���.� r)r^r_rarXr,r`rpr5)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rVrWrhrirYr�r�rlr�rkr�r�r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@r
rTrTls]����
�� �*�.�1�(>�"��$��0 ;�D*�X)�"@�"/�/rrTc��]QHGoGo]QHGo]QHGoUU2oUOQ2[[UO2OQ2Q*2vqgUOQU]*U]�*1*2UUQQ	5oUO]Q
Q5UOQU2UO2[U2UU2o	[!2o
U	O#U
2P!)
r)�Toplevel�Text)�source)�
PercolatorzTest ColorDelegatorr�:�NNz
700x550+%d+%d�white)rE�both)�expand�fillr�)�tkinterr�r�� idlelib.idle_test.test_colorizerr��idlelib.percolatorr��title�map�int�geometry�split�packr��	focus_setrRrT�insertfilter)�parentr�r�r�r��top�x�yrM�pr�s&          r
�_color_delegatorr�ls���&�7�-�
�6�
�C��I�I�#�$��s�F�O�O�%�+�+�C�0��4�5�D�A��L�L��A��F�A��G�#4�4�5����(�D��I�I�Q�V�I�$��K�K��&�!��N�N������4��A���A��N�N�1�r�__main__)�mainz idlelib.idle_test.test_colorizer)�	verbosity�exit)�run)rrrr��idlelib.configr�idlelib.delegatorrr}rr-r,rrXr�r?rRrTr�r��unittestr��idlelib.idle_test.htestr�r6rr
�<module>r�s�����	��#�'�
��9�
3�l�z��	���K�	 ���I��9��y��I��9���D�

�*}/�Y�}/�@�*�z����	+�q�u�E�+����r

Youez - 2016 - github.com/yon3zu
LinuXploit