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

Casey Duncan casey at zope.com
Tue May 4 15:33:39 EDT 2004


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

Modified Files:
	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.18 => 1.19 ===
--- Zope/lib/python/ZTUtils/Tree.py:1.18	Thu Jan 15 18:00:17 2004
+++ Zope/lib/python/ZTUtils/Tree.py	Tue May  4 15:33:07 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