Grammar versioning has now a smoother interface.

This commit is contained in:
Dave Halter
2015-12-25 19:30:25 +01:00
parent a373e34229
commit eb2e41f771
4 changed files with 11 additions and 9 deletions

View File

@@ -190,7 +190,7 @@ def test_param_splitting():
"""
def check(src, result):
# Python 2 tuple params should be ignored for now.
grammar = load_grammar('grammar%s.%s' % sys.version_info[:2])
grammar = load_grammar('%s.%s' % sys.version_info[:2])
m = ParserWithRecovery(grammar, u(src)).module
if is_py3:
assert not m.subscopes