[Zope-Checkins] CVS: Zope/lib/python/TreeDisplay - TreeTag.py:1.53.6.2

Stefan H. Holek stefan at epy.co.at
Sun May 2 06:11:30 EDT 2004


Update of /cvs-repository/Zope/lib/python/TreeDisplay
In directory cvs.zope.org:/tmp/cvs-serv784/lib/python/TreeDisplay

Modified Files:
      Tag: Zope-2_6-branch
	TreeTag.py 
Log Message:
Backported Casey's fix for #1300.


=== Zope/lib/python/TreeDisplay/TreeTag.py 1.53.6.1 => 1.53.6.2 ===
--- Zope/lib/python/TreeDisplay/TreeTag.py:1.53.6.1	Thu Jan  8 15:42:04 2004
+++ Zope/lib/python/TreeDisplay/TreeTag.py	Sun May  2 06:11:29 2004
@@ -659,7 +659,7 @@
     dispatch = pickle.Unpickler.dispatch.copy()
 
     for k,v in dispatch.items():
-        if k=='' or k in '().012FGIJKLMNTUVX]adeghjlpqrstu}':
+        if k=='' or k in '().012FGIJKLMNSTUVX]adeghjlpqrstu}':
             # This key is necessary and safe, so leave it in the map
             pass
         else:
@@ -670,11 +670,6 @@
                 pass
             elif k in [pickle.PERSID, pickle.BINPERSID]:
                 # These are just unnecessary
-                pass
-            elif k in [pickle.STRING]:
-                # This one is controversial: A string is harmlessm, but the
-                # implementation of pickle leaks memory (strings may be interned)
-                # The problem can be avoided by using binary pickles.
                 pass
 
     del k




More information about the Zope-Checkins mailing list