summaryrefslogtreecommitdiff
path: root/ply/lex.py
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2018-02-15 12:35:25 -0600
committerGitHub <noreply@github.com>2018-02-15 12:35:25 -0600
commit28575bd825180b828e92c964aa924a4252aa4c19 (patch)
treea1c810a7643b9e6d798f09876a2a0ce09220eb6d /ply/lex.py
parent17a726c462e2ab2e1f769c257b218f7b72e43caf (diff)
parent3e3b45f814d0317a3d67aba71eec140b845b136b (diff)
downloadply-28575bd825180b828e92c964aa924a4252aa4c19.tar.gz
Merge pull request #152 from astrofrog/fix-whitespace
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 3edcb23..a200f93 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
-