From c109b26d225814fca957020b0a668e7f69444375 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Sat, 29 May 2010 21:57:56 +0100 Subject: [PATCH] Cleanup BaseModel key iteration --- openlp/core/lib/basemodel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openlp/core/lib/basemodel.py b/openlp/core/lib/basemodel.py index f4aa2fbef..f56336c7b 100644 --- a/openlp/core/lib/basemodel.py +++ b/openlp/core/lib/basemodel.py @@ -34,8 +34,7 @@ class BaseModel(object): Creates an instance of a class and populates it, returning the instance """ me = cls() - keys = kwargs.keys() - for key in keys: + for key in kwargs: me.__setattr__(key, kwargs[key]) return me