summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-06-04 19:36:54 (GMT)
committerGuido van Rossum <guido@python.org>1991-06-04 19:36:54 (GMT)
commit067b9c0aeff57b0a2df4c7abc4e9a51c5c26ec9f (patch)
tree5ea019a3273fe4f98d2cc9d638a3afe5385d041b
parentf380e66c0f0afd748fa5a7e1a1a86d2d9acee1bb (diff)
downloadcpython-067b9c0aeff57b0a2df4c7abc4e9a51c5c26ec9f.zip
cpython-067b9c0aeff57b0a2df4c7abc4e9a51c5c26ec9f.tar.gz
cpython-067b9c0aeff57b0a2df4c7abc4e9a51c5c26ec9f.tar.bz2
Remove test for unimplemented sq_repeat method (see tupleobject comments)
-rw-r--r--Python/ceval.c4
1 files changed, 0 insertions, 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));
}