]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove test for unimplemented sq_repeat method (see tupleobject comments)
authorGuido van Rossum <guido@python.org>
Tue, 4 Jun 1991 19:36:54 +0000 (19:36 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Jun 1991 19:36:54 +0000 (19:36 +0000)
Python/ceval.c

index 82410d5a3aba8331d1c827db3afc8db2016d947f..e24866c9faa5eb8cb4e506965a2d1dc2c2ef2c07 100644 (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));
        }