From 5f535b50023187e987751d4f34c32b4c1f7a8959 Mon Sep 17 00:00:00 2001 From: Rob Golding Date: Sun, 7 Feb 2016 23:25:47 +0000 Subject: [PATCH] Override __copy__ and __deepcopy__ on LazyUUIDTask --- tasklib/lazy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasklib/lazy.py b/tasklib/lazy.py index aa2c065..a1b63ef 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -42,6 +42,12 @@ class LazyUUIDTask(object): def __repr__(self): return "LazyUUIDTask: {0}".format(self._uuid) + def __copy__(self): + return LazyUUIDTask(self._tw, self._uuid) + + def __deepcopy__(self, memo): + return LazyUUIDTask(self._tw, self._uuid) + @property def saved(self): """ -- 2.39.5