[Zodb-checkins] CVS: ZODB3/ZEO1 - zrpc.py:1.2

Guido van Rossum guido@python.org
Thu, 3 Oct 2002 14:00:36 -0400


Update of /cvs-repository/ZODB3/ZEO1
In directory cvs.zope.org:/tmp/cvs-serv4392

Modified Files:
	zrpc.py 
Log Message:
Add a get() method -- speed.py needs this.


=== ZODB3/ZEO1/zrpc.py 1.1.1.1 => 1.2 ===
--- ZODB3/ZEO1/zrpc.py:1.1.1.1	Mon Aug 12 16:39:56 2002
+++ ZODB3/ZEO1/zrpc.py	Thu Oct  3 14:00:36 2002
@@ -109,6 +109,9 @@
     def __getitem__(self, key):
         if key==self._fileno: return self
         raise KeyError, key
+    def get(self, key, default=None):
+        if key==self._fileno: return self
+        return default
 
     def sync(self):
         if self.__haveMainLoop: return # in async mode