From: David G. <go...@us...> - 2004-09-09 21:20:19
|
Update of /cvsroot/docutils/docutils/docutils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11291 Modified Files: frontend.py Log Message: typo Index: frontend.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/frontend.py,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- frontend.py 24 Jul 2004 14:13:38 -0000 1.64 +++ frontend.py 9 Sep 2004 21:20:09 -0000 1.65 @@ -358,7 +358,7 @@ ('Specify the text encoding for output. Default is UTF-8. ' 'Optionally also specify the error handler for unencodable ' 'characters, after a colon (":"); default is "strict". (See ' - '"--output-encoding-error-encoding".)', + '"--output-encoding-error-handler".)', ['--output-encoding', '-o'], {'metavar': '<name[:handler]>', 'default': 'utf-8', 'validator': validate_encoding_and_error_handler}), @@ -372,7 +372,7 @@ ('Specify the text encoding for error output. Default is ASCII. ' 'Optionally also specify the error handler for unencodable ' 'characters, after a colon (":"); default is "%s". (See ' - '"--output-encoding-error-encoding".' + '"--output-encoding-error-handler".' % default_error_encoding_error_handler, ['--error-encoding', '-e'], {'metavar': '<name[:handler]>', 'default': 'ascii', @@ -637,6 +637,22 @@ section_dict[option] = self.get(section, option, raw=1) return section_dict + def set(self, section, option, value): + """ + Set an option. + + Overrides stdlib ConfigParser's set() method to allow non-string + values. Required for compatibility with Python 2.4. + """ + if not section or section == CP.DEFAULTSECT: + sectdict = self._defaults + else: + try: + sectdict = self._sections[section] + except KeyError: + raise CP.NoSectionError(section) + sectdict[self.optionxform(option)] = value + class ConfigDeprecationWarning(DeprecationWarning): """Warning for deprecated configuration file features.""" |