Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de> Branch: pyparser-improvements Changeset: r94175:c6a2bdbe2a72 Date: 2018-03-29 12:34 +0200 http://bitbucket.org/pypy/pypy/changeset/c6a2bdbe2a72/
Log: remove redundant assert diff --git a/pypy/interpreter/pyparser/parser.py b/pypy/interpreter/pyparser/parser.py --- a/pypy/interpreter/pyparser/parser.py +++ b/pypy/interpreter/pyparser/parser.py @@ -267,7 +267,6 @@ while state[1] and not state[0]: self.pop() if self.stack is None: - assert self.stack is None # Parsing is done. return True dfa = self.stack.dfa @@ -287,7 +286,6 @@ if is_accepting: self.pop() if self.stack is None: - assert self.stack is None raise ParseError("too much input", token_type, value, lineno, column, line) else: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit