This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author goodger
Recipients
Date 2004-08-24.15:04:13
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=7733

The alternative is the following change in Docutils. 
Unfortunately, it requires access to internal implementation
details marked with single leading underscores.

diff -u -r1.64 frontend.py
--- docutils/frontend.py	24 Jul 2004 14:13:38 -0000	1.64
+++ docutils/frontend.py	24 Aug 2004 15:01:32 -0000
@@ -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."""
History
Date User Action Args
2007-08-23 14:24:12adminlinkissue997050 messages
2007-08-23 14:24:12admincreate