AlkantarClanX12

Your IP : 3.15.239.0


Current Path : /opt/alt/python27/lib64/python2.7/idlelib/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/idlelib/configHandler.pyo

�
^
bc@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