local replica of #1010

This commit is contained in:
Eric Vergnaud 2015-10-05 21:28:30 +08:00
parent 158ef2c567
commit 3e807138d5
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class LexerATNConfig(ATNConfig):
return False return False
if self.passedThroughNonGreedyDecision != other.passedThroughNonGreedyDecision: if self.passedThroughNonGreedyDecision != other.passedThroughNonGreedyDecision:
return False return False
if self.lexerActionExecutor is not other.lexerActionExecutor: if not(self.lexerActionExecutor==other.lexerActionExecutor):
return False return False
return super(LexerATNConfig, self).__eq__(other) return super(LexerATNConfig, self).__eq__(other)

View File

@ -146,7 +146,7 @@ class LexerATNConfig(ATNConfig):
return False return False
if self.passedThroughNonGreedyDecision != other.passedThroughNonGreedyDecision: if self.passedThroughNonGreedyDecision != other.passedThroughNonGreedyDecision:
return False return False
if self.lexerActionExecutor is not other.lexerActionExecutor: if not(self.lexerActionExecutor == other.lexerActionExecutor):
return False return False
return super().__eq__(other) return super().__eq__(other)