Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/configHandler.pyc |
hRc @ sB d Z d d k Z d d k Z d d k Z d d k Z d d k l Z l Z l Z d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ d f d YZ e Z e d j o? d Z e e i e e i e i d i d d GHn d S( 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. iN( t ConfigParsert NoOptionErrort NoSectionErrort InvalidConfigTypec B s e Z RS( ( t __name__t __module__( ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyR s t InvalidConfigSetc B s e Z RS( ( R R ( ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyR s t InvalidFgBgc B s e Z RS( ( R R ( ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyR s t InvalidThemec B s e Z RS( ( R R ( ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyR s t IdleConfParserc B s; e Z d Z d d Z d d d Z d Z d Z RS( sI A ConfigParser specialised for idle configuration file handling c C s | | _ t i | d | d S( sK cfgFile - string, fully specified configuration file name t defaultsN( t fileR t __init__( t selft cfgFilet cfgDefaults( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyR # s c C si | d j o | i } n$ | d j o | i } n | i } | i | | o | | | Sn | Sd S( s Get an option value for given section/option or return default. If type is specified, return as type. t boolt intN( t getbooleant getintt gett has_option( R t sectiont optiont typet defaultt getVal( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyt Get* s c C s) | i | o | i | Sn g Sd S( s6 Get an option list for given section N( t has_sectiont options( R R ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyt GetOptionList; s c C s | i | i d S( s7 Load the configuration file from disk N( t readR ( R ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyt LoadD s N( R R t __doc__t NoneR R R R ( ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyR s t IdleUserConfParserc B sM e Z d Z d Z d Z d Z d Z d Z d Z d Z RS( sG IdleConfigParser specialised for user configuration handling. c C s% | i | p | i | n d S( s2 if section doesn't exist, add it N( R t add_section( R R ( ( s1 /usr/local/lib/python2.5/idlelib/configHandler.pyt AddSectionO s c C s<