]> granicus.if.org Git - python/commitdiff
Restore an assert, but move it to the proper place.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 18:20:46 +0000 (18:20 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 18:20:46 +0000 (18:20 +0000)
Objects/unicodeobject.c

index fe23b00f1c521ea7c8586f2c24b6833095ebebb3..d10d26f185476675c230ef4db44cacfeaac3aedc 100644 (file)
@@ -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;