SILENT KILLERPanel

Current Path: > > usr > 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: //usr/lib64/python2.7/idlelib

NameTypeSizeLast ModifiedActions
Icons Directory - -
idle_test Directory - -
AutoComplete.py File 8964 bytes April 10 2024 04:58:35.
AutoComplete.pyc File 8012 bytes April 10 2024 04:58:46.
AutoComplete.pyo File 8012 bytes April 10 2024 04:58:46.
AutoCompleteWindow.py File 17318 bytes April 10 2024 04:58:35.
AutoCompleteWindow.pyc File 12480 bytes April 10 2024 04:58:46.
AutoCompleteWindow.pyo File 12421 bytes April 10 2024 04:58:43.
AutoExpand.py File 3395 bytes April 10 2024 04:58:35.
AutoExpand.pyc File 3502 bytes April 10 2024 04:58:46.
AutoExpand.pyo File 3502 bytes April 10 2024 04:58:46.
Bindings.py File 2976 bytes April 10 2024 04:58:35.
Bindings.pyc File 4695 bytes April 10 2024 04:58:46.
Bindings.pyo File 4695 bytes April 10 2024 04:58:46.
CREDITS.txt File 1866 bytes April 10 2024 04:58:35.
CallTipWindow.py File 6065 bytes April 10 2024 04:58:35.
CallTipWindow.pyc File 6136 bytes April 10 2024 04:58:46.
CallTipWindow.pyo File 6136 bytes April 10 2024 04:58:46.
CallTips.py File 7740 bytes April 10 2024 04:58:35.
CallTips.pyc File 8133 bytes April 10 2024 04:58:46.
CallTips.pyo File 8133 bytes April 10 2024 04:58:46.
ChangeLog File 56393 bytes April 10 2024 04:58:35.
ClassBrowser.py File 6999 bytes April 10 2024 04:58:35.
ClassBrowser.pyc File 9500 bytes April 10 2024 04:58:46.
ClassBrowser.pyo File 9500 bytes April 10 2024 04:58:46.
CodeContext.py File 8342 bytes April 10 2024 04:58:35.
CodeContext.pyc File 6658 bytes April 10 2024 04:58:46.
CodeContext.pyo File 6614 bytes April 10 2024 04:58:43.
ColorDelegator.py File 9762 bytes April 10 2024 04:58:35.
ColorDelegator.pyc File 8898 bytes April 10 2024 04:58:46.
ColorDelegator.pyo File 8898 bytes April 10 2024 04:58:46.
Debugger.py File 18236 bytes April 10 2024 04:58:35.
Debugger.pyc File 17546 bytes April 10 2024 04:58:46.
Debugger.pyo File 17546 bytes April 10 2024 04:58:46.
Delegator.py File 665 bytes April 10 2024 04:58:35.
Delegator.pyc File 1268 bytes April 10 2024 04:58:46.
Delegator.pyo File 1268 bytes April 10 2024 04:58:46.
EditorWindow.py File 65498 bytes April 10 2024 04:58:35.
EditorWindow.pyc File 56858 bytes April 10 2024 04:58:46.
EditorWindow.pyo File 56756 bytes April 10 2024 04:58:43.
FileList.py File 3718 bytes April 10 2024 04:58:35.
FileList.pyc File 4025 bytes April 10 2024 04:58:46.
FileList.pyo File 3992 bytes April 10 2024 04:58:43.
FormatParagraph.py File 7287 bytes April 10 2024 04:58:35.
FormatParagraph.pyc File 7142 bytes April 10 2024 04:58:46.
FormatParagraph.pyo File 7142 bytes April 10 2024 04:58:46.
GrepDialog.py File 5145 bytes April 10 2024 04:58:35.
GrepDialog.pyc File 6425 bytes April 10 2024 04:58:46.
GrepDialog.pyo File 6425 bytes April 10 2024 04:58:46.
HISTORY.txt File 10317 bytes April 10 2024 04:58:35.
HyperParser.py File 10497 bytes April 10 2024 04:58:35.
HyperParser.pyc File 6673 bytes April 10 2024 04:58:46.
HyperParser.pyo File 6673 bytes April 10 2024 04:58:46.
IOBinding.py File 21911 bytes April 10 2024 04:58:35.
IOBinding.pyc File 18535 bytes April 10 2024 04:58:46.
IOBinding.pyo File 18535 bytes April 10 2024 04:58:46.
IdleHistory.py File 4052 bytes April 10 2024 04:58:35.
IdleHistory.pyc File 4060 bytes April 10 2024 04:58:46.
IdleHistory.pyo File 4060 bytes April 10 2024 04:58:46.
MultiCall.py File 17701 bytes April 10 2024 04:58:35.
MultiCall.pyc File 16351 bytes April 10 2024 04:58:46.
MultiCall.pyo File 16277 bytes April 10 2024 04:58:43.
MultiStatusBar.py File 1348 bytes April 10 2024 04:58:35.
MultiStatusBar.pyc File 2279 bytes April 10 2024 04:58:46.
MultiStatusBar.pyo File 2279 bytes April 10 2024 04:58:46.
NEWS.txt File 47247 bytes April 10 2024 04:58:35.
ObjectBrowser.py File 4376 bytes April 10 2024 04:58:35.
ObjectBrowser.pyc File 7067 bytes April 10 2024 04:58:46.
ObjectBrowser.pyo File 7067 bytes April 10 2024 04:58:46.
OutputWindow.py File 4576 bytes April 10 2024 04:58:35.
OutputWindow.pyc File 5232 bytes April 10 2024 04:58:46.
OutputWindow.pyo File 5232 bytes April 10 2024 04:58:46.
ParenMatch.py File 6714 bytes April 10 2024 04:58:35.
ParenMatch.pyc File 7129 bytes April 10 2024 04:58:46.
ParenMatch.pyo File 7129 bytes April 10 2024 04:58:46.
PathBrowser.py File 3009 bytes April 10 2024 04:58:35.
PathBrowser.pyc File 4486 bytes April 10 2024 04:58:46.
PathBrowser.pyo File 4486 bytes April 10 2024 04:58:46.
Percolator.py File 3222 bytes April 10 2024 04:58:35.
Percolator.pyc File 4608 bytes April 10 2024 04:58:46.
Percolator.pyo File 4424 bytes April 10 2024 04:58:43.
PyParse.py File 19510 bytes April 10 2024 04:58:35.
PyParse.pyc File 10005 bytes April 10 2024 04:58:46.
PyParse.pyo File 9567 bytes April 10 2024 04:58:43.
PyShell.py File 58862 bytes April 10 2024 04:58:35.
PyShell.pyc File 52826 bytes April 10 2024 04:58:46.
PyShell.pyo File 52724 bytes April 10 2024 04:58:43.
README.txt File 7890 bytes April 10 2024 04:58:35.
RemoteDebugger.py File 11632 bytes April 10 2024 04:58:35.
RemoteDebugger.pyc File 16325 bytes April 10 2024 04:58:46.
RemoteDebugger.pyo File 16171 bytes April 10 2024 04:58:43.
RemoteObjectBrowser.py File 942 bytes April 10 2024 04:58:35.
RemoteObjectBrowser.pyc File 2150 bytes April 10 2024 04:58:46.
RemoteObjectBrowser.pyo File 2150 bytes April 10 2024 04:58:46.
ReplaceDialog.py File 6639 bytes April 10 2024 04:58:35.
ReplaceDialog.pyc File 7756 bytes April 10 2024 04:58:46.
ReplaceDialog.pyo File 7756 bytes April 10 2024 04:58:46.
RstripExtension.py File 1050 bytes April 10 2024 04:58:35.
RstripExtension.pyc File 1613 bytes April 10 2024 04:58:46.
RstripExtension.pyo File 1613 bytes April 10 2024 04:58:46.
ScriptBinding.py File 8459 bytes April 10 2024 04:58:35.
ScriptBinding.pyc File 8201 bytes April 10 2024 04:58:46.
ScriptBinding.pyo File 8201 bytes April 10 2024 04:58:46.
ScrolledList.py File 4373 bytes April 10 2024 04:58:35.
ScrolledList.pyc File 6482 bytes April 10 2024 04:58:46.
ScrolledList.pyo File 6482 bytes April 10 2024 04:58:46.
SearchDialog.py File 2630 bytes April 10 2024 04:58:35.
SearchDialog.pyc File 3983 bytes April 10 2024 04:58:46.
SearchDialog.pyo File 3983 bytes April 10 2024 04:58:46.
SearchDialogBase.py File 7094 bytes April 10 2024 04:58:35.
SearchDialogBase.pyc File 8462 bytes April 10 2024 04:58:46.
SearchDialogBase.pyo File 8462 bytes April 10 2024 04:58:46.
SearchEngine.py File 7463 bytes April 10 2024 04:58:35.
SearchEngine.pyc File 8302 bytes April 10 2024 04:58:46.
SearchEngine.pyo File 8302 bytes April 10 2024 04:58:46.
StackViewer.py File 4431 bytes April 10 2024 04:58:35.
StackViewer.pyc File 6404 bytes April 10 2024 04:58:46.
StackViewer.pyo File 6404 bytes April 10 2024 04:58:46.
TODO.txt File 8478 bytes April 10 2024 04:58:35.
ToolTip.py File 3173 bytes April 10 2024 04:58:35.
ToolTip.pyc File 4669 bytes April 10 2024 04:58:46.
ToolTip.pyo File 4669 bytes April 10 2024 04:58:46.
TreeWidget.py File 15037 bytes April 10 2024 04:58:35.
TreeWidget.pyc File 17694 bytes April 10 2024 04:58:46.
TreeWidget.pyo File 17694 bytes April 10 2024 04:58:46.
UndoDelegator.py File 10787 bytes April 10 2024 04:58:35.
UndoDelegator.pyc File 13555 bytes April 10 2024 04:58:46.
UndoDelegator.pyo File 13555 bytes April 10 2024 04:58:46.
WidgetRedirector.py File 6906 bytes April 10 2024 04:58:35.
WidgetRedirector.pyc File 7769 bytes April 10 2024 04:58:46.
WidgetRedirector.pyo File 7769 bytes April 10 2024 04:58:46.
WindowList.py File 2473 bytes April 10 2024 04:58:35.
WindowList.pyc File 3636 bytes April 10 2024 04:58:46.
WindowList.pyo File 3636 bytes April 10 2024 04:58:46.
ZoomHeight.py File 1300 bytes April 10 2024 04:58:35.
ZoomHeight.pyc File 1646 bytes April 10 2024 04:58:46.
ZoomHeight.pyo File 1646 bytes April 10 2024 04:58:46.
__init__.py File 288 bytes April 10 2024 04:58:35.
__init__.pyc File 431 bytes April 10 2024 04:58:46.
__init__.pyo File 431 bytes April 10 2024 04:58:46.
aboutDialog.py File 7014 bytes April 10 2024 04:58:35.
aboutDialog.pyc File 6848 bytes April 10 2024 04:58:46.
aboutDialog.pyo File 6848 bytes April 10 2024 04:58:46.
config-extensions.def File 2965 bytes April 10 2024 04:58:35.
config-highlight.def File 2515 bytes April 10 2024 04:58:35.
config-keys.def File 7777 bytes April 10 2024 04:58:35.
config-main.def File 2561 bytes April 10 2024 04:58:35.
configDialog.py File 65958 bytes April 10 2024 04:58:35.
configDialog.pyc File 53291 bytes April 10 2024 04:58:46.
configDialog.pyo File 53291 bytes April 10 2024 04:58:46.
configHandler.py File 32485 bytes April 10 2024 04:58:35.
configHandler.pyc File 29361 bytes April 10 2024 04:58:46.
configHandler.pyo File 29361 bytes April 10 2024 04:58:46.
configHelpSourceEdit.py File 6686 bytes April 10 2024 04:58:35.
configHelpSourceEdit.pyc File 6595 bytes April 10 2024 04:58:46.
configHelpSourceEdit.pyo File 6595 bytes April 10 2024 04:58:46.
configSectionNameDialog.py File 4040 bytes April 10 2024 04:58:35.
configSectionNameDialog.pyc File 4419 bytes April 10 2024 04:58:46.
configSectionNameDialog.pyo File 4419 bytes April 10 2024 04:58:46.
dynOptionMenuWidget.py File 1984 bytes April 10 2024 04:58:35.
dynOptionMenuWidget.pyc File 2790 bytes April 10 2024 04:58:46.
dynOptionMenuWidget.pyo File 2790 bytes April 10 2024 04:58:46.
extend.txt File 3642 bytes April 10 2024 04:58:35.
help.html File 42414 bytes April 10 2024 04:58:35.
help.py File 11035 bytes April 10 2024 04:58:35.
help.pyc File 12270 bytes April 10 2024 04:58:46.
help.pyo File 12270 bytes April 10 2024 04:58:46.
help.txt File 12144 bytes April 10 2024 04:58:35.
idle.py File 453 bytes April 10 2024 04:58:35.
idle.pyc File 410 bytes April 10 2024 04:58:46.
idle.pyo File 410 bytes April 10 2024 04:58:46.
idle.pyw File 563 bytes April 10 2024 04:58:35.
idlever.py File 415 bytes April 10 2024 04:58:35.
idlever.pyc File 578 bytes April 10 2024 04:58:46.
idlever.pyo File 578 bytes April 10 2024 04:58:46.
keybindingDialog.py File 12468 bytes April 10 2024 04:58:35.
keybindingDialog.pyc File 12173 bytes April 10 2024 04:58:46.
keybindingDialog.pyo File 12173 bytes April 10 2024 04:58:46.
macosxSupport.py File 8435 bytes April 10 2024 04:58:35.
macosxSupport.pyc File 8351 bytes April 10 2024 04:58:46.
macosxSupport.pyo File 8213 bytes April 10 2024 04:58:43.
rpc.py File 20150 bytes April 10 2024 04:58:35.
rpc.pyc File 21728 bytes April 10 2024 04:58:46.
rpc.pyo File 21622 bytes April 10 2024 04:58:43.
run.py File 12917 bytes April 10 2024 04:58:35.
run.pyc File 13419 bytes April 10 2024 04:58:46.
run.pyo File 13361 bytes April 10 2024 04:58:43.
tabbedpages.py File 18439 bytes April 10 2024 04:58:35.
tabbedpages.pyc File 18561 bytes April 10 2024 04:58:46.
tabbedpages.pyo File 18561 bytes April 10 2024 04:58:46.
textView.py File 3520 bytes April 10 2024 04:58:35.
textView.pyc File 4025 bytes April 10 2024 04:58:46.
textView.pyo File 4025 bytes April 10 2024 04:58:46.

Reading File: //usr/lib64/python2.7/idlelib/configHandler.pyc

�
{fc@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-/usr/lib64/python2.7/idlelib/configHandler.pyRstInvalidConfigSetcBseZRS((RR(((s-/usr/lib64/python2.7/idlelib/configHandler.pyRstInvalidFgBgcBseZRS((RR(((s-/usr/lib64/python2.7/idlelib/configHandler.pyR	stInvalidThemecBseZRS((RR(((s-/usr/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-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pyt
GetOptionList>s
cCs|j|j�dS(s&Load the configuration file from disk.N(treadR
(R((s-/usr/lib64/python2.7/idlelib/configHandler.pytLoadEsN(	RRt__doc__tNoneRtFalseRR R"(((s-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pytRemoveEmptySectionsSscCs|j�|j�S(s9Return True if no sections after removing empty sections.(R+R)(R((s-/usr/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-/usr/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-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pytSave}s	

(
RRR#R(R+R,R.R2R7R>(((s-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pytCurrentThemewscCs|jddddd�S(s0Return the name of the currently active key set.R@tKeysR{RRz(Rd(R((s-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pyt<lambda>�Rz(
RFRERR RtfindR�tstripR�R�(	RRfthelpSourcesRgRRR1tmenuItemthelpPath((s-/usr/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-/usr/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-/usr/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-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pyR?�s8
				-			@		#	
					
			M	 				RJ(tcrc32icCs?t|�}td7at|jdd�t�at|�dS(Nitencodingsutf-8(tstrtlineR�tencodetcrcRX(tobjttxt((s-/usr/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-/usr/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-/usr/lib64/python2.7/idlelib/configHandler.pyt<module>s0'G��W			




SILENT KILLER Tool