diff options
author | Steven M. Gava <elguavas@python.net> | 2002-01-04 03:06:08 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-01-04 03:06:08 (GMT) |
commit | c597640515a9ca3aa1807cc633b8d7bf2aa4a4e6 (patch) | |
tree | 88cef87efa339ddbac738d35639fa4857693a8bd /Lib/idlelib/configHandler.py | |
parent | 43c2de230d926bf3befc7dc55b51e7b37ee5a58f (diff) | |
download | cpython-c597640515a9ca3aa1807cc633b8d7bf2aa4a4e6.zip cpython-c597640515a9ca3aa1807cc633b8d7bf2aa4a4e6.tar.gz cpython-c597640515a9ca3aa1807cc633b8d7bf2aa4a4e6.tar.bz2 |
move core functionality of SearchBindings.py into EditorWindow.py proper
adjust configuration sources accordingly
move SearchBindings.py into the attic now
Diffstat (limited to 'Lib/idlelib/configHandler.py')
-rw-r--r-- | Lib/idlelib/configHandler.py | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py index b84fc4e..b761a1c 100644 --- a/Lib/idlelib/configHandler.py +++ b/Lib/idlelib/configHandler.py @@ -1,13 +1,13 @@ """ Provides access to stored idle configuration information. - -Throughout this module there is an emphasis on returning useable defaults if -there is a problem 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. """ +# 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. + import os import sys from ConfigParser import ConfigParser, NoOptionError, NoSectionError @@ -38,14 +38,6 @@ class IdleConfParser(ConfigParser): if self.has_option(section,option): #return getVal(section, option, raw, vars) return getVal(section, option) -# #the following handled in IdleConf.GetOption instead -# else: -# warning=('\n Warning: configHandler.py - IdleConfParser.Get -\n'+ -# ' problem retrieving configration option '+`option`+'\n'+ -# ' from section '+`section`+'.\n'+ -# ' returning default value: '+`default`+'\n') -# sys.stderr.write(warning) -# return default def GetOptionList(self,section): """ |