Browse Source

Bugfix for issue #6. Thanks DaRasch!

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan 7 years ago
parent
commit
e20b54be2f
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      lark/utils.py

+ 8
- 2
lark/utils.py View File

@@ -63,11 +63,17 @@ def inline_args(f):
def _f_builtin(_self, args):
return f(*args)
return _f_builtin
else:
@functools.wraps(f)
elif isinstance(f, types.MethodType):
@functools.wraps(f.__func__)
def _f(self, args):
return f.__func__(self, *args)
return _f
else:
@functools.wraps(f.__call__.__func__)
def _f(self, args):
return f.__call__.__func__(self, *args)
return _f



try:


Loading…
Cancel
Save