diff options
author | Thomas Robitaille <thomas.robitaille@gmail.com> | 2018-02-09 11:18:01 +0000 |
---|---|---|
committer | Thomas Robitaille <thomas.robitaille@gmail.com> | 2018-02-09 11:18:01 +0000 |
commit | 3e3b45f814d0317a3d67aba71eec140b845b136b (patch) | |
tree | b13f5ffb3647769c90c418ca34b2860c20765aa2 /ply/lex.py | |
parent | 6860652be4069eaac8be88af1400f69a5197284f (diff) | |
download | ply-3e3b45f814d0317a3d67aba71eec140b845b136b.tar.gz |
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 - |