From: Rob Golding Date: Thu, 15 Jan 2015 13:41:43 +0000 (+0000) Subject: Use six.string_types over basestring for Python 3 compatibility X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/a2961748b5773cab010a6352710460a26b4a2cbe?ds=inline;hp=d4ee441b2352dd50f00363c1ccb123e25cbac248 Use six.string_types over basestring for Python 3 compatibility --- diff --git a/tasklib/task.py b/tasklib/task.py index 8513b14..9d6d47f 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -93,7 +93,7 @@ class SerializingObject(object): return ','.join(tags) if tags else '' def deserialize_tags(self, tags): - if isinstance(tags, basestring): + if isinstance(tags, six.string_types): return tags.split(',') if tags else [] return tags or []