Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ipynb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def node_predicate(node):
return True

if isinstance(node, ast.Assign):
return all([t.id.isupper() for t in node.targets])
return all([t.id.isupper() for t in node.targets if hasattr(t, 'id')]) \
and all([[e.id.isupper() for e in t.elts] for t in node.targets if hasattr(t, 'elts')])

return False

Expand Down