Remove support for parsing Python 2

This commit is contained in:
Dave Halter
2020-07-24 14:48:02 +02:00
parent 5ac4bac368
commit b5e2e67a4d
17 changed files with 197 additions and 809 deletions

View File

@@ -10,12 +10,12 @@ def get_python_files(path):
yield os.path.join(dir_path, file_name)
def test_on_itself(each_py3_version):
def test_on_itself(each_version):
"""
There are obviously no syntax erros in the Python code of parso. However
parso should output the same for all versions.
"""
grammar = parso.load_grammar(version=each_py3_version)
grammar = parso.load_grammar(version=each_version)
path = os.path.dirname(os.path.dirname(__file__)) + '/parso'
for file in get_python_files(path):
tree = grammar.parse(path=file)