From f825216dbe53bca1ddf9abd18d40a93dd1b73887 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 20 Feb 2015 12:18:35 +0100 Subject: [PATCH] SerializingObject: Detect string type using six properly --- tasklib/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2