AlkantarClanX12

Your IP : 13.58.207.196


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/idlelib/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/idlelib/__pycache__/configHandler.cpython-33.pyc

�
��f�rc@s@dZddlZddlZddlmZddlmZmZmZGdd�de	�Z
Gdd�de	�ZGd	d
�d
e	�ZGdd�de	�Z
Gd
d�de�ZGdd�de�ZGdd�d�Ze�Zedkr<dd�Zeej�eej�eejdjdd��ndS(u�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.

iN(u
macosxSupport(uConfigParseru
NoOptionErroruNoSectionErrorcBs|EeZdZdS(uInvalidConfigTypeN(u__name__u
__module__u__qualname__(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuInvalidConfigTypesuInvalidConfigTypecBs|EeZdZdS(uInvalidConfigSetN(u__name__u
__module__u__qualname__(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuInvalidConfigSetsuInvalidConfigSetcBs|EeZdZdS(uInvalidFgBgN(u__name__u
__module__u__qualname__(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuInvalidFgBgsuInvalidFgBgcBs|EeZdZdS(uInvalidThemeN(u__name__u
__module__u__qualname__(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuInvalidThemesuInvalidThemecBsV|EeZdZdZd
dd�Zd
d
ddd�Zdd�Zdd	�Z	d
S(uIdleConfParseruI
    A ConfigParser specialised for idle configuration file handling
    cCs&||_tj|d|dd�dS(uK
        cfgFile - string, fully specified configuration file name
        udefaultsustrictNF(ufileuConfigParseru__init__uFalse(uselfucfgFileucfgDefaults((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu__init__#s	uIdleConfParser.__init__cCsh|j||�s|S|dkr2|j||�S|dkrN|j||�S|j||d|�SdS(u
        Get an option value for given section/option or return default.
        If type is specified, return as type.
        ubooluinturawN(u
has_optionu
getbooleanugetintuget(uselfusectionuoptionutypeudefaulturaw((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGet*suIdleConfParser.GetcCs$|j|�r|j|�SgSdS(u6
        Get an option list for given section
        N(uhas_sectionuoptions(uselfusection((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
GetOptionList8s
uIdleConfParser.GetOptionListcCs|j|j�dS(u7
        Load the configuration file from disk
        N(ureadufile(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuLoadAsuIdleConfParser.LoadNF(
u__name__u
__module__u__qualname__u__doc__uNoneu__init__uFalseuGetu
GetOptionListuLoad(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuIdleConfParsers
	uIdleConfParsercBsn|EeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS(uIdleUserConfParseruG
    IdleConfigParser specialised for user configuration handling.
    cCs#|j|�s|j|�ndS(u2
        if section doesn't exist, add it
        N(uhas_sectionuadd_section(uselfusection((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
AddSectionLsuIdleUserConfParser.AddSectioncCs:x3|j�D]%}|j|�s
|j|�q
q
WdS(u:
        remove any sections that have no options
        N(usectionsu
GetOptionListuremove_section(uselfusection((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuRemoveEmptySectionsSsu&IdleUserConfParser.RemoveEmptySectionscCs"|j�|j�rdSdSdS(up
        Remove empty sections and then return 1 if parser has no sections
        left, else return 0.
        iiN(uRemoveEmptySectionsusections(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuIsEmpty[s
uIdleUserConfParser.IsEmptycCs#|j|�r|j||�SdS(ul
        If section/option exists, remove it.
        Returns 1 if option was removed, 0 otherwise.
        N(uhas_sectionu
remove_option(uselfusectionuoption((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuRemoveOptionfsuIdleUserConfParser.RemoveOptioncCs�|j||�rH|j||�|kr.dS|j|||�dSn6|j|�sg|j|�n|j|||�dSdS(u�
        Sets option to value, adding section if required.
        Returns 1 if option was added or changed, otherwise 0.
        iiN(u
has_optionugetusetuhas_sectionuadd_section(uselfusectionuoptionuvalue((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu	SetOptionnsuIdleUserConfParser.SetOptioncCs,tjj|j�r(tj|j�ndS(uF
        Removes the user config file from disk if it exists.
        N(uosupathuexistsufileuremove(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
RemoveFilesuIdleUserConfParser.RemoveFilecCs�|j�sv|j}yt|d�}Wn.tk
rXtj|�t|d�}YnX|�|j|�WdQXn
|j�dS(u�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.

        uwN(uIsEmptyufileuopenuOSErroruosuunlinkuwriteu
RemoveFile(uselfufnameucfgFile((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuSave�s	

uIdleUserConfParser.SaveN(u__name__u
__module__u__qualname__u__doc__u
AddSectionuRemoveEmptySectionsuIsEmptyuRemoveOptionu	SetOptionu
RemoveFileuSave(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuIdleUserConfParserGsuIdleUserConfParsercBsa|EeZdZdZdd�Zdd�Zdd�Zd4d4d5d6dd	�Z
d
d�Zdd
�Zd4dd�Z
dd�Zdd�Zdd�Zd5d6d6dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd4d*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4S(7uIdleConfu�
    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
    cCs3i|_i|_i|_|j�|j�dS(N(u
defaultCfguuserCfgucfguCreateConfigHandlersuLoadCfgFiles(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu__init__�s
			
uIdleConf.__init__cCs�tdkr!tjjt�}ntjjtjd�}|j�}d}i}i}xP|D]H}tjj|d|d�||<tjj|d|d	�||<q_Wx<|D]4}t	||�|j
|<t||�|j|<q�Wd
S(up
        set up a dictionary of config parsers for default and user
        configurations respectively
        u__main__iumainu
extensionsu	highlightukeysuconfig-u.defu.cfgN(umainu
extensionsu	highlightukeys(
u__name__uosupathudirnameu__file__uabspathusysu
GetUserCfgDirujoinuIdleConfParseru
defaultCfguIdleUserConfParseruuserCfg(uselfuidleDiruuserDiruconfigTypesudefCfgFilesuusrCfgFilesucfgType((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuCreateConfigHandlers�s
!%
uIdleConf.CreateConfigHandlerscCsd}tjjd�}|dkrytjj|�syd|d}ytjj|�Wntk
rlYnXd}qyn|dkr�tj�}ntjj	||�}tjj|�sytj
|�Wqtk
rd|d}tjj|�t�YqXn|S(ur
        Creates (if required) and returns a filesystem directory for storing
        user config files.

        u.idlercu~u.
 Warning: os.path.expanduser("~") points to
 u ,
 but the path does not exist.
u2
 Warning: unable to create user config directory
u)
 Check path and permissions.
 Exiting!

(uosupathu
expanduseruexistsusysustderruwriteuOSErrorugetcwdujoinumkdiru
SystemExit(uselfucfgDiruuserDiruwarn((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
GetUserCfgDir�s*

uIdleConf.GetUserCfgDirc	!CsKy@|j|j||�r?|j|j||d|d|�SWnjtk
r�d||||j|j||d|�f}ytjj|�Wntk
r�YnXYnXy@|j|j||�r�|j|j||d|d|�SWntk
rYnX|rGd|||f}ytjj|�WqGtk
rCYqGXn|S(uf
        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.

        utypeurawuv
 Warning: configHandler.py - IdleConf.GetOption -
 invalid %r value for configuration option %r
 from section %r: %r
u�
 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option %r
 from section %r.
 returning default value: %r
(	uuserCfgu
has_optionuGetu
ValueErrorusysustderruwriteuOSErroru
defaultCfg(	uselfu
configTypeusectionuoptionudefaultutypeuwarn_on_defaulturawuwarning((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu	GetOption�s6
	




uIdleConf.GetOptioncCs|j|j|||�dS(u>In user's config file, set section's option to value.
        N(uuserCfgu	SetOption(uselfu
configTypeusectionuoptionuvalue((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu	SetOptionsuIdleConf.SetOptioncCsi|d	krtd��n|dkr7|j|}n(|dkrS|j|}ntd��|j�S(
u�
        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')
        umainu
extensionsu	highlightukeysuInvalid configType specifieduuserudefaultuInvalid configSet specified(umainu
extensionsu	highlightukeys(uInvalidConfigTypeuuserCfgu
defaultCfguInvalidConfigSetusections(uselfu	configSetu
configTypeu	cfgParser((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetSectionListsuIdleConf.GetSectionListcCs�|jdj|�r+|jd|�}n|jd|�}||d}|dkrd|d}n||d}i|d6|d	6}|s�|S|d
kr�|dS|dkr�|d	Std��d
S(u$
        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.
        u	highlightudefaultuuseru-foregrounducursorunormal-backgroundu-backgroundu
foregroundu
backgroundufgubguInvalid fgBg specifiedN(u
defaultCfguhas_sectionuGetThemeDictuInvalidFgBg(uselfuthemeuelementufgBgu	themeDictuforeubacku	highlight((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetHighlight(s
uIdleConf.GetHighlightcCs�|dkr|jd}n(|dkr8|jd}ntd��idd6dd6dd	6dd
6dd6dd6dd
6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6dd"6}x�|D]�}|j||�sid#||||f}ytjj|�Wqitk
reYqiXn|j||d||�}|||<qW|S($uj
        type - string, 'default' or 'user' theme type
        themeName - string, theme name
        Returns a dictionary which holds {option:value} for each element
        in the specified theme. Values are loaded over a set of ultimate last
        fallback defaults to guarantee that all theme elements are present in
        a newly created theme.
        uuseru	highlightudefaultuInvalid theme type specifiedu#000000unormal-foregroundu#ffffffunormal-backgroundukeyword-foregroundukeyword-backgroundubuiltin-foregroundubuiltin-backgrounducomment-foregrounducomment-backgroundustring-foregroundustring-backgroundudefinition-foregroundudefinition-backgrounduhilite-foregroundugrayuhilite-backgroundubreak-foregroundubreak-backgrounduhit-foregrounduhit-backgrounduerror-foregrounduerror-backgrounducursor-foregroundustdout-foregroundustdout-backgroundustderr-foregroundustderr-backgrounduconsole-foregrounduconsole-backgroundu�
 Warning: configHandler.py - IdleConf.GetThemeDict -
 problem retrieving theme element %r
 from theme %r.
 returning default value: %r
(	uuserCfgu
defaultCfguInvalidThemeu
has_optionusysustderruwriteuOSErroruGet(uselfutypeu	themeNameu	cfgParseruthemeuelementuwarningucolour((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetThemeDictCsV	



uIdleConf.GetThemeDictcCs|jddddd�S(u@
        Returns the name of the currently active theme
        umainuThemeunameudefaultu(u	GetOption(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuCurrentTheme�suIdleConf.CurrentThemecCs|jddddd�S(uB
        Returns the name of the currently active key set
        umainuKeysunameudefaultu(u	GetOption(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuCurrentKeys�suIdleConf.CurrentKeysc	Cs|j|jdd��}|j|jdd��}x*|D]"}||kr=|j|�q=q=W|rg}x�|D]�}|jd|ddddd�rv|s�|r�|r�d}nd}|jd||ddddd	d�r|j|�qq|j|�qvqvW|S|Sd
S(
u�
        Gets a list of all idle extensions declared in the config files.
        active_only - boolean, if true only return active (enabled) extensions
        udefaultu
extensionsuuseruenableutypeuboolu
enable_editoruenable_shelluwarn_on_defaultNTF(uRemoveKeyBindNamesuGetSectionListuappendu	GetOptionuTrueuFalse(	uselfuactive_onlyueditor_onlyu
shell_onlyuextnsu	userExtnsuextnuactiveExtnsuoption((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
GetExtensions�s.

			uIdleConf.GetExtensionscCsu|}g}x6|D].}|jd�r|j|j|��qqW|j�|j�x|D]
}||=q`W|S(Nu	_bindingsu_cfgBindings(u	_bindingsu_cfgBindings(uendswithuappenduindexusortureverse(uselfuextnNameListunamesukbNameIndiciesunameuindex((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuRemoveKeyBindNames�s



uIdleConf.RemoveKeyBindNamescCsdd}d|d}xI|jdd�D]5}x,|j|�D]}||kr=|}q=q=Wq'W|S(u�
        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 '<< >>'
        u<<u>>uactive_onlyiN(uNoneu
GetExtensionsuGetExtensionKeys(uselfuvirtualEventuextNameuvEventuextnuevent((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetExtnNameForEvent�suIdleConf.GetExtnNameForEventc	Cs�|d}|j�}i}|jdj|�r~|jdj|�}x3|D](}d|d}||}|||<qOWn|S(u�
        returns a dictionary of the configurable keybindings for a particular
        extension,as they exist in the dictionary returned by GetCurrentKeySet;
        that is, where previously used bindings are disabled.
        u_cfgBindingsu
extensionsu<<u>>(uGetCurrentKeySetu
defaultCfguhas_sectionu
GetOptionList(	uselfu
extensionNameukeysNameu
activeKeysuextKeysu
eventNamesu	eventNameueventubinding((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetExtensionKeys�s


uIdleConf.GetExtensionKeyscCs�|d}i}|jdj|�r�|jdj|�}xJ|D]?}|jd||dd�j�}d|d}|||<qCWn|S(u�
        returns a dictionary of the configurable keybindings for a particular
        extension, as defined in the configuration files, or an empty dictionary
        if no bindings are found
        u_cfgBindingsu
extensionsudefaultuu<<u>>(u
defaultCfguhas_sectionu
GetOptionListu	GetOptionusplit(uselfu
extensionNameukeysNameuextKeysu
eventNamesu	eventNameubindinguevent((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu__GetRawExtensionKeys�s

uIdleConf.__GetRawExtensionKeyscCs�|d}|j|�}|jdj|�r�|jdj|�}xJ|D]?}|jd||dd�j�}d|d}|||<qLWn|S(u

        Returns a dictionary of all the event bindings for a particular
        extension. The configurable keybindings are returned as they exist in
        the dictionary returned by GetCurrentKeySet; that is, where re-used
        keybindings are disabled.
        u	_bindingsu
extensionsudefaultuu<<u>>(uGetExtensionKeysu
defaultCfguhas_sectionu
GetOptionListu	GetOptionusplit(uselfu
extensionNameu	bindsNameuextBindsu
eventNamesu	eventNameubindinguevent((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetExtensionBindings�s

uIdleConf.GetExtensionBindingscCs5|dd�}|jd||dd�j�}|S(u�
        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. '<<event>>'
        iukeysudefaultui����(u	GetOptionusplit(uselfu
keySetNameueventStru	eventNameubinding((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
GetKeyBindings!uIdleConf.GetKeyBindingcCsq|j|j��}tj�rmxI|j�D]8\}}dd�|D�}||kr.|||<q.q.Wn|S(NcSs"g|]}|jdd��qS(u<Alt-u<Option-(ureplace(u.0ux((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
<listcomp>s	u-IdleConf.GetCurrentKeySet.<locals>.<listcomp>(u	GetKeySetuCurrentKeysu
macosxSupporturunningAsOSXAppuitems(uselfuresultukuvuv2((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetCurrentKeySet
suIdleConf.GetCurrentKeySetcCs�|j|�}|jdd�}xh|D]`}|j|�}|r(xB|D]7}|||j�krsd||<n||||<qJWq(q(W|S(u�
        Returns a dictionary of: all requested core keybindings, plus the
        keybindings for all currently active extensions. If a binding defined
        in an extension is already in use, that binding is disabled.
        uactive_onlyiu(uGetCoreKeysu
GetExtensionsu_IdleConf__GetRawExtensionKeysuvalues(uselfu
keySetNameukeySetuactiveExtnsuextnuextKeysuevent((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu	GetKeySets


uIdleConf.GetKeySetcCsd|d|j�kS(u�
        returns true if the virtual event is bound in the core idle keybindings.
        virtualEvent - string, name of the virtual event to test for, without
                       the enclosing '<< >>'
        u<<u>>(uGetCoreKeys(uselfuvirtualEvent((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu
IsCoreBinding-suIdleConf.IsCoreBindingcCs�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�xv|D]k}|j||�}|r:|||<qdg||||f}ytjj|�Wqtk
ryYqXqWn|S(huZ
        returns the requested set of core keybindings, with fallbacks if
        required.
        Keybindings loaded 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.
        u<Control-c>u<Control-C>u<<copy>>u<Control-x>u<Control-X>u<<cut>>u<Control-v>u<Control-V>u	<<paste>>u<Control-a>u<Home>u<<beginning-of-line>>u<Control-l>u<<center-insert>>u<Control-q>u<<close-all-windows>>u<Alt-F4>u<<close-window>>u<<do-nothing>>u<Control-d>u<<end-of-file>>u<F1>u<<python-docs>>u
<Shift-F1>u<<python-context-help>>u<Alt-n>u<<history-next>>u<Alt-p>u<<history-previous>>u<<interrupt-execution>>u<F6>u<<view-restart>>u<Control-F6>u<<restart-shell>>u<Alt-c>u<<open-class-browser>>u<Alt-m>u<<open-module>>u<Control-n>u<<open-new-window>>u<Control-o>u<<open-window-from-file>>u<Control-j>u<<plain-newline-and-indent>>u<Control-p>u<<print-window>>u<Control-y>u<<redo>>u<Escape>u<<remove-selection>>u
<Alt-Shift-S>u<<save-copy-of-window-as-file>>u<Alt-s>u<<save-window-as-file>>u<Control-s>u<<save-window>>u<Alt-a>u<<select-all>>u<Control-slash>u<<toggle-auto-coloring>>u<Control-z>u<<undo>>u<Control-g>u<F3>u<<find-again>>u<Alt-F3>u<<find-in-files>>u<Control-F3>u<<find-selection>>u<Control-f>u<<find>>u<Control-h>u<<replace>>u<Alt-g>u
<<goto-line>>u<Key-BackSpace>u<<smart-backspace>>u<Key-Return>u<Key-KP_Enter>u<<newline-and-indent>>u	<Key-Tab>u<<smart-indent>>u<Control-Key-bracketright>u<<indent-region>>u<Control-Key-bracketleft>u<<dedent-region>>u<Alt-Key-3>u<<comment-region>>u<Alt-Key-4>u<<uncomment-region>>u<Alt-Key-5>u<<tabify-region>>u<Alt-Key-6>u<<untabify-region>>u<Alt-Key-t>u<<toggle-tabs>>u<Alt-Key-u>u<<change-indentwidth>>u<Control-Key-BackSpace>u<<del-word-left>>u<Control-Key-Delete>u<<del-word-right>>u�
 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event %r
 from key set %r.
 returning default value: %r
(u
GetKeyBindingusysustderruwriteuOSError(uselfu
keySetNameukeyBindingsueventubindinguwarning((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetCoreKeys5s|	



















































uIdleConf.GetCoreKeysc	Csg}|dkr"|jd}n(|dkr>|jd}ntd��|jd�}x�|D]�}|jd|dd�}|jd�d
kr�d}d}n/|jd�}|d	j�}|dj�}|r`|r`|j|||f�q`q`W|j	d
dd��|S(u�Fetch 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'.

        uuserumainudefaultuInvalid configSet specifiedu	HelpFilesu;iuiukeycSs|dS(Ni((ux((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu<lambda>�su1IdleConf.GetExtraHelpSourceList.<locals>.<lambda>i����(
uuserCfgu
defaultCfguInvalidConfigSetu
GetOptionListuGetufindusplitustripuappendusort(	uselfu	configSetuhelpSourcesu	cfgParseruoptionsuoptionuvalueumenuItemuhelpPath((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetExtraHelpSourceList�s&	
	uIdleConf.GetExtraHelpSourceListcCs |jd�|jd�}|S(u�
        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.
        udefaultuuser(uGetExtraHelpSourceList(uselfuallHelpSources((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuGetAllExtraHelpSourcesList�su#IdleConf.GetAllExtraHelpSourcesListcCs:x3|jD](}|j|j�|j|j�q
WdS(u/
        load all configuration files.
        N(u
defaultCfguLoaduuserCfg(uselfukey((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuLoadCfgFiles�suIdleConf.LoadCfgFilescCs)x"|jD]}|j|j�q
WdS(uH
        write all loaded user configuration files back to disk
        N(uuserCfguSave(uselfukey((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuSaveUserCfgFiles�suIdleConf.SaveUserCfgFilesNTF( u__name__u
__module__u__qualname__u__doc__u__init__uCreateConfigHandlersu
GetUserCfgDiruNoneuTrueuFalseu	GetOptionu	SetOptionuGetSectionListuGetHighlightuGetThemeDictuCurrentThemeuCurrentKeysu
GetExtensionsuRemoveKeyBindNamesuGetExtnNameForEventuGetExtensionKeysu_IdleConf__GetRawExtensionKeysuGetExtensionBindingsu
GetKeyBindinguGetCurrentKeySetu	GetKeySetu
IsCoreBindinguGetCoreKeysuGetExtraHelpSourceListuGetAllExtraHelpSourcesListuLoadCfgFilesuSaveUserCfgFiles(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyuIdleConf�s6
.@!
L
uIdleConfu__main__c	Cs�td|d�x�|D]�}||j�}t|�t|�xf|D]^}||j|�}t|�t|�x.|D]&}t|d||j||��q|WqHWqWdS(Nu
u=(uprintusectionsuoptionsuGet(ucfgukeyusectionsusectionuoptionsuoption((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyudumpCfg�s






udumpCfgumainuThemeuname(u__doc__uosusysuidlelibu
macosxSupportuconfigparseruConfigParseru
NoOptionErroruNoSectionErroru	ExceptionuInvalidConfigTypeuInvalidConfigSetuInvalidFgBguInvalidThemeuIdleConfParseruIdleUserConfParseruIdleConfuidleConfu__name__udumpCfgu
defaultCfguuserCfguprintuGet(((u:/opt/alt/python33/lib64/python3.3/idlelib/configHandler.pyu<module>s&(R��"