[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - client.py:1.25
Guido van Rossum
guido@python.org
Mon, 3 Mar 2003 13:02:41 -0500
Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv16109
Modified Files:
client.py
Log Message:
Fix a bug in _create_wrappers() according to a suggestion by Barry
Pederson. The 'wrap' local variable was reused in a way that
overwrote the value intended to set the return dictionary.
=== ZODB3/ZEO/zrpc/client.py 1.24 => 1.25 ===
--- ZODB3/ZEO/zrpc/client.py:1.24 Fri Jan 3 17:07:41 2003
+++ ZODB3/ZEO/zrpc/client.py Mon Mar 3 13:02:39 2003
@@ -341,10 +341,9 @@
wrap = ConnectWrapper(domain, addr, self.mgr, self.client)
wrap.connect_procedure()
if wrap.state == "notified":
- for wrap in wrappers.keys():
- wrap.close()
- wrappers[wrap] = wrap
- return wrappers
+ for w in wrappers.keys():
+ w.close()
+ return {wrap: wrap}
if wrap.state != "closed":
wrappers[wrap] = wrap
return wrappers