From 067b9c0aeff57b0a2df4c7abc4e9a51c5c26ec9f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 4 Jun 1991 19:36:54 +0000 Subject: Remove test for unimplemented sq_repeat method (see tupleobject comments) --- Python/ceval.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 82410d5..e24866c 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1040,10 +1040,6 @@ mul(v, w) "can't multiply sequence with non-int"); return NULL; } - if (tp->tp_as_sequence->sq_repeat == NULL) { - err_setstr(TypeError, "sequence does not support *"); - return NULL; - } return (*tp->tp_as_sequence->sq_repeat) (v, (int)getintvalue(w)); } -- cgit v0.12