[Libreoffice-commits] .: scripting/source
Christian Lohmaier
cloph at kemper.freedesktop.org
Mon Mar 7 07:31:39 PST 2011
scripting/source/pyprov/pythonscript.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bef88b2ebf98faacedd911944ba20fe963498396
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date: Mon Mar 7 16:34:14 2011 +0100
fdo#34699 some pythonsamples not visible on Mac OS X
node.expr is a Node of type "Tuple", not a builtin tuple datatype, thus
python 2.3 did fail with TypeError: iteration over non-sequence
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index 88e0a9e..2ca46b0 100644
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -361,7 +361,7 @@ class ProviderContext:
elif node.__class__.__name__ == 'Assign':
for assignee in node.nodes:
if assignee.name == 'g_exportedScripts':
- for item in node.expr:
+ for item in node.expr.nodes:
if item.__class__.__name__ == 'Name':
g_exportedScripts.append(item.name)
return g_exportedScripts
More information about the Libreoffice-commits
mailing list