[Zodb-checkins] CVS: ZODB3/BTrees - check.py:1.1.2.5

Tim Peters tim.one at comcast.net
Thu Jun 12 17:37:43 EDT 2003


Update of /cvs-repository/ZODB3/BTrees
In directory cvs.zope.org:/tmp/cvs-serv26839

Modified Files:
      Tag: ZODB3-3_1-branch
	check.py 
Log Message:
Revert unintended debug changes.


=== ZODB3/BTrees/check.py 1.1.2.4 => 1.1.2.5 ===
--- ZODB3/BTrees/check.py:1.1.2.4	Thu Jun 12 16:36:50 2003
+++ ZODB3/BTrees/check.py	Thu Jun 12 16:37:43 2003
@@ -209,19 +209,8 @@
         i += 1
     return keys, values
 
-from ZODB.utils import U64
-
 def type_and_adr(obj):
-    if obj._p_oid:
-        tag = 'oid'
-        hexit = U64(obj._p_oid)
-        serial = U64(obj._p_serial)
-        s = "%x %x" % (hexit, serial)
-    else:
-        tag = 'id'
-        hexit = id(obj)
-        s = "%x" % hexit
-    return "%s (%s %s)" % (type(obj).__name__, tag, s)
+    return "%s (0x%x)" % (type(obj).__name__, id(obj))
 
 # Walker implements a depth-first search of a BTree (or TreeSet or Set or
 # Bucket).  Subclasses must implement the visit_btree() and visit_bucket()




More information about the Zodb-checkins mailing list