From b2cc87c80a29cd2239a87eb0eb72fe74a4dfe465 Mon Sep 17 00:00:00 2001 From: Edu Alonso Date: Thu, 15 Jan 2015 16:15:28 +0100 Subject: [PATCH] allow hostnames to be passed as unicode in GearmanConnection --- gearman/connection_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gearman/connection_manager.py b/gearman/connection_manager.py index f3be48d..ccdf6f6 100644 --- a/gearman/connection_manager.py +++ b/gearman/connection_manager.py @@ -61,7 +61,7 @@ def __init__(self, host_list=None): host_list = host_list or [] for element in host_list: # old style host:port pair - if isinstance(element, str): + if isinstance(element, basestring): self.add_connection(element) elif isinstance(element, dict): if not all (k in element for k in ('host', 'port', 'keyfile', 'certfile', 'ca_certs')):