[Zope-Checkins] CVS: Zope/lib/python/ZTUtils - Tree.py:1.15.2.5

Casey Duncan casey at zope.com
Tue May 4 15:31:40 EDT 2004


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

Modified Files:
      Tag: Zope-2_7-branch
	Tree.py 
Log Message:
Make sure encoding of tree state does not include newline characters (issue #122
6)


=== Zope/lib/python/ZTUtils/Tree.py 1.15.2.4 => 1.15.2.5 ===
--- Zope/lib/python/ZTUtils/Tree.py:1.15.2.4	Thu Jan  8 18:34:03 2004
+++ Zope/lib/python/ZTUtils/Tree.py	Tue May  4 15:31:09 2004
@@ -232,7 +232,7 @@
 
     Encoded string use only alpahnumeric characters, and "._-".
     '''
-    return translate(base64.encodestring(str(s)), a2u_map)
+    return translate(base64.encodestring(str(s)), a2u_map).replace('\n', '')
 
 def a2b(s):
     '''Decode a b2a-encoded string.'''




More information about the Zope-Checkins mailing list