summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;