Skip to content

Commit

Permalink
Merge pull request #34 from blairhudson/master
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
yuvipanda committed Sep 18, 2017
2 parents d0c8988 + e1b8bf2 commit aae209f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipynb/utils.py
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

0 comments on commit aae209f

Please sign in to comment.