From: Tony Mack Date: Thu, 8 Sep 2011 17:03:29 +0000 (-0400) Subject: cast timeout to float X-Git-Tag: sfa-1.0-36~15^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c0af6b5b14219c4bc65b706e9899a8d40071fb9;p=sfa.git cast timeout to float --- diff --git a/sfa/util/xmlrpcprotocol.py b/sfa/util/xmlrpcprotocol.py index 1cdc6058..25e7b76d 100644 --- a/sfa/util/xmlrpcprotocol.py +++ b/sfa/util/xmlrpcprotocol.py @@ -67,7 +67,7 @@ class XMLRPCTransport(xmlrpclib.Transport): real_conn = conn conn.connect() if hasattr(real_conn, "sock") and hasattr(real_conn.sock, "settimeout"): - real_conn.sock.settimeout(self.timeout) + real_conn.sock.settimeout(float(self.timeout)) return conn