Commit f34a9b06 authored by Jason Madden's avatar Jason Madden

We need to use six.string_types in a few other places to account for the...

We need to use six.string_types in a few other places to account for the change in ZConfig. unix_domain_sockets() was failing before this on Python 2.
parent cae5dfe0
......@@ -5,7 +5,7 @@ matrix:
- os: linux
python: 2.7
- os: linux
python: pypy-5.4.1
python: pypy-5.6.0
- os: linux
python: 3.4
- os: linux
......
......@@ -190,10 +190,10 @@ class ClientStorage(ZODB.ConflictResolution.ConflictResolvingStorage):
self.__name__ = name or str(addr) # Standard convention for storages
if isinstance(addr, str):
if isinstance(addr, six.string_types):
addr = [addr]
elif (isinstance(addr, tuple) and len(addr) == 2 and
isinstance(addr[0], str) and isinstance(addr[1], int)):
isinstance(addr[0], six.string_types) and isinstance(addr[1], int)):
addr = [addr]
logger.info(
......
......@@ -53,7 +53,7 @@ class ZEOConfig(object):
else:
self.logpath = 'server.log'
if not isinstance(addr, str):
if not isinstance(addr, six.string_types):
addr = '%s:%s' % addr
self.log = log
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment