From 8867c3b2f37f9bdbe0bac21a0f14f8d5865b5260 Mon Sep 17 00:00:00 2001 From: "R. Daneel Olivaw" Date: Sat, 9 Apr 2016 09:21:05 -0400 Subject: [PATCH] cast 'timeout' to float The 'timeout' value is often given as an integer, but the lib expects a float. This casts the 'timeout' parameter as a float so callers do not have to bother. --- ubersmith_client/ubersmith_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubersmith_client/ubersmith_api.py b/ubersmith_client/ubersmith_api.py index 4731bc5..8595b31 100644 --- a/ubersmith_client/ubersmith_api.py +++ b/ubersmith_client/ubersmith_api.py @@ -19,7 +19,7 @@ def __init__(self, url, user, password, timeout, use_http_get): self.url = url self.user = user self.password = password - self.timeout = timeout + self.timeout = float(timeout) self.ubersmith_request = UbersmithRequestGet if use_http_get else UbersmithRequestPost def __getattr__(self, module):