mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Remove test for unimplemented sq_repeat method (see tupleobject comments)
This commit is contained in:
parent
f380e66c0f
commit
067b9c0aef
1 changed files with 0 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue