Remove test for unimplemented sq_repeat method (see tupleobject comments)

This commit is contained in:
Guido van Rossum 1991-06-04 19:36:54 +00:00
parent f380e66c0f
commit 067b9c0aef
1 changed files with 0 additions and 4 deletions

View File

@ -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));
}