ripper: return pushed new token instead of the token list
This commit is contained in:
parent
c59b9a8c0c
commit
7898f4243f
@ -185,7 +185,9 @@ class Ripper
|
||||
end
|
||||
|
||||
def _push_token(tok)
|
||||
@buf.push Elem.new([lineno(), column()], __callee__, tok, state())
|
||||
e = Elem.new([lineno(), column()], __callee__, tok, state())
|
||||
@buf.push(e)
|
||||
e
|
||||
end
|
||||
|
||||
def on_error(mesg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user