Skip to content

Commit 10b11a3

Browse files
committed
Remove unicode type in isinstance
1 parent 0a2940a commit 10b11a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _container_config(self, image, command, hostname=None, user=None,
158158
exposed_ports['{0}/{1}'.format(port, proto)] = {}
159159
ports = exposed_ports
160160

161-
if isinstance(volumes, (str, unicode)):
161+
if isinstance(volumes, str):
162162
volumes = [volumes, ]
163163

164164
if isinstance(volumes, list):
@@ -503,7 +503,7 @@ def create_container(self, image, command=None, hostname=None, user=None,
503503
cpu_shares=None, working_dir=None, domainname=None,
504504
memswap_limit=0):
505505

506-
if isinstance(volumes, (str, unicode)):
506+
if isinstance(volumes, str):
507507
volumes = [volumes, ]
508508

509509
config = self._container_config(

0 commit comments

Comments
 (0)