diff options
author | David Carlier <dcarlier@afilias.info> | 2019-05-17 23:46:22 (GMT) |
---|---|---|
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-05-17 23:46:22 (GMT) |
commit | 27ee0f8551a6d576a65e20da90acf9f3cb412c35 (patch) | |
tree | 1c00bfad59680bc22ebf0bf0b49a88fd91375b6f /Objects | |
parent | e7b1136ec3b40d174d71f2195cceaadf4fe9539c (diff) | |
download | cpython-27ee0f8551a6d576a65e20da90acf9f3cb412c35.zip cpython-27ee0f8551a6d576a65e20da90acf9f3cb412c35.tar.gz cpython-27ee0f8551a6d576a65e20da90acf9f3cb412c35.tar.bz2 |
Fix couple of dead code paths (GH-7418)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bytesobject.c | 2 | ||||
-rw-r--r-- | Objects/stringlib/fastsearch.h | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index ebbdb7c..41453b2 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -1617,12 +1617,10 @@ bytes_richcompare(PyBytesObject *a, PyBytesObject *b, int op) case Py_GE: /* a string is equal to itself */ Py_RETURN_TRUE; - break; case Py_NE: case Py_LT: case Py_GT: Py_RETURN_FALSE; - break; default: PyErr_BadArgument(); return NULL; diff --git a/Objects/stringlib/fastsearch.h b/Objects/stringlib/fastsearch.h index a8a51d5..46fcf35 100644 --- a/Objects/stringlib/fastsearch.h +++ b/Objects/stringlib/fastsearch.h @@ -192,7 +192,6 @@ FASTSEARCH(const STRINGLIB_CHAR* s, Py_ssize_t n, } return count; } - return -1; } mlast = m - 1; |