From 5ec1eb1a779c700a7abd88f4cc51940b036c50b8 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 26 Dec 2015 16:35:01 +0100 Subject: [PATCH 1/1] SerializingObject: Serialize tags into sets, not lists --- tasklib/serializing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasklib/serializing.py b/tasklib/serializing.py index 4594285..ff9b977 100644 --- a/tasklib/serializing.py +++ b/tasklib/serializing.py @@ -178,8 +178,8 @@ class SerializingObject(object): def deserialize_tags(self, tags): if isinstance(tags, six.string_types): - return tags.split(',') if tags else [] - return tags or [] + return set(tags.split(',')) if tags else set() + return set(tags or []) def serialize_depends(self, value): # Return the list of uuids -- 2.39.5