SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib64 > python2.7 > > idlelib


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python27/lib64/python2.7//idlelib

NameTypeSizeLast ModifiedActions
Icons Directory - -
idle_test Directory - -
AutoComplete.py File 8964 bytes January 08 2025 10:43:10.
AutoComplete.pyc File 8181 bytes January 08 2025 10:43:10.
AutoComplete.pyo File 8181 bytes January 08 2025 10:43:10.
AutoCompleteWindow.py File 17318 bytes January 08 2025 10:43:09.
AutoCompleteWindow.pyc File 12714 bytes January 08 2025 10:43:10.
AutoCompleteWindow.pyo File 12655 bytes January 08 2025 10:43:11.
AutoExpand.py File 3395 bytes January 08 2025 10:43:10.
AutoExpand.pyc File 3580 bytes January 08 2025 10:43:11.
AutoExpand.pyo File 3580 bytes January 08 2025 10:43:11.
Bindings.py File 2976 bytes January 08 2025 10:43:09.
Bindings.pyc File 4708 bytes January 08 2025 10:43:09.
Bindings.pyo File 4708 bytes January 08 2025 10:43:09.
CREDITS.txt File 1866 bytes January 08 2025 10:43:11.
CallTipWindow.py File 6065 bytes January 08 2025 10:43:09.
CallTipWindow.pyc File 6292 bytes January 08 2025 10:43:09.
CallTipWindow.pyo File 6292 bytes January 08 2025 10:43:09.
CallTips.py File 7740 bytes January 08 2025 10:43:09.
CallTips.pyc File 8354 bytes January 08 2025 10:43:10.
CallTips.pyo File 8354 bytes January 08 2025 10:43:10.
ChangeLog File 56393 bytes January 08 2025 10:43:11.
ClassBrowser.py File 6999 bytes January 08 2025 10:43:11.
ClassBrowser.pyc File 9890 bytes January 08 2025 10:43:10.
ClassBrowser.pyo File 9890 bytes January 08 2025 10:43:10.
CodeContext.py File 8342 bytes January 08 2025 10:43:09.
CodeContext.pyc File 6788 bytes January 08 2025 10:43:11.
CodeContext.pyo File 6744 bytes January 08 2025 10:43:09.
ColorDelegator.py File 9762 bytes January 08 2025 10:43:09.
ColorDelegator.pyc File 9119 bytes January 08 2025 10:43:10.
ColorDelegator.pyo File 9119 bytes January 08 2025 10:43:10.
Debugger.py File 18236 bytes January 08 2025 10:43:10.
Debugger.pyc File 18144 bytes January 08 2025 10:43:10.
Debugger.pyo File 18144 bytes January 08 2025 10:43:10.
Delegator.py File 665 bytes January 08 2025 10:43:10.
Delegator.pyc File 1346 bytes January 08 2025 10:43:09.
Delegator.pyo File 1346 bytes January 08 2025 10:43:09.
EditorWindow.py File 65498 bytes January 08 2025 10:43:09.
EditorWindow.pyc File 58522 bytes January 08 2025 10:43:09.
EditorWindow.pyo File 58420 bytes January 08 2025 10:43:10.
FileList.py File 3718 bytes January 08 2025 10:43:10.
FileList.pyc File 4168 bytes January 08 2025 10:43:11.
FileList.pyo File 4135 bytes January 08 2025 10:43:10.
FormatParagraph.py File 7287 bytes January 08 2025 10:43:11.
FormatParagraph.pyc File 7311 bytes January 08 2025 10:43:09.
FormatParagraph.pyo File 7311 bytes January 08 2025 10:43:09.
GrepDialog.py File 5145 bytes January 08 2025 10:43:11.
GrepDialog.pyc File 6607 bytes January 08 2025 10:43:11.
GrepDialog.pyo File 6607 bytes January 08 2025 10:43:11.
HISTORY.txt File 10317 bytes January 08 2025 10:43:09.
HyperParser.py File 10497 bytes January 08 2025 10:43:09.
HyperParser.pyc File 6803 bytes January 08 2025 10:43:09.
HyperParser.pyo File 6803 bytes January 08 2025 10:43:09.
IOBinding.py File 21911 bytes January 08 2025 10:43:09.
IOBinding.pyc File 19068 bytes January 08 2025 10:43:11.
IOBinding.pyo File 19068 bytes January 08 2025 10:43:11.
IdleHistory.py File 4052 bytes January 08 2025 10:43:11.
IdleHistory.pyc File 4151 bytes January 08 2025 10:43:11.
IdleHistory.pyo File 4151 bytes January 08 2025 10:43:11.
MultiCall.py File 17701 bytes January 08 2025 10:43:10.
MultiCall.pyc File 16793 bytes January 08 2025 10:43:09.
MultiCall.pyo File 16719 bytes January 08 2025 10:43:09.
MultiStatusBar.py File 1348 bytes January 08 2025 10:43:09.
MultiStatusBar.pyc File 2357 bytes January 08 2025 10:43:11.
MultiStatusBar.pyo File 2357 bytes January 08 2025 10:43:11.
NEWS.txt File 47247 bytes January 08 2025 10:43:10.
ObjectBrowser.py File 4376 bytes January 08 2025 10:43:10.
ObjectBrowser.pyc File 7431 bytes January 08 2025 10:43:10.
ObjectBrowser.pyo File 7431 bytes January 08 2025 10:43:10.
OutputWindow.py File 4576 bytes January 08 2025 10:43:11.
OutputWindow.pyc File 5427 bytes January 08 2025 10:43:10.
OutputWindow.pyo File 5427 bytes January 08 2025 10:43:10.
ParenMatch.py File 6714 bytes January 08 2025 10:43:10.
ParenMatch.pyc File 7350 bytes January 08 2025 10:43:11.
ParenMatch.pyo File 7350 bytes January 08 2025 10:43:11.
PathBrowser.py File 3009 bytes January 08 2025 10:43:09.
PathBrowser.pyc File 4681 bytes January 08 2025 10:43:11.
PathBrowser.pyo File 4681 bytes January 08 2025 10:43:11.
Percolator.py File 3222 bytes January 08 2025 10:43:11.
Percolator.pyc File 4803 bytes January 08 2025 10:43:11.
Percolator.pyo File 4619 bytes January 08 2025 10:43:09.
PyParse.py File 19510 bytes January 08 2025 10:43:10.
PyParse.pyc File 10226 bytes January 08 2025 10:43:09.
PyParse.pyo File 9788 bytes January 08 2025 10:43:10.
PyShell.py File 58872 bytes January 08 2025 10:43:09.
PyShell.pyc File 54269 bytes January 08 2025 10:43:10.
PyShell.pyo File 54167 bytes January 08 2025 10:43:10.
README.txt File 7890 bytes January 08 2025 10:43:10.
RemoteDebugger.py File 11632 bytes January 08 2025 10:43:09.
RemoteDebugger.pyc File 17131 bytes January 08 2025 10:43:10.
RemoteDebugger.pyo File 16977 bytes January 08 2025 10:43:09.
RemoteObjectBrowser.py File 942 bytes January 08 2025 10:43:09.
RemoteObjectBrowser.pyc File 2280 bytes January 08 2025 10:43:10.
RemoteObjectBrowser.pyo File 2280 bytes January 08 2025 10:43:10.
ReplaceDialog.py File 6639 bytes January 08 2025 10:43:10.
ReplaceDialog.pyc File 8016 bytes January 08 2025 10:43:09.
ReplaceDialog.pyo File 8016 bytes January 08 2025 10:43:09.
RstripExtension.py File 1050 bytes January 08 2025 10:43:10.
RstripExtension.pyc File 1665 bytes January 08 2025 10:43:10.
RstripExtension.pyo File 1665 bytes January 08 2025 10:43:10.
ScriptBinding.py File 8459 bytes January 08 2025 10:43:10.
ScriptBinding.pyc File 8370 bytes January 08 2025 10:43:09.
ScriptBinding.pyo File 8370 bytes January 08 2025 10:43:09.
ScrolledList.py File 4373 bytes January 08 2025 10:43:10.
ScrolledList.pyc File 6768 bytes January 08 2025 10:43:09.
ScrolledList.pyo File 6768 bytes January 08 2025 10:43:09.
SearchDialog.py File 2630 bytes January 08 2025 10:43:09.
SearchDialog.pyc File 4139 bytes January 08 2025 10:43:09.
SearchDialog.pyo File 4139 bytes January 08 2025 10:43:09.
SearchDialogBase.py File 7094 bytes January 08 2025 10:43:10.
SearchDialogBase.pyc File 8631 bytes January 08 2025 10:43:11.
SearchDialogBase.pyo File 8631 bytes January 08 2025 10:43:11.
SearchEngine.py File 7463 bytes January 08 2025 10:43:11.
SearchEngine.pyc File 8575 bytes January 08 2025 10:43:10.
SearchEngine.pyo File 8575 bytes January 08 2025 10:43:10.
StackViewer.py File 4431 bytes January 08 2025 10:43:11.
StackViewer.pyc File 6677 bytes January 08 2025 10:43:09.
StackViewer.pyo File 6677 bytes January 08 2025 10:43:09.
TODO.txt File 8478 bytes January 08 2025 10:43:09.
ToolTip.py File 3173 bytes January 08 2025 10:43:11.
ToolTip.pyc File 4890 bytes January 08 2025 10:43:10.
ToolTip.pyo File 4890 bytes January 08 2025 10:43:10.
TreeWidget.py File 15037 bytes January 08 2025 10:43:09.
TreeWidget.pyc File 18383 bytes January 08 2025 10:43:10.
TreeWidget.pyo File 18383 bytes January 08 2025 10:43:10.
UndoDelegator.py File 10787 bytes January 08 2025 10:43:09.
UndoDelegator.pyc File 14218 bytes January 08 2025 10:43:09.
UndoDelegator.pyo File 14218 bytes January 08 2025 10:43:09.
WidgetRedirector.py File 6906 bytes January 08 2025 10:43:09.
WidgetRedirector.pyc File 7951 bytes January 08 2025 10:43:11.
WidgetRedirector.pyo File 7951 bytes January 08 2025 10:43:11.
WindowList.py File 2473 bytes January 08 2025 10:43:09.
WindowList.pyc File 3831 bytes January 08 2025 10:43:10.
WindowList.pyo File 3831 bytes January 08 2025 10:43:10.
ZoomHeight.py File 1300 bytes January 08 2025 10:43:11.
ZoomHeight.pyc File 1711 bytes January 08 2025 10:43:09.
ZoomHeight.pyo File 1711 bytes January 08 2025 10:43:09.
__init__.py File 288 bytes January 08 2025 10:43:09.
__init__.pyc File 444 bytes January 08 2025 10:43:11.
__init__.pyo File 444 bytes January 08 2025 10:43:11.
aboutDialog.py File 7014 bytes January 08 2025 10:43:09.
aboutDialog.pyc File 7017 bytes January 08 2025 10:43:09.
aboutDialog.pyo File 7017 bytes January 08 2025 10:43:09.
config-extensions.def File 2965 bytes January 08 2025 10:43:10.
config-highlight.def File 2515 bytes January 08 2025 10:43:11.
config-keys.def File 7777 bytes January 08 2025 10:43:10.
config-main.def File 2561 bytes January 08 2025 10:43:09.
configDialog.py File 65958 bytes January 08 2025 10:43:09.
configDialog.pyc File 54435 bytes January 08 2025 10:43:11.
configDialog.pyo File 54435 bytes January 08 2025 10:43:11.
configHandler.py File 32485 bytes January 08 2025 10:43:10.
configHandler.pyc File 29985 bytes January 08 2025 10:43:11.
configHandler.pyo File 29985 bytes January 08 2025 10:43:11.
configHelpSourceEdit.py File 6686 bytes January 08 2025 10:43:10.
configHelpSourceEdit.pyc File 6712 bytes January 08 2025 10:43:10.
configHelpSourceEdit.pyo File 6712 bytes January 08 2025 10:43:10.
configSectionNameDialog.py File 4040 bytes January 08 2025 10:43:09.
configSectionNameDialog.pyc File 4510 bytes January 08 2025 10:43:11.
configSectionNameDialog.pyo File 4510 bytes January 08 2025 10:43:11.
dynOptionMenuWidget.py File 1984 bytes January 08 2025 10:43:09.
dynOptionMenuWidget.pyc File 2868 bytes January 08 2025 10:43:09.
dynOptionMenuWidget.pyo File 2868 bytes January 08 2025 10:43:09.
extend.txt File 3642 bytes January 08 2025 10:43:11.
help.html File 42414 bytes January 08 2025 10:43:10.
help.py File 11035 bytes January 08 2025 10:43:10.
help.pyc File 12543 bytes January 08 2025 10:43:09.
help.pyo File 12543 bytes January 08 2025 10:43:09.
help.txt File 12144 bytes January 08 2025 10:43:09.
idle.py File 453 bytes January 08 2025 10:43:09.
idle.pyc File 423 bytes January 08 2025 10:43:09.
idle.pyo File 423 bytes January 08 2025 10:43:09.
idle.pyw File 563 bytes January 08 2025 10:43:10.
idlever.py File 415 bytes January 08 2025 10:43:10.
idlever.pyc File 591 bytes January 08 2025 10:43:10.
idlever.pyo File 591 bytes January 08 2025 10:43:10.
keybindingDialog.py File 12468 bytes January 08 2025 10:43:09.
keybindingDialog.pyc File 12368 bytes January 08 2025 10:43:10.
keybindingDialog.pyo File 12368 bytes January 08 2025 10:43:10.
macosxSupport.py File 8435 bytes January 08 2025 10:43:09.
macosxSupport.pyc File 8585 bytes January 08 2025 10:43:10.
macosxSupport.pyo File 8447 bytes January 08 2025 10:43:09.
rpc.py File 20150 bytes January 08 2025 10:43:10.
rpc.pyc File 22495 bytes January 08 2025 10:43:10.
rpc.pyo File 22389 bytes January 08 2025 10:43:09.
run.py File 12917 bytes January 08 2025 10:43:10.
run.pyc File 13770 bytes January 08 2025 10:43:11.
run.pyo File 13712 bytes January 08 2025 10:43:09.
tabbedpages.py File 18439 bytes January 08 2025 10:43:09.
tabbedpages.pyc File 19081 bytes January 08 2025 10:43:11.
tabbedpages.pyo File 19081 bytes January 08 2025 10:43:11.
textView.py File 3520 bytes January 08 2025 10:43:09.
textView.pyc File 4116 bytes January 08 2025 10:43:10.
textView.pyo File 4116 bytes January 08 2025 10:43:10.

Reading File: //opt/alt/python27/lib64/python2.7//idlelib/configHandler.pyc

�
�V~gc@s~dZddlmZddlZddlZddlmZddlmZddlm	Z	m
Z
defd��YZd	efd
��YZ
defd��YZd
efd��YZdefd��YZdefd��YZdfd��YZe�ZedkrzddlmZddf\aad�Zd�Zeej�eej�edtdtdd�ndS(s�Provides access to stored IDLE configuration information.

Refer to the comments at the beginning of config-main.def for a description of
the available configuration files and the design implemented to update user
configuration information.  In particular, user configuration choices which
duplicate the defaults will be removed from the user's configuration files,
and if a file becomes empty, it will be deleted.

The contents of the user files may be altered using the Options/Configure IDLE
menu to access the configuration GUI (configDialog.py), or manually.

Throughout this module there is an emphasis on returning useable defaults
when a problem occurs in returning a requested configuration value back to
idle. This is to allow IDLE to continue to function in spite of errors in
the retrieval of config information. When a default is returned instead of
a requested config value, a message is printed to stderr to aid in
configuration problem notification and resolution.
i����(tprint_functionN(tConfigParser(t	TkVersion(tFontt
nametofonttInvalidConfigTypecBseZRS((t__name__t
__module__(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRstInvalidConfigSetcBseZRS((RR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRstInvalidFgBgcBseZRS((RR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR	stInvalidThemecBseZRS((RR(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR
 stIdleConfParsercBs>eZdZdd�Zdded�Zd�Zd�ZRS(sI
    A ConfigParser specialised for idle configuration file handling
    cCs ||_tj|d|�dS(sK
        cfgFile - string, fully specified configuration file name
        tdefaultsN(tfileRt__init__(tselftcfgFiletcfgDefaults((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR&s	cCsh|j||�s|S|dkr2|j||�S|dkrN|j||�S|j||d|�SdS(s
        Get an option value for given section/option or return default.
        If type is specified, return as type.
        tbooltinttrawN(t
has_optiont
getbooleantgetinttget(RtsectiontoptionttypetdefaultR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGet-scCs$|j|�r|j|�SgSdS(s4Return a list of options for given section, else [].N(thas_sectiontoptions(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt
GetOptionList>s
cCs|j|j�dS(s&Load the configuration file from disk.N(treadR
(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytLoadEsN(	RRt__doc__tNoneRtFalseRR R"(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR"s
	tIdleUserConfParsercBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(sG
    IdleConfigParser specialised for user configuration handling.
    cCs#|j|�s|j|�ndS(s!If section doesn't exist, add it.N(Rtadd_section(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt
AddSectionNscCs:x3|j�D]%}|j|�s
|j|�q
q
WdS(s)Remove any sections that have no options.N(tsectionsR tremove_section(RR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytRemoveEmptySectionsSscCs|j�|j�S(s9Return True if no sections after removing empty sections.(R+R)(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytIsEmptyYs
cCs#|j|�r|j||�StS(s�Return True if option is removed from section, else False.

        False if either section does not exist or did not have option.
        (Rt
remove_optionR%(RRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytRemoveOption^scCs�|j||�rH|j||�|kr.tS|j|||�tSn6|j|�sg|j|�n|j|||�tSdS(s�Return True if option is added or changed to value, else False.

        Add section if required.  False means option already had value.
        N(RRR%tsettTrueRR'(RRRtvalue((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt	SetOptiongscCs,tjj|j�r(tj|j�ndS(s9Remove user config file self.file from disk if it exists.N(tostpathtexistsR
tremove(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt
RemoveFilexscCs�|j�su|j}yt|d�}Wn-tk
rWtj|�t|d�}nX|�|j|�WdQXn
|j�dS(s�Update user configuration file.

        Remove empty sections. If resulting config isn't empty, write the file
        to disk. If config is empty, remove the file from disk if it exists.

        twN(R,R
topentIOErrorR3tunlinktwriteR7(RtfnameR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytSave}s	

(
RRR#R(R+R,R.R2R7R>(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR&Is							tIdleConfcBseZdZd�Zd�Zd�Zddeed�Z	d�Z
d�Zdd�Zd�Z
d	�Zd
�Zeeed�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zdd�Zd�Zd�Zd�Zd�Zd�ZRS(slHold config parsers for all idle config files in singleton instance.

    Default config files, self.defaultCfg --
        for config_type in self.config_types:
            (idle install dir)/config-{config-type}.def

    User config files, self.userCfg --
        for config_type in self.config_types:
        (user home dir)/.idlerc/config-{config-type}.cfg
    cCs<d|_i|_i|_i|_|j�|j�dS(Ntmaint
extensionst	highlighttkeys(R@RARBRC(tconfig_typest
defaultCfgtuserCfgtcfgtCreateConfigHandlerstLoadCfgFiles(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR�s				
cCs�tdkr!tjjt�}ntjjtjd�}|j�}i}i}xS|jD]H}tjj	|d|d�||<tjj	|d|d�||<q\Wx?|jD]4}t
||�|j|<t||�|j
|<q�WdS(s5Populate default and user config parser dictionaries.t__main__isconfig-s.defs.cfgN(RR3R4tdirnamet__file__tabspathtsyst
GetUserCfgDirRDtjoinRRER&RF(RtidleDirtuserDirtdefCfgFilestusrCfgFilestcfgType((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRH�s		cCsd}tjjd�}|dkr{tjj|�s{d|d}yt|dtj�Wntk
rnnXd}q{n|dkr�tj�}ntjj	||�}tjj|�sytj
|�Wqttfk
rd|d}t|dtj�t�qXn|S(sfReturn a filesystem directory for storing user config files.

        Creates it if required.
        s.idlerct~s.
 Warning: os.path.expanduser("~") points to
 s,
 but the path does not exist.R
s2
 Warning: unable to create user config directory
s(
 Check path and permissions.
 Exiting!
(
R3R4t
expanduserR5tprintRNtstderrR:tgetcwdRPtmkdirtOSErrort
SystemExit(RtcfgDirRRtwarn((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRO�s*

c		CsMy@|j|j||�r?|j|j||d|d|�SWnktk
r�d||||j|j||d|�f}yt|dtj�Wq�tk
r�q�XnXy@|j|j||�r�|j|j||d|d|�SWntk
rnX|rId|||f}yt|dtj�WqItk
rEqIXn|S(sReturn a value for configType section option, or default.

        If type is not None, return a value of that type.  Also pass raw
        to the config parser.  First try to return a valid value
        (including type) from a user configuration. If that fails, try
        the default configuration. If that fails, return default, with a
        default of None.

        Warn if either user or default configurations have an invalid value.
        Warn if default is returned and warn_on_default is True.
        RRsu
 Warning: configHandler.py - IdleConf.GetOption -
 invalid %r value for configuration option %r
 from section %r: %rR
s�
 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option %r
 from section %r.
 returning default value: %r(	RFRRt
ValueErrorRXRNRYR:RE(	Rt
configTypeRRRRtwarn_on_defaultRtwarning((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt	GetOption�s4

	#



cCs|j|j|||�dS(s0Set section option to value in user config file.N(RFR2(RRaRRR1((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR2scCsl||jkrtd��n|dkr:|j|}n(|dkrV|j|}ntd��|j�S(s�Return sections for configSet configType configuration.

        configSet must be either 'user' or 'default'
        configType must be in self.config_types.
        sInvalid configType specifiedtuserRsInvalid configSet specified(RDRRFRERR)(Rt	configSetRat	cfgParser((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetSectionList
scCs�|jdj|�r+|jd|�}n|jd|�}||d}|dkrd|d}n||d}i|d6|d	6}|s�|S|d
kr�|dS|dkr�|d	Std��d
S(sReturn individual theme element highlight color(s).

        fgBg - string ('fg' or 'bg') or None.
        If None, return a dictionary containing fg and bg colors with
        keys 'foreground' and 'background'.  Otherwise, only return
        fg or bg color, as specified.  Colors are intended to be
        appropriate for passing to Tkinter in, e.g., a tag_config call).
        RBRRes-foregroundtcursorsnormal-backgrounds-backgroundt
foregroundt
backgroundtfgtbgsInvalid fgBg specifiedN(RERtGetThemeDictR	(RtthemetelementtfgBgt	themeDicttforetbackRB((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetHighlights	
cCs�|dkr|jd}n(|dkr8|jd}ntd��idd6dd6dd	6dd
6dd6dd6dd
6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6dd"6}x�|D]}}|j||�skd#||||f}yt|d$tj�Wqktk
rgqkXn|j||d||�||<qW|S(%s)Return {option:value} dict for elements in themeName.

        type - string, 'default' or 'user' theme type
        themeName - string, theme name
        Values are loaded over ultimate fallback defaults to guarantee
        that all theme elements are present in a newly created theme.
        ReRBRsInvalid theme type specifieds#000000snormal-foregrounds#ffffffsnormal-backgroundskeyword-foregroundskeyword-backgroundsbuiltin-foregroundsbuiltin-backgroundscomment-foregroundscomment-backgroundsstring-foregroundsstring-backgroundsdefinition-foregroundsdefinition-backgroundshilite-foregroundtgrayshilite-backgroundsbreak-foregroundsbreak-backgroundshit-foregroundshit-backgroundserror-foregroundserror-backgroundscursor-foregroundsstdout-foregroundsstdout-backgroundsstderr-foregroundsstderr-backgroundsconsole-foregroundsconsole-backgrounds�
 Warning: configHandler.IdleConf.GetThemeDict -
 problem retrieving theme element %r
 from theme %r.
 returning default color: %rR
(	RFRER
RRXRNRYR:R(RRt	themeNameRgRoRpRc((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRn7sV



cCs�|jddddddt�}|rE|jddddd�}n|rR|sY|rw|jddddd�}n|r�|jn|j}|d	j|�r�|Sd
SdS(s<Return the name of the currently active text color theme.

        idlelib.config-main.def includes this section
        [Theme]
        default= 1
        name= IDLE Classic
        name2=
        # name2 set in user config-main.cfg for themes added after 2015 Oct 1

        Item name2 is needed because setting name to a new builtin
        causes older IDLEs to display multiple error messages or quit.
        See https://bugs.python.org/issue25313.
        When default = True, name2 takes precedence over name,
        while older IDLEs will just use name.
        R@tThemeRRRtname2ttnameRBsIDLE ClassicN(RdR0RERFR(RRRotsource((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytCurrentThemewscCs|jddddd�S(s0Return the name of the currently active key set.R@tKeysR{RRz(Rd(R((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytCurrentKeys�sc	Cs|j|jdd��}|j|jdd��}x*|D]"}||kr=|j|�q=q=W|rg}x�|D]�}|jd|ddtdd�rv|s�|r�|r�d}nd}|jd||dtddd	t�r|j|�qq|j|�qvqvW|S|Sd
S(s�Return extensions in default and user config-extensions files.

        If active_only True, only return active (enabled) extensions
        and optionally only editor or shell extensions.
        If active_only False, return all extensions.
        RRARetenableRRt
enable_editortenable_shellRbN(tRemoveKeyBindNamesRhtappendRdR0R%(	Rtactive_onlyteditor_onlyt
shell_onlytextnst	userExtnstextntactiveExtnsR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt
GetExtensions�s.

			cCsq|}g}x6|D].}|jd�r|j|j|��qqW|jdt�x|D]
}||=q\W|S(s:Return extnNameList with keybinding section names removed.t	_bindingst_cfgBindingstreverse(R�R�(tendswithR�tindextsortR0(RtextnNameListtnamestkbNameIndiciesR{R�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR��s

cCsdd}d|d}xI|jdd�D]5}x,|j|�D]}||kr=|}q=q=Wq'W|S(s�Return the name of the extension binding virtualEvent, or None.

        virtualEvent - string, name of the virtual event to test for,
                       without the enclosing '<< >>'
        s<<s>>R�iN(R$R�tGetExtensionKeys(RtvirtualEventtextNametvEventR�tevent((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetExtnNameForEvent�sc	Cs�|d}|j�}i}|jdj|�r~|jdj|�}x3|D](}d|d}||}|||<qOWn|S(sReturn dict: {configurable extensionName event : active keybinding}.

        Events come from default config extension_cfgBindings section.
        Keybindings come from GetCurrentKeySet() active key dict,
        where previously used bindings are disabled.
        R�RAs<<s>>(tGetCurrentKeySetRERR (	Rt
extensionNametkeysNamet
activeKeystextKeyst
eventNamest	eventNameR�tbinding((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR��s


cCs�|d}i}|jdj|�r�|jdj|�}xJ|D]?}|jd||dd�j�}d|d}|||<qCWn|S(sReturn dict {configurable extensionName event : keybinding list}.

        Events come from default config extension_cfgBindings section.
        Keybindings list come from the splitting of GetOption, which
        tries user config before default config.
        R�RARRzs<<s>>(RERR Rdtsplit(RR�R�R�R�R�R�R�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt__GetRawExtensionKeys�s

cCs�|d}|j|�}|jdj|�r�|jdj|�}xJ|D]?}|jd||dd�j�}d|d}|||<qLWn|S(sReturn dict {extensionName event : active or defined keybinding}.

        Augment self.GetExtensionKeys(extensionName) with mapping of non-
        configurable events (from default config) to GetOption splits,
        as in self.__GetRawExtensionKeys.
        R�RARRzs<<s>>(R�RERR RdR�(RR�t	bindsNametextBindsR�R�R�R�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetExtensionBindings�s

cCs2|dd!}|jd||dd�j�}|S(s�Return the keybinding list for keySetName eventStr.

        keySetName - name of key binding set (config-keys section).
        eventStr - virtual event, including brackets, as in '<<event>>'.
        ii����RCRRz(RdR�(Rt
keySetNameteventStrR�R�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt
GetKeyBinding
s
!cCs�|j|j��}tjdkr�x[|j�D]J\}}g|D]}|jdd�^qD}||kr1|||<q1q1Wn|S(s/Return CurrentKeys with 'darwin' modifications.tdarwins<Alt-s<Option-(t	GetKeySetRRNtplatformtitemstreplace(Rtresulttktvtxtv2((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR�s%cCs�|j|�}|jdd�}xh|D]`}|j|�}|r(xB|D]7}|||j�krsd||<n||||<qJWq(q(W|S(s�Return event-key dict for keySetName core plus active extensions.

        If a binding defined in an extension is already in use, the
        extension binding is disabled by being set to ''
        R�iRz(tGetCoreKeysR�t_IdleConf__GetRawExtensionKeystvalues(RR�tkeySetR�R�R�R�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR�)s


cCsd|d|j�kS(s�Return True if the virtual event is one of the core idle key events.

        virtualEvent - string, name of the virtual event to test for,
                       without the enclosing '<< >>'
        s<<s>>(R�(RR�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt
IsCoreBinding;scCs�i1ddgd6ddgd6ddgd	6d
dgd6d
gd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd 6d!gd"6d#gd$6d%gd&6d'gd(6d)gd*6d+gd,6d-gd.6d/gd06d1gd26d3gd46d5gd66d7gd86d9gd:6d;gd<6d=gd>6d?d@gdA6dBgdC6dDgdE6dFgdG6dHgdI6dJgdK6dLgdM6dNdOgdP6dQgdR6dSgdT6dUgdV6dWgdX6dYgdZ6d[gd\6d]gd^6d_gd`6dagdb6dcgdd6degdf6}|r�xx|D]m}|j||�}|r:|||<qdg||||f}yt|dhtj�Wqtk
r{qXqWn|S(is�Return dict of core virtual-key keybindings for keySetName.

        The default keySetName None corresponds to the keyBindings base
        dict. If keySetName is not None, bindings from the config
        file(s) are loaded _over_ these defaults, so if there is a
        problem getting any core binding there will be an 'ultimate last
        resort fallback' to the CUA-ish bindings defined here.
        s<Control-c>s<Control-C>s<<copy>>s<Control-x>s<Control-X>s<<cut>>s<Control-v>s<Control-V>s	<<paste>>s<Control-a>s<Home>s<<beginning-of-line>>s<Control-l>s<<center-insert>>s<Control-q>s<<close-all-windows>>s<Alt-F4>s<<close-window>>s<<do-nothing>>s<Control-d>s<<end-of-file>>s<F1>s<<python-docs>>s
<Shift-F1>s<<python-context-help>>s<Alt-n>s<<history-next>>s<Alt-p>s<<history-previous>>s<<interrupt-execution>>s<F6>s<<view-restart>>s<Control-F6>s<<restart-shell>>s<Alt-c>s<<open-class-browser>>s<Alt-m>s<<open-module>>s<Control-n>s<<open-new-window>>s<Control-o>s<<open-window-from-file>>s<Control-j>s<<plain-newline-and-indent>>s<Control-p>s<<print-window>>s<Control-y>s<<redo>>s<Escape>s<<remove-selection>>s
<Alt-Shift-S>s<<save-copy-of-window-as-file>>s<Alt-s>s<<save-window-as-file>>s<Control-s>s<<save-window>>s<Alt-a>s<<select-all>>s<Control-slash>s<<toggle-auto-coloring>>s<Control-z>s<<undo>>s<Control-g>s<F3>s<<find-again>>s<Alt-F3>s<<find-in-files>>s<Control-F3>s<<find-selection>>s<Control-f>s<<find>>s<Control-h>s<<replace>>s<Alt-g>s
<<goto-line>>s<Key-BackSpace>s<<smart-backspace>>s<Key-Return>s<Key-KP_Enter>s<<newline-and-indent>>s	<Key-Tab>s<<smart-indent>>s<Control-Key-bracketright>s<<indent-region>>s<Control-Key-bracketleft>s<<dedent-region>>s<Alt-Key-3>s<<comment-region>>s<Alt-Key-4>s<<uncomment-region>>s<Alt-Key-5>s<<tabify-region>>s<Alt-Key-6>s<<untabify-region>>s<Alt-Key-t>s<<toggle-tabs>>s<Alt-Key-u>s<<change-indentwidth>>s<Control-Key-BackSpace>s<<del-word-left>>s<Control-Key-Delete>s<<del-word-right>>s�
 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event %r
 from key set %r.
 returning default value: %rR
(R�RXRNRYR:(RR�tkeyBindingsR�R�Rc((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR�Fs|	



















































c	Csg}|dkr"|jd}n(|dkr>|jd}ntd��|jd�}x�|D]�}|jd|dd�}|jd�dkr�d}d}n/|jd�}|d	j�}|d
j�}|r`|r`|j|||f�q`q`W|j	dd��|S(
s�Return list of extra help sources from a given configSet.

        Valid configSets are 'user' or 'default'.  Return a list of tuples of
        the form (menu_item , path_to_help_file , option), or return the empty
        list.  'option' is the sequence number of the help resource.  'option'
        values determine the position of the menu items on the Help menu,
        therefore the returned list must be sorted by 'option'.

        ReR@RsInvalid configSet specifiedt	HelpFilest;i����RziitkeycSst|d�S(Ni(R(R�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt<lambda>�Rz(
RFRERR RtfindR�tstripR�R�(	RRfthelpSourcesRgRRR1tmenuItemthelpPath((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetExtraHelpSourceList�s&

	cCs |jd�|jd�}|S(s�Return a list of the details of all additional help sources.

        Tuples in the list are those of GetExtraHelpSourceList.
        RRe(R�(RtallHelpSources((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetAllExtraHelpSourcesList�sc	Cs�|j||ddd�}|j||ddddd�}|j||ddd	dd
�}|dkr�tdkr~d
}q�tdddtd|�}tj|�}|d}|d}|d	kr�d}n|ddk}n|||r�dndfS(s�Retrieve a font from configuration (font, font-size, font-bold)
        Intercept the special value 'TkFixedFont' and substitute
        the actual font, factoring in some tweaks if needed for
        appearance sakes.

        The 'root' parameter can normally be any valid Tkinter widget.

        Return a tuple (family, size, weight) suitable for passing
        to tkinter.Font
        tfontRtcouriers	font-sizeRRt10s	font-boldiRtTkFixedFontg!@tCourierR{R5troottfamilytsizei
tweighttboldtnormal(RdRRR0tactual(	RR�RaRR�R�R�tft
actualFont((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytGetFont�s 			

	cCs:x3|jD](}|j|j�|j|j�q
WdS(sLoad all configuration files.N(RER"RF(RR�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyRI�scCs)x"|jD]}|j|j�q
WdS(s2Write all loaded user configuration files to disk.N(RFR>(RR�((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytSaveUserCfgFiles�sN( RRR#RRHROR$R0R%RdR2RhRuRnR}RR�R�R�R�R�R�R�R�R�R�R�R�R�R�RIR�(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyR?�s8
				-			@		#	
					
			M	 				RJ(tcrc32icCs?t|�}td7at|jdd�t�at|�dS(Nitencodingsutf-8(tstrtlineR�tencodetcrcRX(tobjttxt((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytsprint�s
cCs�td|d�x�t|j��D]�}||j�}t|�t|�xh|D]`}||j|�}t|�t|�x0|D](}t|d||j||��q�WqTWq#WdS(Ns
s = (RXtsortedRCR)R�RR(RGR�R)RRR((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pytdumpCfg�s





s	
lines = s, crc = tsepRz(R#t
__future__RR3RNRtTkinterRttkFontRRt	ExceptionRRR	R
RR&R?tidleConfRtzlibR�R�R�R�R�RERFRX(((s:/opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyt<module>s0'G��W			




SILENT KILLER Tool