diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-03-07 16:34:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-07 15:59:50 +0000 |
commit | 5c2ed6488e7619cb2fd2a1e996c46a81760822a9 (patch) | |
tree | a41832dee8f2e7e4338dd8f502219f05330a8a87 | |
parent | ee1530a61d62054e98dda4be619d780d20aa7efb (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>
-rw-r--r-- | scripting/source/pyprov/pythonscript.py | 2 |
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 |