[Zope-Checkins] CVS: Zope2 - DB.py:1.28

jeremy@digicool.com jeremy@digicool.com
Thu, 19 Apr 2001 12:06:27 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak:/tmp/cvs-serv12712

Modified Files:
	DB.py 
Log Message:
modify complete broken code some compiler doesn't complain




--- Updated File DB.py in package Zope2/lib/python/ZODB --
--- DB.py	2001/04/12 19:53:04	1.27
+++ DB.py	2001/04/19 16:06:25	1.28
@@ -168,9 +168,10 @@
             
 
     def _cacheMean(self, attr):
+        # XXX this method doesn't work
         m=[0,0]
         def f(con, m=m, attr=attr):
-            t=getattr(con._cache,attr)
+            t=getattr(con._cache, attr)
             m[0]=m[0]+t
             m[1]=m[1]+1
 



--- Updated File DB.py in package Zope2 --
--- DB.py	2001/04/12 19:53:04	1.27
+++ DB.py	2001/04/19 16:06:25	1.28
@@ -168,9 +168,10 @@
             
 
     def _cacheMean(self, attr):
+        # XXX this method doesn't work
         m=[0,0]
         def f(con, m=m, attr=attr):
-            t=getattr(con._cache,attr)
+            t=getattr(con._cache, attr)
             m[0]=m[0]+t
             m[1]=m[1]+1