]> granicus.if.org Git - python/commitdiff
use return NULL; it's just as correct
authorBenjamin Peterson <benjamin@python.org>
Sun, 12 Sep 2010 16:40:53 +0000 (16:40 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 12 Sep 2010 16:40:53 +0000 (16:40 +0000)
Objects/unicodeobject.c

index 92df1ce90076a109a3c804dfeefc12b514d37595..489c98cd832db6830633099bf9b9dd862f2bc5af 100644 (file)
@@ -769,7 +769,7 @@ PyUnicode_FromFormatV(const char *format, va_list vargs)
                 "PyUnicode_FromFormatV() expects an ASCII-encoded format "
                 "string, got a non-ASCII byte: 0x%02x",
                 (unsigned char)*f);
-             goto fail;
+             return NULL;
          }
     }
     /* step 2: allocate memory for the results of