[Fedora-suds-list] Too many values to unpack in sxdate.py

Grant Kushida Grant.Kushida at fox.com
Mon Aug 24 20:23:27 UTC 2009


Yes – see here:

https://www.redhat.com/archives/fedora-suds-list/2009-August/msg00006.html

 

From: fedora-suds-list-bounces at redhat.com [mailto:fedora-suds-list-bounces at redhat.com] On Behalf Of Stephen Barrett
Sent: Monday, August 24, 2009 1:13 PM
To: fedora-suds-list at redhat.com
Subject: [Fedora-suds-list] Too many values to unpack in sxdate.py

 

I am getting a value error trying to unmarshall a date in a reply.  

 

<startDay>2009-07-27-05:00</startDay>

 

File "build/bdist.macosx-10.5-i386/egg/suds/xsd/sxdate.py", line 56, in toPython

ValueError: too many values to unpack

 

 

looking at the code shows this line.

 

year, month, day = value.rsplit('-', 3)

 

when there is a "-" in front of the time zone there will 4 items in the unpacked list

 

Has anyone else run into this problem?

 

Thanks, 

Steve

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20090824/3740f1f3/attachment.html 


More information about the suds mailing list