Simplify
This commit is contained in:
parent
ec6ff821f0
commit
eeb9610ec1
@ -1295,8 +1295,8 @@ class Parser(object):
|
|||||||
for i, s in enumerate(statements):
|
for i, s in enumerate(statements):
|
||||||
if isinstance(s, self.ast.SingleSubstStatement):
|
if isinstance(s, self.ast.SingleSubstStatement):
|
||||||
statements[i] = self.ast.MultipleSubstStatement(s.location,
|
statements[i] = self.ast.MultipleSubstStatement(s.location,
|
||||||
s.prefix, tuple(s.glyphs[0].glyphSet())[0], s.suffix,
|
s.prefix, s.glyphs[0].glyphSet()[0], s.suffix,
|
||||||
tuple([list(r.glyphSet())[0] for r in s.replacements]))
|
[r.glyphSet()[0] for r in s.replacements])
|
||||||
|
|
||||||
def is_cur_keyword_(self, k):
|
def is_cur_keyword_(self, k):
|
||||||
if self.cur_token_type_ is Lexer.NAME:
|
if self.cur_token_type_ is Lexer.NAME:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user