summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-09-12 16:40:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-09-12 16:40:53 (GMT)
commitd4ac96a3363b7bb9f587abfd41fda3299391fb7d (patch)
treefe5ed6e99b6ccc592127742595849d0a156141f6 /Objects/unicodeobject.c
parent62d52fd966af1606a0c0418aa532bbf197842e1a (diff)
downloadcpython-d4ac96a3363b7bb9f587abfd41fda3299391fb7d.zip
cpython-d4ac96a3363b7bb9f587abfd41fda3299391fb7d.tar.gz
cpython-d4ac96a3363b7bb9f587abfd41fda3299391fb7d.tar.bz2
use return NULL; it's just as correct
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 92df1ce..489c98c 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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