mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 19:40:39 +00:00
Hack xmlrpclib to stop from dieing with long numbers.
This commit is contained in:
parent
7e03f82d73
commit
29c77e1a04
@ -657,8 +657,8 @@ class Marshaller:
|
|||||||
dispatch[bool] = dump_bool
|
dispatch[bool] = dump_bool
|
||||||
|
|
||||||
def dump_long(self, value, write):
|
def dump_long(self, value, write):
|
||||||
if value > MAXINT or value < MININT:
|
#if value > MAXINT or value < MININT:
|
||||||
raise OverflowError, "long int exceeds XML-RPC limits"
|
# raise OverflowError, "long int exceeds XML-RPC limits"
|
||||||
write("<value><int>")
|
write("<value><int>")
|
||||||
write(str(int(value)))
|
write(str(int(value)))
|
||||||
write("</int></value>\n")
|
write("</int></value>\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user