[Libreoffice-commits] .: Branch 'libreoffice-3-3' - scripting/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Mar 7 08:00:00 PST 2011


 scripting/source/pyprov/pythonscript.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5c2ed6488e7619cb2fd2a1e996c46a81760822a9
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
    (cherry picked from commit bef88b2ebf98faacedd911944ba20fe963498396)
    
    Signed-off-by: Caolán McNamara <caolanm at redhat.com>

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