aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ply/yacc.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ply/yacc.py')
-rw-r--r--lib/ply/yacc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ply/yacc.py b/lib/ply/yacc.py
index d50886ed2..561784f2f 100644
--- a/lib/ply/yacc.py
+++ b/lib/ply/yacc.py
@@ -488,7 +488,7 @@ class LRParser:
# --! DEBUG
return result
- if t == None:
+ if t is None:
# --! DEBUG
debug.error('Error : %s',
@@ -766,7 +766,7 @@ class LRParser:
n = symstack[-1]
return getattr(n,"value",None)
- if t == None:
+ if t is None:
# We have some kind of parsing error here. To handle
# this, we are going to push the current token onto
@@ -1021,7 +1021,7 @@ class LRParser:
n = symstack[-1]
return getattr(n,"value",None)
- if t == None:
+ if t is None:
# We have some kind of parsing error here. To handle
# this, we are going to push the current token onto