[Zodb-checkins] CVS: Zope3/src/ZODB/FileStorage - format.py:1.4
Jim Fulton
jim at zope.com
Wed Feb 25 07:31:59 EST 2004
Update of /cvs-repository/Zope3/src/ZODB/FileStorage
In directory cvs.zope.org:/tmp/cvs-serv5039/src/ZODB/FileStorage
Modified Files:
format.py
Log Message:
Changed a formatting routine to be a bit more robust. This routine had
been broken by a unicode user value.
=== Zope3/src/ZODB/FileStorage/format.py 1.3 => 1.4 ===
--- Zope3/src/ZODB/FileStorage/format.py:1.3 Thu Feb 19 13:35:24 2004
+++ Zope3/src/ZODB/FileStorage/format.py Wed Feb 25 07:31:57 2004
@@ -337,7 +337,7 @@
def asString(self):
s = struct.pack(TRANS_HDR, self.tid, self.tlen, self.status,
self.ulen, self.dlen, self.elen)
- return "".join([s, self.user, self.descr, self.ext])
+ return "".join(map(str, [s, self.user, self.descr, self.ext]))
def headerlen(self):
return TRANS_HDR_LEN + self.ulen + self.dlen + self.elen
More information about the Zodb-checkins
mailing list