From eb7e15ac78077f67f4904a86b426ba015f450ec1 Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Mon, 8 May 2017 09:59:50 +0200 Subject: Fix issue #31 on python3 Under python 3.x the signature generation to check for changes was failing due to changes in hash functions. Ensures always the same signature by enforcing token order. --- ply/yacc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ply') diff --git a/ply/yacc.py b/ply/yacc.py index 2fadace..4210239 100644 --- a/ply/yacc.py +++ b/ply/yacc.py @@ -3070,7 +3070,7 @@ class ParserReflect(object): self.error = True return - self.tokens = tokens + self.tokens = sorted(tokens) # Validate the tokens def validate_tokens(self): -- cgit v1.2.1