/usr/lib64/python2.6/idlelib
NameSizeModeActions
Icons/-0755rm
aboutDialog.py68250644editdlrm
aboutDialog.pyc69650644editdlrm
aboutDialog.pyo69650644editdlrm
AutoComplete.py90610644editdlrm
AutoComplete.pyc80230644editdlrm
AutoComplete.pyo80230644editdlrm
AutoCompleteWindow.py172010644editdlrm
AutoCompleteWindow.pyc125800644editdlrm
AutoCompleteWindow.pyo125170644editdlrm
AutoExpand.py24830644editdlrm
AutoExpand.pyc25870644editdlrm
AutoExpand.pyo25870644editdlrm
Bindings.py35020644editdlrm
Bindings.pyc50640644editdlrm
Bindings.pyo50640644editdlrm
CallTips.py76080644editdlrm
CallTips.pyc102870644editdlrm
CallTips.pyo102870644editdlrm
CallTipWindow.py59240644editdlrm
CallTipWindow.pyc62170644editdlrm
CallTipWindow.pyo62170644editdlrm
ChangeLog563930644editdlrm
ClassBrowser.py63690644editdlrm
ClassBrowser.pyc92200644editdlrm
ClassBrowser.pyo92200644editdlrm
CodeContext.py83470644editdlrm
CodeContext.pyc67330644editdlrm
CodeContext.pyo66870644editdlrm
ColorDelegator.py101500644editdlrm
ColorDelegator.pyc89760644editdlrm
ColorDelegator.pyo89760644editdlrm
config-extensions.def26970644editdlrm
config-highlight.def17400644editdlrm
config-keys.def75170644editdlrm
config-main.def25120644editdlrm
configDialog.py532290644editdlrm
configDialog.pyc449860644editdlrm
configDialog.pyo449860644editdlrm
configHandler.py288030644editdlrm
configHandler.pyc273600644editdlrm
configHandler.pyo273600644editdlrm
configHelpSourceEdit.py66800644editdlrm
configHelpSourceEdit.pyc67510644editdlrm
configHelpSourceEdit.pyo67510644editdlrm
configSectionNameDialog.py37200644editdlrm
configSectionNameDialog.pyc43210644editdlrm
configSectionNameDialog.pyo43210644editdlrm
CREDITS.txt18560644editdlrm
Debugger.py158180644editdlrm
Debugger.pyc170740644editdlrm
Debugger.pyo170740644editdlrm
Delegator.py8310644editdlrm
Delegator.pyc16230644editdlrm
Delegator.pyo16230644editdlrm
dynOptionMenuWidget.py13020644editdlrm
dynOptionMenuWidget.pyc17070644editdlrm
dynOptionMenuWidget.pyo17070644editdlrm
EditorWindow.py597340644editdlrm
EditorWindow.pyc530070644editdlrm
EditorWindow.pyo529040644editdlrm
extend.txt36520644editdlrm
FileList.py36600644editdlrm
FileList.pyc40100644editdlrm
FileList.pyo39750644editdlrm
FormatParagraph.py57340644editdlrm
FormatParagraph.pyc48270644editdlrm
FormatParagraph.pyo48270644editdlrm
GrepDialog.py40520644editdlrm
GrepDialog.pyc50610644editdlrm
GrepDialog.pyo50610644editdlrm
help.txt112230644editdlrm
HISTORY.txt103170644editdlrm
HyperParser.py103100644editdlrm
HyperParser.pyc66400644editdlrm
HyperParser.pyo66400644editdlrm
idle.py6640644editdlrm
idle.pyc5960644editdlrm
idle.pyo5960644editdlrm
idle.pyw6640644editdlrm
IdleHistory.py31450644editdlrm
IdleHistory.pyc32310644editdlrm
IdleHistory.pyo32310644editdlrm
idlever.py230644editdlrm
idlever.pyc1590644editdlrm
idlever.pyo1590644editdlrm
IOBinding.py209720644editdlrm
IOBinding.pyc177910644editdlrm
IOBinding.pyo177910644editdlrm
keybindingDialog.py124070644editdlrm
keybindingDialog.pyc124160644editdlrm
keybindingDialog.pyo124160644editdlrm
macosxSupport.py47240644editdlrm
macosxSupport.pyc48860644editdlrm
macosxSupport.pyo48860644editdlrm
MultiCall.py174700644editdlrm
MultiCall.pyc162080644editdlrm
MultiCall.pyo161320644editdlrm
MultiStatusBar.py7890644editdlrm
MultiStatusBar.pyc15480644editdlrm
MultiStatusBar.pyo15480644editdlrm
NEWS.txt271650644editdlrm
ObjectBrowser.py41560644editdlrm
ObjectBrowser.pyc67470644editdlrm
ObjectBrowser.pyo67470644editdlrm
OutputWindow.py43920644editdlrm
OutputWindow.pyc50200644editdlrm
OutputWindow.pyo50200644editdlrm
ParenMatch.py66270644editdlrm
ParenMatch.pyc70070644editdlrm
ParenMatch.pyo70070644editdlrm
PathBrowser.py26460644editdlrm
PathBrowser.pyc41650644editdlrm
PathBrowser.pyo41650644editdlrm
Percolator.py26160644editdlrm
Percolator.pyc36600644editdlrm
Percolator.pyo34660644editdlrm
PyParse.py195100644editdlrm
PyParse.pyc102130644editdlrm
PyParse.pyo97450644editdlrm
PyShell.py519090644editdlrm
PyShell.pyc466880644editdlrm
PyShell.pyo465870644editdlrm
README.txt26230644editdlrm
RemoteDebugger.py116600644editdlrm
RemoteDebugger.pyc164140644editdlrm
RemoteDebugger.pyo162590644editdlrm
RemoteObjectBrowser.py9420644editdlrm
RemoteObjectBrowser.pyc21670644editdlrm
RemoteObjectBrowser.pyo21670644editdlrm
ReplaceDialog.py51340644editdlrm
ReplaceDialog.pyc59840644editdlrm
ReplaceDialog.pyo59840644editdlrm
rpc.py202150644editdlrm
rpc.pyc219370644editdlrm
rpc.pyo218270644editdlrm
run.py113370644editdlrm
run.pyc122140644editdlrm
run.pyo122140644editdlrm
ScriptBinding.py77830644editdlrm
ScriptBinding.pyc76070644editdlrm
ScriptBinding.pyo76070644editdlrm
ScrolledList.py39950644editdlrm
ScrolledList.pyc61930644editdlrm
ScrolledList.pyo61930644editdlrm
SearchDialog.py20400644editdlrm
SearchDialog.pyc30260644editdlrm
SearchDialog.pyo30260644editdlrm
SearchDialogBase.py43850644editdlrm
SearchDialogBase.pyc55180644editdlrm
SearchDialogBase.pyo55180644editdlrm
SearchEngine.py67310644editdlrm
SearchEngine.pyc72570644editdlrm
SearchEngine.pyo72570644editdlrm
StackViewer.py38570644editdlrm
StackViewer.pyc59580644editdlrm
StackViewer.pyo59580644editdlrm
tabbedpages.py181880644editdlrm
tabbedpages.pyc181630644editdlrm
tabbedpages.pyo181630644editdlrm
textView.py32460644editdlrm
textView.pyc39830644editdlrm
textView.pyo39830644editdlrm
TODO.txt84780644editdlrm
ToolTip.py27360644editdlrm
ToolTip.pyc41600644editdlrm
ToolTip.pyo41600644editdlrm
TreeWidget.py152370644editdlrm
TreeWidget.pyc180140644editdlrm
TreeWidget.pyo180140644editdlrm
UndoDelegator.py102770644editdlrm
UndoDelegator.pyc126460644editdlrm
UndoDelegator.pyo126460644editdlrm
WidgetRedirector.py44760644editdlrm
WidgetRedirector.pyc53660644editdlrm
WidgetRedirector.pyo53660644editdlrm
WindowList.py24730644editdlrm
WindowList.pyc36540644editdlrm
WindowList.pyo36540644editdlrm
ZoomHeight.py13070644editdlrm
ZoomHeight.pyc16610644editdlrm
ZoomHeight.pyo16610644editdlrm
__init__.py370644editdlrm
__init__.pyc1270644editdlrm
__init__.pyo1270644editdlrm
Edit: /usr/lib64/python2.6/idlelib/configHandler.pyc (27360B)
gc@sFdZddkZddkZddkZddklZddklZlZlZde fdYZ de fdYZ d e fd YZ d e fd YZ d efdYZdefdYZdfdYZeZedjo?dZeeieeieididdGHndS(sProvides 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. iN(t macosxSupport(t ConfigParsert NoOptionErrortNoSectionErrortInvalidConfigTypecBseZRS((t__name__t __module__(((s-/usr/lib64/python2.6/idlelib/configHandler.pyRstInvalidConfigSetcBseZRS((RR(((s-/usr/lib64/python2.6/idlelib/configHandler.pyRst InvalidFgBgcBseZRS((RR(((s-/usr/lib64/python2.6/idlelib/configHandler.pyRst InvalidThemecBseZRS((RR(((s-/usr/lib64/python2.6/idlelib/configHandler.pyR stIdleConfParsercBs>eZdZddZddedZdZdZRS(sI A ConfigParser specialised for idle configuration file handling cCs ||_ti|d|dS(sK cfgFile - string, fully specified configuration file name tdefaultsN(tfileRt__init__(tselftcfgFilet cfgDefaults((s-/usr/lib64/python2.6/idlelib/configHandler.pyR #s cCsn|i||p|S|djo|i||S|djo|i||S|i||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.6/idlelib/configHandler.pytGet*s  cCs&|i|o|i|SgSdS(s6 Get an option list for given section N(t has_sectiontoptions(RR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt GetOptionList8scCs|i|idS(s7 Load the configuration file from disk N(treadR (R((s-/usr/lib64/python2.6/idlelib/configHandler.pytLoadAsN( RRt__doc__tNoneR tFalseRRR!(((s-/usr/lib64/python2.6/idlelib/configHandler.pyR s   tIdleUserConfParsercBsMeZdZdZdZdZdZdZdZdZ RS(sG IdleConfigParser specialised for user configuration handling. cCs%|i|p|i|ndS(s2 if section doesn't exist, add it N(Rt add_section(RR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt AddSectionLscCs<x5|iD]'}|i|p|i|q q WdS(s: remove any sections that have no options N(tsectionsRtremove_section(RR((s-/usr/lib64/python2.6/idlelib/configHandler.pytRemoveEmptySectionsSs cCs$|i|iodSdSdS(sp Remove empty sections and then return 1 if parser has no sections left, else return 0. iiN(R*R((R((s-/usr/lib64/python2.6/idlelib/configHandler.pytIsEmpty[s  cCs%|i|o|i||SdS(sl If section/option exists, remove it. Returns 1 if option was removed, 0 otherwise. N(Rt remove_option(RRR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt RemoveOptionfscCs|i||o9|i|||jodS|i|||dSn9|i|p|i|n|i|||dSdS(s Sets option to value, adding section if required. Returns 1 if option was added or changed, otherwise 0. iiN(RRtsetRR&(RRRtvalue((s-/usr/lib64/python2.6/idlelib/configHandler.pyt SetOptionnscCs.tii|ioti|indS(sF Removes the user config file from disk if it exists. N(tostpathtexistsR tremove(R((s-/usr/lib64/python2.6/idlelib/configHandler.pyt RemoveFilescCsz|ip_|i}yt|d}Wn/tj o#ti|t|d}nX|i|n |idS(sUpdate 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 topentIOErrorR1tunlinktwriteR5(RtfnameR((s-/usr/lib64/python2.6/idlelib/configHandler.pytSaves   ( RRR"R'R*R+R-R0R5R<(((s-/usr/lib64/python2.6/idlelib/configHandler.pyR%Gs     tIdleConfcBs eZdZdZdZdZddeedZ dZ dZ ddZ dZ d Zd Zeeed Zd Zd ZdZdZdZdZdZdZdZddZdZdZdZdZRS(s holds config parsers for all idle config files: default config files (idle install dir)/config-main.def (idle install dir)/config-extensions.def (idle install dir)/config-highlight.def (idle install dir)/config-keys.def user config files (user home dir)/.idlerc/config-main.cfg (user home dir)/.idlerc/config-extensions.cfg (user home dir)/.idlerc/config-highlight.cfg (user home dir)/.idlerc/config-keys.cfg cCs3h|_h|_h|_|i|idS(N(t defaultCfgtuserCfgtcfgtCreateConfigHandlerst LoadCfgFiles(R((s-/usr/lib64/python2.6/idlelib/configHandler.pyR s     cCstdjotiit}ntiitid}|i}d }h}h}xP|D]H}tii|d|d||R%R?(RtidleDirtuserDirt configTypest defCfgFilest usrCfgFilestcfgType((s-/usr/lib64/python2.6/idlelib/configHandler.pyRAs  !%c Csd}tiid}|djoYtii|pBd|d}ytii|Wntj onXd}q~n|djoti}ntii ||}tii|pUyti |Wqt tfj o+d|d}tii|t qXn|S(sr Creates (if required) and returns a filesystem directory for storing user config files. s.idlerct~s. Warning: os.path.expanduser("~") points to s , but the path does not exist. s2 Warning: unable to create user config directory s) Check path and permissions. Exiting! ( R1R2t expanduserR3RKtstderrR:R8tgetcwdRMtmkdirtOSErrort SystemExit(RtcfgDirROtwarn((s-/usr/lib64/python2.6/idlelib/configHandler.pyRLs*  c Cs|i|i||o$|i|i||d|d|S|i|i||o$|i|i||d|d|S|oAd|||f}ytii|Wqtj oqXn|SdS(sf Get an option value for given config type and given general configuration section/option or return a default. If type is specified, return as type. Firstly the user configuration is checked, with a fallback to the default configuration, and a final 'catch all' fallback to a useable passed-in default if the option isn't present in either the user or the default configuration. configType must be one of ('main','extensions','highlight','keys') If a default is returned, and warn_on_default is True, a warning is printed to stderr. RRs Warning: configHandler.py - IdleConf.GetOption - problem retrieving configration option %r from section %r. returning default value: %r N(R?RRR>RKRVR:R8( Rt configTypeRRRRtwarn_on_defaultRtwarning((s-/usr/lib64/python2.6/idlelib/configHandler.pyt GetOptions cCs|i|i|||dS(s?In user's config file, set section's option to value. N(R?R0(RR]RRR/((s-/usr/lib64/python2.6/idlelib/configHandler.pyR0scCsi|d jo tdn|djo|i|}n(|djo|i|}n td|iS( s Get a list of sections from either the user or default config for the given config type. configSet must be either 'user' or 'default' configType must be one of ('main','extensions','highlight','keys') RDRERFRGsInvalid configType specifiedtuserRsInvalid configSet specified(smains extensionss highlightskeys(RR?R>RR((Rt configSetR]t cfgParser((s-/usr/lib64/python2.6/idlelib/configHandler.pytGetSectionList s     cCs|idi|o|id|}n|id|}||d}|djo|d}n||d}h|d6|d 6}|p|S|d jo |dS|d jo |d Std d S(s$ return individual highlighting theme elements. fgBg - string ('fg'or'bg') or None, if None return a dictionary containing fg and bg colours (appropriate for passing to Tkinter in, e.g., a tag_config call), otherwise fg or bg colour only as specified. RFRRas -foregroundtcursorsnormal-backgrounds -backgroundt foregroundt backgroundtfgtbgsInvalid fgBg specifiedN(R>Rt GetThemeDictR(RtthemetelementtfgBgt themeDicttforetbackRF((s-/usr/lib64/python2.6/idlelib/configHandler.pyt GetHighlights     c Cs|djo|id}n(|djo|id}n tdhdd6dd6dd 6dd 6dd 6dd 6dd 6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6dd"6}x|iD]}|i||pEd#||||f}ytii|Wqstj oqsXn|i ||d||}|||R RGRRKRVR:R8R(RRt themeNameRcRkRlR_tcolour((s-/usr/lib64/python2.6/idlelib/configHandler.pyRj5sX       cCs|idddddS(s@ Returns the name of the currently active theme RDtThemetnameRt(R`(R((s-/usr/lib64/python2.6/idlelib/configHandler.pyt CurrentThemeuscCs|idddddS(sB Returns the name of the currently active key set RDtKeysRvRRw(R`(R((s-/usr/lib64/python2.6/idlelib/configHandler.pyt CurrentKeys{sc Cs%|i|idd}|i|idd}x,|D]$}||jo|i|q=q=W|og}x|D]}|id|ddtddos|p|oT|o d}nd}|id||dtddd to|i|qq|i|qyqyW|S|Sd S( s Gets a list of all idle extensions declared in the config files. active_only - boolean, if true only return active (enabled) extensions RRERatenableRRt enable_editort enable_shellR^N(tRemoveKeyBindNamesRdtappendR`tTrueR$( Rt active_onlyt editor_onlyt shell_onlytextnst userExtnstextnt activeExtnsR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt GetExtensionss2     cCsw|}g}x8|D]0}|ido|i|i|qqW|i|ix|D] }||=qbW|S(Nt _bindingst _cfgBindings(RR(tendswithRtindextsorttreverse(Rt extnNameListtnamestkbNameIndiciesRvR((s-/usr/lib64/python2.6/idlelib/configHandler.pyR~s   cCsld}d|d}xQ|iddD]=}x4|i|iD]}||jo |}qCqCWq'W|S(s Returns the name of the extension that virtualEvent is bound in, or None if not bound in any extension. virtualEvent - string, name of the virtual event to test for, without the enclosing '<< >>' s<>RiN(R#RtGetExtensionKeysRG(Rt virtualEventtextNametvEventRtevent((s-/usr/lib64/python2.6/idlelib/configHandler.pytGetExtnNameForEvents c Cs|d}|i}h}|idi|oM|idi|}x4|D](}d|d}||}|||>(tGetCurrentKeySetR>RR( Rt extensionNametkeysNamet activeKeystextKeyst eventNamest eventNameRtbinding((s-/usr/lib64/python2.6/idlelib/configHandler.pyRs   cCs|d}h}|idi|od|idi|}xK|D]?}|id||ddi}d|d}|||>(R>RRR`tsplit(RRRRRRRR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt__GetRawExtensionKeyss  cCs|d}|i|}|idi|od|idi|}xK|D]?}|id||ddi}d|d}|||>(RR>RRR`R(RRt bindsNametextBindsRRRR((s-/usr/lib64/python2.6/idlelib/configHandler.pytGetExtensionBindingss  cCs2|dd!}|id||ddi}|S(s returns the keybinding for a specific event. keySetName - string, name of key binding set eventStr - string, the virtual event we want the binding for, represented as a string, eg. '<>' iiRGRRw(R`R(Rt keySetNameteventStrRR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt GetKeyBindings !cCs|i|i}tioixf|iD]T\}}g}|D]}||iddqF~}||jo|||>' s<>(RRG(RR((s-/usr/lib64/python2.6/idlelib/configHandler.pyt IsCoreBindingscCsh1ddgd6ddgd6ddgd 6d d gd 6d gd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd6dgd 6d!gd"6d#gd$6d%gd&6d'gd(6d)gd*6d+gd,6d-gd.6d/gd06d1gd26d3gd46d5gd66d7gd86d9gd:6d;gd<6d=gd>6d?d@gdA6dBgdC6dDgdE6dFgdG6dHgdI6dJgdK6dLgdM6dNgdO6dPgdQ6dRgdS6dTgdU6dVgdW6dXgdY6dZgd[6d\gd]6d^gd_6d`gda6dbgdc6ddgde6}|ox|iD]n}|i||}|o|||s s<>s s s<>s s s <>s ss<>s s<>s s<>ss<>s<>s s<>ss<>s s<>ss<>ss<>s<>ss<>s s<>ss<>ss<>s s<>s s<>s s<>s s<>s s<>ss<>s s<>ss<>s s<>ss<>ss<>s s<>s ss<>ss<>s s<>s s<>s s <>ss <>ss<>s s<>s s<>ss<>ss<>s s<>s s<>s s<>s s<>s s<>s s<>ss<>ss<>s Warning: configHandler.py - IdleConf.GetCoreKeys - problem retrieving key binding for event %r from key set %r. returning default value: %r (RGRRKRVR:R8(RRt keyBindingsRRR_((s-/usr/lib64/python2.6/idlelib/configHandler.pyR's~                                                    c Csg}|djo|id}n(|djo|id}n td|id}x|D]}|id|dd}|iddjod}d}n3ti|d}|d i}|d i}|o!|o|i |||fqaqaW|i d d |S( sFetch 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'. RaRDRsInvalid configSet specifiedt HelpFilest;iRwiitkeycSst|dS(i(R(R((s-/usr/lib64/python2.6/idlelib/configHandler.pyts( R?R>RRRtfindtstringRtstripRR( RRbt helpSourcesRcRRR/tmenuItemthelpPath((s-/usr/lib64/python2.6/idlelib/configHandler.pytGetExtraHelpSourceListts(     cCs |id|id}|S(s Returns a list of tuples containing the details of all additional help sources configured, or an empty list if there are none. Tuples are of the format returned by GetExtraHelpSourceList. RRa(R(RtallHelpSources((s-/usr/lib64/python2.6/idlelib/configHandler.pytGetAllExtraHelpSourcesLists cCs@x9|iiD](}|i|i|i|iqWdS(s/ load all configuration files. N(R>RGR!R?(RR((s-/usr/lib64/python2.6/idlelib/configHandler.pyRBscCs/x(|iiD]}|i|iqWdS(sH write all loaded user configuration files back to disk N(R?RGR<(RR((s-/usr/lib64/python2.6/idlelib/configHandler.pytSaveUserCfgFilessN(RRR"R RARLR#RR$R`R0RdRqRjRxRzRR~RRRRRRRRRRRRBR(((s-/usr/lib64/python2.6/idlelib/configHandler.pyR=s6        @  !        M RCcCsdG|GdGHx|iD]|}||i}|GH|GHxY|D]Q}||i|}|GH|GHx+|D]#}|GdG||i||GHqkWqAWqWdS(Ns t=(RGR(RR(R@RR(RRR((s-/usr/lib64/python2.6/idlelib/configHandler.pytdumpCfgs  RDRuRv(R"R1RKRtidlelibRRRRt ExceptionRRRR R R%R=tidleConfRRR>R?R(((s-/usr/lib64/python2.6/idlelib/configHandler.pyts(   (Q