[Python-checkins] Fix typo in the parser generator (GH-18603)

xatier webhook-mailer at python.org
Sun Mar 8 22:58:28 EDT 2020


https://github.com/python/cpython/commit/d7a04a842599c4838a5fdf839842d414a302d7e2
commit: d7a04a842599c4838a5fdf839842d414a302d7e2
branch: master
author: xatier <xatierlike at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-09T02:58:24Z
summary:

Fix typo in the parser generator (GH-18603)

files:
M Parser/pgen/automata.py

diff --git a/Parser/pgen/automata.py b/Parser/pgen/automata.py
index d04ca7c6e80b5..f2ed221e2852c 100644
--- a/Parser/pgen/automata.py
+++ b/Parser/pgen/automata.py
@@ -236,7 +236,7 @@ def add_closure(nfa_state, base_nfa_set):
                 if nfa_arc.label is None:
                     add_closure(nfa_arc.target, base_nfa_set)
 
-        # Calculte the epsilon-closure of the starting state
+        # Calculate the epsilon-closure of the starting state
         base_nfa_set = set()
         add_closure(nfa.start, base_nfa_set)
 



More information about the Python-checkins mailing list