mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-03 16:45:33 +00:00
Hack xmlrpclib to stop from dieing with long numbers.
This commit is contained in:
parent
7e03f82d73
commit
29c77e1a04
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue