commit | 06cc973d06ff0b6f1126874c142a2a21ad8e497c | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Sep 28 17:22:12 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Sep 28 17:22:12 2004 +0000 |
tree | 59bc8c677d709d4b300e041866fb253ee375a1ea | |
parent | 01ba799244388d6c5c0ada3d4d46a6218b273291 [diff] |
Replaced a test with an assertion. (Suggested by Michael Hudson.)
diff --git a/Python/compile.c b/Python/compile.c index 9beb7da..5a57a47 100644 --- a/Python/compile.c +++ b/Python/compile.c
@@ -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;