[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB - ZopeDatabaseAdapter.py:1.8

Steve Alexander steve@cat-box.net
Fri, 8 Nov 2002 07:46:58 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/RDB
In directory cvs.zope.org:/tmp/cvs-serv13614

Modified Files:
	ZopeDatabaseAdapter.py 
Log Message:
replaced confusing use of variable called 'string' that looked like
the string module.



=== Zope3/lib/python/Zope/App/RDB/ZopeDatabaseAdapter.py 1.7 => 1.8 ===
--- Zope3/lib/python/Zope/App/RDB/ZopeDatabaseAdapter.py:1.7	Tue Nov  5 07:09:49 2002
+++ Zope3/lib/python/Zope/App/RDB/ZopeDatabaseAdapter.py	Fri Nov  8 07:46:58 2002
@@ -114,10 +114,7 @@
     dsn = raw_params[0]
     raw_params = raw_params[1:]
 
-    parameters = {}
-    for string in raw_params:
-        param, value = string.split('=')
-        parameters[param] = value
+    parameters = dict([param.split('=') for param in raw_params])
 
     result['parameters'] = parameters