[Zodb-checkins] CVS: ZODB3/ZODB - config.py:1.13

Jeremy Hylton jeremy at zope.com
Mon Jun 16 11:51:50 EDT 2003


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv29176/ZODB

Modified Files:
	config.py 
Log Message:
Use cStringIO instead of StringIO.

(All the other non-test ZODB code uses cStringIO.)


=== ZODB3/ZODB/config.py 1.12 => 1.13 ===
--- ZODB3/ZODB/config.py:1.12	Fri May 30 15:20:55 2003
+++ ZODB3/ZODB/config.py	Mon Jun 16 10:51:49 2003
@@ -16,7 +16,7 @@
 $Id$"""
 
 import os
-import StringIO
+from cStringIO import StringIO
 
 import ZConfig
 
@@ -41,7 +41,7 @@
     return _s_schema
 
 def databaseFromString(s):
-    return databaseFromFile(StringIO.StringIO(s))
+    return databaseFromFile(StringIO(s))
 
 def databaseFromFile(f):
     config, handle = ZConfig.loadConfigFile(getDbSchema(), f)
@@ -55,7 +55,7 @@
     return section.open()
 
 def storageFromString(s):
-    return storageFromFile(StringIO.StringIO(s))
+    return storageFromFile(StringIO(s))
 
 def storageFromFile(f):
     config, handle = ZConfig.loadConfigFile(getStorageSchema(), f)




More information about the Zodb-checkins mailing list