From 7af10c52d2cfb89f286f7ef0626ce8072015a0ca Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Mon, 27 Apr 2015 00:04:12 +0200 Subject: [PATCH] models: Remove TODO to make models we can serialize a global Turns out that module construction time is too early to run this code. --- mopidy/models/serialize.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mopidy/models/serialize.py b/mopidy/models/serialize.py index 0f55c659..1c438efb 100644 --- a/mopidy/models/serialize.py +++ b/mopidy/models/serialize.py @@ -38,7 +38,6 @@ def model_json_decoder(dct): """ if '__model__' in dct: - # TODO: move models to a global constant once we split this module models = {c.__name__: c for c in ImmutableObject.__subclasses__()} model_name = dct.pop('__model__') if model_name in models: