summaryrefslogtreecommitdiff
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
commitbef88b2ebf98faacedd911944ba20fe963498396 (patch)
tree0bb01a36080f09ab0a1f5eb038f0154af813af75
parent722586f023c63a4f0f208add61e56a1e5f441ce6 (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
-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 88e0a9efbc..2ca46b0ef3 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