mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +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
|
||||
|
||||
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")
|
||||
|
|
Loading…
Add table
Reference in a new issue