Kaydet (Commit) 7ef47336 authored tarafından Werner Tietz's avatar Werner Tietz Kaydeden (comit) Michael Stahl

tdf#92007 python scripts with tuple-assignments fails on access from GUI

Change-Id: Ice1d7d92cec56751cb26cbb31a5995ab30895125
Reviewed-on: https://gerrit.libreoffice.org/36399Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 8913353a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment