From: Ɓukasz Langa Date: Wed, 14 Mar 2018 21:20:16 +0000 (-0700) Subject: Actually use the bundled Grammar.txt X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/f5cc3e35562c3b0b2d8efcbfdb326a2360fff976?ds=sidebyside Actually use the bundled Grammar.txt --- 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)