deeper pass on xmlrpclib vs xmlrpc.client as well as configparser
[sfa.git] / sfa / util / config.py
index c25ec44..e5435a7 100644 (file)
@@ -2,11 +2,11 @@
 import sys
 import os
 import time
-import ConfigParser
 import tempfile
 import codecs
-from StringIO import StringIO
 from sfa.util.xml import XML
+from sfa.util.py23 import StringIO
+from sfa.util.py23 import ConfigParser
 
 default_config = \
 """
@@ -194,7 +194,8 @@ DO NOT EDIT. This file was automatically generated at
             return False
 
 
-    def dump(self, sections = []):
+    def dump(self, sections=None):
+        if sections is None: sections=[]
         sys.stdout.write(output_python())
 
     def output_python(self, encoding = "utf-8"):