Repository: incubator-ariatosca
Updated Branches:
  refs/heads/SQLAlchemy-based-models 4eafe0073 -> 512b4bc6a


fixed dict comprehension


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/512b4bc6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/512b4bc6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/512b4bc6

Branch: refs/heads/SQLAlchemy-based-models
Commit: 512b4bc6a1e5cbac283600117c697847c5e82008
Parents: 4eafe00
Author: mxmrlv <mxm...@gmail.com>
Authored: Thu Dec 1 12:01:25 2016 +0200
Committer: mxmrlv <mxm...@gmail.com>
Committed: Thu Dec 1 12:01:25 2016 +0200

----------------------------------------------------------------------
 aria/storage/structures.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/512b4bc6/aria/storage/structures.py
----------------------------------------------------------------------
diff --git a/aria/storage/structures.py b/aria/storage/structures.py
index 4d86bf8..8578e77 100644
--- a/aria/storage/structures.py
+++ b/aria/storage/structures.py
@@ -217,7 +217,7 @@ class SQLModelBase(Model):
         Convert the model into dict
         :return:
         """
-        return {field: getattr(self, field) for field in self.fields}
+        return dict((field, getattr(self, field)) for field in self.fields)
 
     def to_json(self):
         """

Reply via email to