diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-01 22:04:29 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-01 22:04:29 (GMT) |
commit | 9ca3ffac94ad715e23787142aff4b7a465c4c744 (patch) | |
tree | 81fd717742ff6ee095eb4fcd1cb7672709d32b7d /Objects | |
parent | e157cf10126db5d560629145a02cd91fc6763733 (diff) | |
download | cpython-9ca3ffac94ad715e23787142aff4b7a465c4c744.zip cpython-9ca3ffac94ad715e23787142aff4b7a465c4c744.tar.gz cpython-9ca3ffac94ad715e23787142aff4b7a465c4c744.tar.bz2 |
== -1 is convention
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3d8c895..829f19c 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8770,7 +8770,7 @@ _PyUnicode_TranslateCharmap(PyObject *input, collstart, collend, &newpos); if (repunicode == NULL) goto onError; - if (PyUnicode_READY(repunicode) < 0) { + if (PyUnicode_READY(repunicode) == -1) { Py_DECREF(repunicode); goto onError; } |