Message21781
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."""
|
|
Date |
User |
Action |
Args |
2007-08-23 14:24:12 | admin | link | issue997050 messages |
2007-08-23 14:24:12 | admin | create | |
|