fix output from RawConfigParser.write and ConfigParser.write for None
values (http://bugs.python.org/issue7005)
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index d356a13..dc73988 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -400,7 +400,7 @@
for (key, value) in self._sections[section].items():
if key == "__name__":
continue
- if value is not None:
+ if (value is not None) or (self._optcre == self.OPTCRE):
key = " = ".join((key, str(value).replace('\n', '\n\t')))
fp.write("%s\n" % (key))
fp.write("\n")