summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/uno.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyuno/source/module/uno.py b/pyuno/source/module/uno.py
index a899c7050f59..1526aac9d8df 100644
--- a/pyuno/source/module/uno.py
+++ b/pyuno/source/module/uno.py
@@ -361,7 +361,10 @@ def _impl_getConstantGroupByName( module, group ):
qualifiedName = module + '.' + group
for td in tde:
if td.Name == qualifiedName:
- return _ConstantGroup({c.Name.split('.')[-1]: c.ConstantValue for c in td.Constants})
+ return_dict = dict()
+ for c in td.Constants:
+ return_dict.update({c.Name.split('.')[-1]: c.ConstantValue})
+ return _ConstantGroup(return_dict)
else:
raise ValueError