| commit | 7ef47336411389ac492729bef52fe62aebe90f5a | [log] |
|---|---|---|
| author | Werner Tietz <karlooforum@arcor.de> | Tue Apr 11 01:51:11 2017 +0200 |
| committer | Michael Stahl <mstahl@redhat.com> | Wed Apr 12 17:33:12 2017 +0200 |
| tree | acf4e25d210e5b4a2468b6ac6ecc87e6b8a43895 | |
| parent | 8913353a8fd2a1d281c2d8a33ca795d97201b7bc [diff] |
tdf#92007 python scripts with tuple-assignments fails on access from GUI Change-Id: Ice1d7d92cec56751cb26cbb31a5995ab30895125 Reviewed-on: https://gerrit.libreoffice.org/36399 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py index 4066932..4803d0b 100644 --- a/scripting/source/pyprov/pythonscript.py +++ b/scripting/source/pyprov/pythonscript.py
@@ -405,7 +405,12 @@ class ProviderContext: allFuncs.append(node.name) elif isinstance(node, ast.Assign): for target in node.targets: if target.id == "g_exportedScripts": try: identifier = target.id except AttributeError: identifier = "" pass if identifier == "g_exportedScripts": for value in node.value.elts: g_exportedScripts.append(value.id) return g_exportedScripts