[pypy-commit] pypy pyparser-improvements: remove redundant assert

cfbolz pypy.commits at gmail.com
Thu Mar 29 14:23:31 EDT 2018


Author: Carl Friedrich Bolz-Tereick <cfbolz at 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:


More information about the pypy-commit mailing list