Bugfix in stand-alone parser (Issue #514)

This commit is contained in:
Erez Sh 2020-01-22 22:43:01 +02:00
parent 73427f785c
commit de1f619fcd
2 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ from .lexer import Token
from .tree import Tree
from .visitors import InlineTransformer # XXX Deprecated
from .visitors import Transformer_InPlace
from . import visitors
from .visitors import _vargs_meta, _vargs_meta_inline
###{standalone
from functools import partial, wraps
@ -204,7 +204,7 @@ def inplace_transformer(func):
return f
def apply_visit_wrapper(func, name, wrapper):
if wrapper is visitors._vargs_meta or wrapper is visitors._vargs_meta_inline:
if wrapper is _vargs_meta or wrapper is _vargs_meta_inline:
raise NotImplementedError("Meta args not supported for internal transformer")
@wraps(func)
def f(children):