[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - log.py:1.8

Guido van Rossum guido at python.org
Thu Apr 17 18:16:50 EDT 2003


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

Modified Files:
	log.py 
Log Message:
short_repr(): when processing tuple elements, use short_repr()
recursively to avoid blowing up when a tuple contains a really long
string (e.g. 100 MB in size).


=== ZODB3/ZEO/zrpc/log.py 1.7 => 1.8 ===
--- ZODB3/ZEO/zrpc/log.py:1.7	Thu Dec 12 16:21:47 2002
+++ ZODB3/ZEO/zrpc/log.py	Thu Apr 17 17:16:49 2003
@@ -57,7 +57,7 @@
         elts = []
         size = 0
         for elt in obj:
-            r = repr(elt)
+            r = short_repr(elt)
             elts.append(r)
             size += len(r)
             if size > REPR_LIMIT:




More information about the Zodb-checkins mailing list