[Python-checkins] r46155 - python/trunk/Objects/unicodeobject.c
Neal Norwitz
nnorwitz at gmail.com
Wed May 24 09:17:39 CEST 2006
On 5/23/06, fredrik.lundh <python-checkins at python.org> wrote:
> Author: fredrik.lundh
> Date: Tue May 23 21:47:35 2006
> New Revision: 46155
>
> Modified:
> python/trunk/Objects/unicodeobject.c
> Log:
> return 0 on misses, not -1.
>
>
>
> Modified: python/trunk/Objects/unicodeobject.c
> ==============================================================================
> --- python/trunk/Objects/unicodeobject.c (original)
> +++ python/trunk/Objects/unicodeobject.c Tue May 23 21:47:35 2006
> @@ -172,7 +172,7 @@
> if (set[i] == chr)
> return 1;
>
> - return -1;
> + return 0;
In that case, can't you just do:
return set[i] == chr;
More information about the Python-checkins
mailing list