Fix couple of dead code paths (GH-7418)

This commit is contained in:
David Carlier 2019-05-17 23:46:22 +00:00 committed by Cheryl Sabella
parent e7b1136ec3
commit 27ee0f8551
4 changed files with 0 additions and 7 deletions

View file

@ -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;