Permalink
Browse files

Merge pull request #34 from blairhudson/master

Fixes #31
  • Loading branch information...
yuvipanda committed Sep 18, 2017
2 parents d0c8988 + e1b8bf2 commit aae209ff12055a966dd4b4bea7bbc9ec273c4a85
Showing with 2 additions and 1 deletion.
  1. +2 −1 ipynb/utils.py
View
@@ -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

0 comments on commit aae209f

Please sign in to comment.