diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-09-16 03:41:45 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-09-16 03:41:45 (GMT) |
commit | deb2dc6658b112da80f522a098eb60f339403289 (patch) | |
tree | 2e70be789ff65631e3a09f04e739f9a8467e2e90 /Python | |
parent | 364f6becadd79698f8cb2593be7510cd7fe938a6 (diff) | |
download | cpython-deb2dc6658b112da80f522a098eb60f339403289.zip cpython-deb2dc6658b112da80f522a098eb60f339403289.tar.gz cpython-deb2dc6658b112da80f522a098eb60f339403289.tar.bz2 |
Change checks of PyUnicode_Resize() return value for clarity.
The unicode_resize() family only returns -1 or 0 so simply checking
for != 0 is sufficient, but somewhat unclear. Many Python API
functions return < 0 on error, reserving the right to return 0 or 1 on
success. Change the call sites for consistency with these calls.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions