mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-06 02:22:51 +08:00
Move the parse function to the grammar.
This commit is contained in:
1 parent
3a0cd6d377
commit
7d3438c94d
4 files changed
+99
-97
No files matched your search
+1
-1
@@ -114,7 +114,7 @@ def test_param_splitting():
|
||||
def check(src, result):
|
||||
# Python 2 tuple params should be ignored for now.
|
||||
grammar = load_python_grammar('%s.%s' % sys.version_info[:2])
|
||||
m = parse(src, grammar=grammar)
|
||||
m = grammar.parse(src)
|
||||
if py_version >= 30:
|
||||
assert not list(m.iter_funcdefs())
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user