convert Float to double for xmlrpc for issue1903
(transplanted from 30d8a23f16f37bd2f0d16ad7321b8a2d5459c085)
This commit is contained in:
@@ -23,6 +23,8 @@ from types import DictType
|
||||
from decimal import Decimal
|
||||
xmlrpclib.Marshaller.dispatch[Decimal] = \
|
||||
lambda self, value, write: self.dump_double(float(value), write)
|
||||
xmlrpclib.Marshaller.dispatch[Float] = \
|
||||
lambda self, value, write: self.dump_double(float(value), write)
|
||||
xmlrpclib.Marshaller.dispatch[type(None)] = \
|
||||
lambda self, value, write: self.dump_bool(bool(value), write)
|
||||
xmlrpclib.Marshaller.dispatch[datetime.date] = \
|
||||
|
||||
Reference in New Issue
Block a user