summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 5b72d8e..72f5eb1 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1422,7 +1422,7 @@ testbool(v)
else if (v->ob_type->tp_as_sequence != NULL)
res = (*v->ob_type->tp_as_sequence->sq_length)(v);
else
- res = 0;
+ res = 1;
if (res > 0)
res = 1;
return res;