load_python_grammar -> load_grammar.

This commit is contained in:
Dave Halter
2017-05-25 13:28:24 -04:00
parent fab9edff87
commit 333046c253
6 changed files with 18 additions and 18 deletions

View File

@@ -9,14 +9,14 @@ test_grammar.py files from both Python 2 and Python 3.
from textwrap import dedent
from parso._compatibility import py_version
from parso import load_python_grammar
from parso import load_grammar
from parso import ParserSyntaxError
import pytest
def parse(code, version='3.4'):
code = dedent(code) + "\n\n"
grammar = load_python_grammar(version=version)
grammar = load_grammar(version=version)
return grammar.parse(code, error_recovery=False)