diff options
author | David Beazley <dave@dabeaz.com> | 2018-02-15 12:35:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-15 12:35:25 -0600 |
commit | 28575bd825180b828e92c964aa924a4252aa4c19 (patch) | |
tree | a1c810a7643b9e6d798f09876a2a0ce09220eb6d /ply/lex.py | |
parent | 17a726c462e2ab2e1f769c257b218f7b72e43caf (diff) | |
parent | 3e3b45f814d0317a3d67aba71eec140b845b136b (diff) | |
download | ply-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.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 - |