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
committerCaolán McNamara <caolanm@redhat.com>2011-03-07 15:59:50 +0000
commit5c2ed6488e7619cb2fd2a1e996c46a81760822a9 (patch)
treea41832dee8f2e7e4338dd8f502219f05330a8a87 /scripting/source/pyprov/pythonscript.py
parentee1530a61d62054e98dda4be619d780d20aa7efb (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 (cherry picked from commit bef88b2ebf98faacedd911944ba20fe963498396) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
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 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