[Python-checkins] cpython: ready the correct string

benjamin.peterson python-checkins at python.org
Mon Jan 2 16:07:50 CET 2012


http://hg.python.org/cpython/rev/5a75ce7e5d49
changeset: 74238:5a75ce7e5d49
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jan 02 09:07:38 2012 -0600
summary:
 ready the correct string
files:
 Objects/unicodeobject.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9139,7 +9139,7 @@
 Py_DECREF(str_obj);
 return -1;
 }
- if (PyUnicode_READY(substr) == -1 || PyUnicode_READY(str_obj) == -1) {
+ if (PyUnicode_READY(sub_obj) == -1 || PyUnicode_READY(str_obj) == -1) {
 Py_DECREF(substr);
 Py_DECREF(str_obj);
 return -1;
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /