Skip to content

Commit

Permalink
Replace basetring with six.string_types
Browse files Browse the repository at this point in the history
  • Loading branch information
mchlumsky committed Jun 13, 2017
1 parent 1394205 commit 2deb069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyscaleio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 2,7 @@

import os
from six import text_type as str
from six import string_types
from collections import Mapping, Sequence

from inflection import camelize, underscore
Expand Down Expand Up @@ -98,7 99,7 @@ def all(cls, client, instance_ids=None, **kwargs):
if not instance_ids:
instances = client.get_instances_of(cls._get_name())
else:
if isinstance(instance_ids, basestring):
if isinstance(instance_ids, string_types):
instance_ids = (instance_ids,)
instances = client.perform_action_on_type(
cls._get_name(), "queryBySelectedIds", {"ids": instance_ids})
Expand Down

0 comments on commit 2deb069

Please sign in to comment.