From: Tomas Babej Date: Fri, 20 Feb 2015 11:18:35 +0000 (+0100) Subject: SerializingObject: Detect string type using six properly X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/f825216dbe53bca1ddf9abd18d40a93dd1b73887 SerializingObject: Detect string type using six properly --- diff --git a/tasklib/task.py b/tasklib/task.py index 0666b0f..4547400 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -242,7 +242,7 @@ class SerializingObject(object): def normalize_uuid(self, value): # Enforce sane UUID - if not isinstance(value, six.text_type) or value == '': + if not isinstance(value, six.string_types) or value == '': raise ValueError("UUID must be a valid non-empty string, " "not: {}".format(value))