X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/f2d008def446626c071a9ceb2c80acb74d477cd0..60dbf4f2ca44f32c51b54d9812edf3daada231a7:/tasklib/serializing.py diff --git a/tasklib/serializing.py b/tasklib/serializing.py index e980c58..c177984 100644 --- a/tasklib/serializing.py +++ b/tasklib/serializing.py @@ -1,3 +1,5 @@ +import datetime +import importlib import json import pytz import six @@ -163,6 +165,8 @@ class SerializingObject(object): return serialized_annotations if serialized_annotations else '' def deserialize_annotations(self, data): + task_module = importlib.import_module('tasklib.task') + TaskAnnotation = getattr(task_module, 'TaskAnnotation') return [TaskAnnotation(self, d) for d in data] if data else [] def serialize_tags(self, tags):