GIF89a; EcchiShell v1.0
//usr/lib64/lib64/python2.7/idlelib/

R%R?(RtidleDirtuserDirt configTypest defCfgFilest usrCfgFilestcfgType((s-/usr/lib64/python2.7/idlelib/configHandler.pyRAs   !% cCsd}tjjd}|dkrxtjj|sxd|d}ytjj|Wntk rknXd}qxn|dkrtj}ntjj ||}tjj|s ytj |Wq t tfk rd|d}tjj|t q Xn|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.7/idlelib/configHandler.pyRLs*     c CsGy@|j|j||r?|j|j||d|d|SWnhtk rd||||j|j||d|f}ytjj|Wqtk rqXnXy@|j|j||r|j|j||d|d|SWntk rnX|rCd|||f}ytjj|WqCtk r?qCXn|S(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. RRsv Warning: configHandler.py - IdleConf.GetOption - invalid %r value for configuration option %r from section %r: %r s Warning: configHandler.py - IdleConf.GetOption - problem retrieving configuration option %r from section %r. returning default value: %r ( R?RRt ValueErrorRKRVR:R8R>( Rt configTypeRRRRtwarn_on_defaultRtwarning((s-/usr/lib64/python2.7/idlelib/configHandler.pyt GetOptions6      cCs|j|j|||dS(s?In user's config file, set section's option to value. N(R?R0(RR^RRR/((s-/usr/lib64/python2.7/idlelib/configHandler.pyR0scCsc|d krtdn|dkr4|j|}n%|dkrP|j|}n td|jS( 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.7/idlelib/configHandler.pytGetSectionLists     cCs|jdj|r+|jd|}n|jd|}||d}|dkrd|d}n||d}i|d6|d 6}|s|S|d kr|dS|d kr|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. RFRRbs -foregroundtcursorsnormal-backgrounds -backgroundt foregroundt backgroundtfgtbgsInvalid fgBg specifiedN(R>Rt GetThemeDictR(RtthemetelementtfgBgt themeDicttforetbackRF((s-/usr/lib64/python2.7/idlelib/configHandler.pyt GetHighlight)s    cCs|dkr|jd}n%|dkr8|jd}n tdidd6dd6dd 6dd 6dd 6dd 6dd 6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6dd"6}x|jD]}|j||skd#||||f}ytjj|Wqktk rgqkXn|j ||d||}|||R RGRRKRVR:R8R(RRt themeNameRdRlRmR`tcolour((s-/usr/lib64/python2.7/idlelib/configHandler.pyRkDsV      cCs|jdddddS(s@ Returns the name of the currently active theme RDtThemetnameRt(Ra(R((s-/usr/lib64/python2.7/idlelib/configHandler.pyt CurrentThemescCs|jdddddS(sB Returns the name of the currently active key set RDtKeysRwRRx(Ra(R((s-/usr/lib64/python2.7/idlelib/configHandler.pyt CurrentKeyssc Cs|j|jdd}|j|jdd}x*|D]"}||kr=|j|q=q=W|rg}x|D]}|jd|ddtddrv|s|r|rd}nd}|jd||dtddd tr|j|qq|j|qvqvW|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 RRERbtenableRRt enable_editort enable_shellR_N(tRemoveKeyBindNamesRetappendRatTrueR$( Rt active_onlyt editor_onlyt shell_onlytextnst userExtnstextnt activeExtnsR((s-/usr/lib64/python2.7/idlelib/configHandler.pyt GetExtensionss.        cCsu|}g}x6|D].}|jdr|j|j|qqW|j|jx|D] }||=q`W|S(Nt _bindingst _cfgBindings(RR(tendswithRtindextsorttreverse(Rt extnNameListtnamestkbNameIndiciesRwR((s-/usr/lib64/python2.7/idlelib/configHandler.pyRs     cCsjd}d|d}xO|jddD];}x2|j|jD]}||krC|}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.7/idlelib/configHandler.pytGetExtnNameForEvents c Cs|d}|j}i}|jdj|r~|jdj|}x3|D](}d|d}||}|||>(tGetCurrentKeySetR>RR( Rt extensionNametkeysNamet activeKeystextKeyst eventNamest eventNameRtbinding((s-/usr/lib64/python2.7/idlelib/configHandler.pyRs    cCs|d}i}|jdj|r|jdj|}xJ|D]?}|jd||ddj}d|d}|||>(R>RRRatsplit(RRRRRRRR((s-/usr/lib64/python2.7/idlelib/configHandler.pyt__GetRawExtensionKeyss   cCs|d}|j|}|jdj|r|jdj|}xJ|D]?}|jd||ddj}d|d}|||>(RR>RRRaR(RRt bindsNametextBindsRRRR((s-/usr/lib64/python2.7/idlelib/configHandler.pytGetExtensionBindingss   cCs2|dd!}|jd||ddj}|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. '<>' iiRGRRx(RaR(Rt keySetNameteventStrRR((s-/usr/lib64/python2.7/idlelib/configHandler.pyt GetKeyBindings !cCs|j|j}tjrx[|jD]J\}}g|D]}|jdd^qA}||kr.|||>' s<>(RRG(RR((s-/usr/lib64/python2.7/idlelib/configHandler.pyt IsCoreBinding.scCsi1ddgd6ddgd6ddgd 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@gdA6dBgdC6dDgdE6dFgdG6dHgdI6dJgdK6dLgdM6dNdOgdP6dQgdR6dSgdT6dUgdV6dWgdX6dYgdZ6d[gd\6d]gd^6d_gd`6dagdb6dcgdd6degdf6}|rx{|jD]j}|j||}|r@|||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 ss<>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.7/idlelib/configHandler.pyR6s|                                                     c Csg}|dkr"|jd}n%|dkr>|jd}n td|jd}x|D]}|jd|dd}|jddkrd}d}n2tj|d}|d j}|d j}|r]|r]|j |||fq]q]W|j 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'. RbRDRsInvalid configSet specifiedt HelpFilest;iRxiitkeycSst|dS(Ni(R(R((s-/usr/lib64/python2.7/idlelib/configHandler.pyts( R?R>RRRtfindtstringRtstripRR( RRct helpSourcesRdRRR/tmenuItemthelpPath((s-/usr/lib64/python2.7/idlelib/configHandler.pytGetExtraHelpSourceLists&       cCs |jd|jd}|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. RRb(R(RtallHelpSources((s-/usr/lib64/python2.7/idlelib/configHandler.pytGetAllExtraHelpSourcesLists cCs@x9|jjD](}|j|j|j|jqWdS(s/ load all configuration files. N(R>RGR!R?(RR((s-/usr/lib64/python2.7/idlelib/configHandler.pyRBscCs/x(|jjD]}|j|jqWdS(sH write all loaded user configuration files back to disk N(R?RGR<(RR((s-/usr/lib64/python2.7/idlelib/configHandler.pytSaveUserCfgFilessN(RRR"R RARLR#RR$RaR0ReRrRkRyR{RRRRRRRRRRRRRRBR(((s-/usr/lib64/python2.7/idlelib/configHandler.pyR=s6    /    @  !        M RCcCsdG|GdGHx|jD]|}||j}|GH|GHxY|D]Q}||j|}|GH|GHx+|D]#}|GdG||j||GHqkWqAWqWdS(Ns t=(RGR(RR(R@RR(RRR((s-/usr/lib64/python2.7/idlelib/configHandler.pytdumpCfgs   RDRvRw(R"R1RKRtidlelibRRRRt ExceptionRRRR R R%R=tidleConfRRR>R?R(((s-/usr/lib64/python2.7/idlelib/configHandler.pyts(   (Q&