Skip to content

Commit

Permalink
Correct type comparsion in ast.Node.__equals__.
Browse files Browse the repository at this point in the history
Fixes #19.
  • Loading branch information
c2nes committed Oct 9, 2015
1 parent 4bf3be0 commit 2c7f5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javalang/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, **kwargs):
raise ValueError('Extraneous arguments')

def __equals__(self, other):
if type(other) is type(self):
if type(other) is not type(self):
return False

for attr in self.attrs:
Expand Down

0 comments on commit 2c7f5f6

Please sign in to comment.