fix *serious* (new) bug in testbool: by default objects should test
true, not false!!!
This commit is contained in:
parent
448f4bf45a
commit
f9a2d33f01
|
@ -1422,7 +1422,7 @@ testbool(v)
|
||||||
else if (v->ob_type->tp_as_sequence != NULL)
|
else if (v->ob_type->tp_as_sequence != NULL)
|
||||||
res = (*v->ob_type->tp_as_sequence->sq_length)(v);
|
res = (*v->ob_type->tp_as_sequence->sq_length)(v);
|
||||||
else
|
else
|
||||||
res = 0;
|
res = 1;
|
||||||
if (res > 0)
|
if (res > 0)
|
||||||
res = 1;
|
res = 1;
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue