summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-26 18:20:46 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-26 18:20:46 (GMT)
commita62db275469dedb898eb24aa547a183d23c0106d (patch)
tree4c458de02c0132ed71f998472f226b4c185b3dfb /Objects
parent7f9d29c660c6bd89d2febe0c0507f97513160a40 (diff)
downloadcpython-a62db275469dedb898eb24aa547a183d23c0106d.zip
cpython-a62db275469dedb898eb24aa547a183d23c0106d.tar.gz
cpython-a62db275469dedb898eb24aa547a183d23c0106d.tar.bz2
Restore an assert, but move it to the proper place.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index fe23b00..d10d26f 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9194,7 +9194,7 @@ formatteriter_next(formatteriterobject *it)
/* all of the SubString objects point into it->str, so no
memory management needs to be done on them */
-
+ assert(0 <= result && result <= 2);
if (result == 0) {
/* error has already been set */
return NULL;