[Zope-Checkins] CVS: Zope2 - client.py:1.15
Brian Lloyd
brian@digicool.com
Wed, 4 Apr 2001 14:25:22 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/webdav
In directory korak:/home/brian/temp/mainline-python-21/lib/python/webdav
Modified Files:
client.py
Log Message:
Fixed an assumption about trailing 'L' on long conversion
--- Updated File client.py in package Zope2 --
--- client.py 2001/04/02 16:19:10 1.14
+++ client.py 2001/04/04 18:25:20 1.15
@@ -435,7 +435,10 @@
return '%s:int=%s' % (name, val)
def marshal_long(name, val):
- return ('%s:long=%s' % (name, val))[:-1]
+ value = '%s:long=%s' % (name, val)
+ if value[-1] == 'L':
+ value = value[:-1]
+ return value
def marshal_list(name, seq, tname='list', lt=type([]), tt=type(())):
result=[]