From f5cc3e35562c3b0b2d8efcbfdb326a2360fff976 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Langa?= Date: Wed, 14 Mar 2018 14:20:16 -0700 Subject: [PATCH] Actually use the bundled Grammar.txt --- blib2to3/pygram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blib2to3/pygram.py b/blib2to3/pygram.py index 919624e..c4ff9d1 100644 --- a/blib2to3/pygram.py +++ b/blib2to3/pygram.py @@ -29,12 +29,12 @@ class Symbols(object): setattr(self, name, symbol) -python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE) +python_grammar = driver.load_packaged_grammar("blib2to3", _GRAMMAR_FILE) python_symbols = Symbols(python_grammar) python_grammar_no_print_statement = python_grammar.copy() del python_grammar_no_print_statement.keywords["print"] -pattern_grammar = driver.load_packaged_grammar("lib2to3", _PATTERN_GRAMMAR_FILE) +pattern_grammar = driver.load_packaged_grammar("blib2to3", _PATTERN_GRAMMAR_FILE) pattern_symbols = Symbols(pattern_grammar) -- 2.39.5