[Zope-Checkins] CVS: Zope2 - Client.py:1.40
Brian Lloyd
brian@digicool.com
Wed, 4 Apr 2001 14:19:19 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZPublisher
In directory korak:/home/brian/temp/mainline-python-21/lib/python/ZPublisher
Modified Files:
Client.py
Log Message:
Fixed an assumption of 'L' trailing str() of a long
--- Updated File Client.py in package Zope2 --
--- Client.py 2000/10/16 13:37:33 1.39
+++ Client.py 2001/04/04 18:19:17 1.40
@@ -352,7 +352,11 @@
def marshal_float(n,f): return '%s:float=%s' % (n,f)
def marshal_int(n,f): return '%s:int=%s' % (n,f)
-def marshal_long(n,f): return ('%s:long=%s' % (n,f))[:-1]
+def marshal_long(n,f):
+ value = '%s:long=%s' % (n, f)
+ if value[-1] == 'L':
+ value = value[:-1]
+ return value
sample_regex=regex.compile('')
def marshal_regex(n,r):