Kaydet (Commit) d3f6682a authored tarafından Christian Lohmaier's avatar Christian Lohmaier

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
üst bd43bcad
...@@ -361,7 +361,7 @@ class ProviderContext: ...@@ -361,7 +361,7 @@ class ProviderContext:
elif node.__class__.__name__ == 'Assign': elif node.__class__.__name__ == 'Assign':
for assignee in node.nodes: for assignee in node.nodes:
if assignee.name == 'g_exportedScripts': if assignee.name == 'g_exportedScripts':
for item in node.expr: for item in node.expr.nodes:
if item.__class__.__name__ == 'Name': if item.__class__.__name__ == 'Name':
g_exportedScripts.append(item.name) g_exportedScripts.append(item.name)
return g_exportedScripts return g_exportedScripts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment