Commit 067b9c0a authored by Guido van Rossum's avatar Guido van Rossum

Remove test for unimplemented sq_repeat method (see tupleobject comments)

parent f380e66c
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment