summaryrefslogtreecommitdiff
path: root/ply/lex.py
diff options
context:
space:
mode:
authorThomas Robitaille <thomas.robitaille@gmail.com>2018-02-09 11:18:01 +0000
committerThomas Robitaille <thomas.robitaille@gmail.com>2018-02-09 11:18:01 +0000
commit3e3b45f814d0317a3d67aba71eec140b845b136b (patch)
treeb13f5ffb3647769c90c418ca34b2860c20765aa2 /ply/lex.py
parent6860652be4069eaac8be88af1400f69a5197284f (diff)
downloadply-3e3b45f814d0317a3d67aba71eec140b845b136b.tar.gz
Remove trailing whitespace
Diffstat (limited to 'ply/lex.py')
-rw-r--r--ply/lex.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ply/lex.py b/ply/lex.py
index 65deefe..f3351ba 100644
--- a/ply/lex.py
+++ b/ply/lex.py
@@ -184,7 +184,7 @@ class Lexer:
tf.write('_lexliterals = %s\n' % repr(self.lexliterals))
tf.write('_lexstateinfo = %s\n' % repr(self.lexstateinfo))
- # Rewrite the lexstatere table, replacing function objects with function names
+ # Rewrite the lexstatere table, replacing function objects with function names
tabre = {}
for statename, lre in self.lexstatere.items():
titem = []
@@ -535,7 +535,7 @@ def _statetoken(s, names):
for i, part in enumerate(parts[1:], 1):
if part not in names and part != 'ANY':
break
-
+
if i > 1:
states = tuple(parts[1:i])
else:
@@ -1096,4 +1096,3 @@ def TOKEN(r):
# Alternative spelling of the TOKEN decorator
Token = TOKEN
-