From: Rob Golding Date: Sun, 7 Feb 2016 23:25:47 +0000 (+0000) Subject: Override __copy__ and __deepcopy__ on LazyUUIDTask X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/5f535b50023187e987751d4f34c32b4c1f7a8959 Override __copy__ and __deepcopy__ on LazyUUIDTask --- 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): """