Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 33620:27aa0e119330 legacy-trunk
Replaced a test with an assertion.
(Suggested by Michael Hudson.)
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Tue, 28 Sep 2004 17:22:12 +0000 |
| parents | 2b49b4a85d9e |
| children | cd58a9b4ba66 |
line wrap: on
line diff
--- a/Python/compile.c Tue Sep 28 16:12:50 2004 +0000 +++ b/Python/compile.c Tue Sep 28 17:22:12 2004 +0000 @@ -509,10 +509,8 @@ if (memchr(lineno, 255, tabsiz) != NULL) goto exitUnchanged; - if (!PyString_Check(code)) - goto exitUnchanged; - /* Avoid situations where jump retargeting could overflow */ + assert(PyString_Check(code)); codelen = PyString_Size(code); if (codelen > 32700) goto exitUnchanged;
