[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.42

Jeremy Hylton jeremy@zope.com
Thu, 1 Aug 2002 15:15:43 -0400


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv18147

Modified Files:
	ClientStorage.py 
Log Message:
Use None instead of '' as the default.


=== ZODB3/ZEO/ClientStorage.py 1.41 => 1.42 ===
 class ClientStorage:
 
     def __init__(self, addr, storage='1', cache_size=20000000,
-                 name='', client='', var=None,
+                 name='', client=None, var=None,
                  min_disconnect_poll=5, max_disconnect_poll=300,
                  wait=0, read_only=0):
 
@@ -88,7 +88,7 @@
         self._basic_init(name or str(addr))
 
         # Decide whether to use non-temporary files
-        client = client or os.environ.get('ZEO_CLIENT', '')
+        client = client or os.environ.get('ZEO_CLIENT')
         self._cache = ClientCache.ClientCache(storage, cache_size,
                                               client=client, var=var)
         self._cache.open() # XXX open now? or later?