Hack xmlrpclib to stop from dieing with long numbers.

This commit is contained in:
Andrew Resch 2008-01-19 16:48:45 +00:00
parent 7e03f82d73
commit 29c77e1a04
1 changed files with 2 additions and 2 deletions

View File

@ -657,8 +657,8 @@ class Marshaller:
dispatch[bool] = dump_bool
def dump_long(self, value, write):
if value > MAXINT or value < MININT:
raise OverflowError, "long int exceeds XML-RPC limits"
#if value > MAXINT or value < MININT:
# raise OverflowError, "long int exceeds XML-RPC limits"
write("<value><int>")
write(str(int(value)))
write("</int></value>\n")