From: Neal Norwitz Date: Sun, 26 Aug 2007 18:20:46 +0000 (+0000) Subject: Restore an assert, but move it to the proper place. X-Git-Tag: v3.0a1~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a62db275469dedb898eb24aa547a183d23c0106d;p=thirdparty%2FPython%2Fcpython.git Restore an assert, but move it to the proper place. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index fe23b00f1c52..d10d26f18547 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;