summaryrefslogtreecommitdiff
path: root/scripting/source/pyprov/pythonscript.py
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-03-07 16:34:14 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-03-07 16:34:14 +0100
commitd3f6682a18d9ad971067a969f21ffa81aea7f2e0 (patch)
treed2765a26ed5e524151adb514e3a58dbbb511acd0 /scripting/source/pyprov/pythonscript.py
parentbd43bcadd24cc7af35efba77096b87f9fbdb237c (diff)
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
Diffstat (limited to 'scripting/source/pyprov/pythonscript.py')
-rw-r--r--scripting/source/pyprov/pythonscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index 88e0a9efbc9d..2ca46b0ef37e 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