mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-18 22:22:22 +00:00
Return a new reference for NotImplemented in font feature comparison
This commit is contained in:
parent
aee2e560c0
commit
dbab66501d
1 changed files with 1 additions and 1 deletions
|
|
@ -2777,7 +2777,7 @@ parsed_font_feature_repr(PyObject *self_) {
|
|||
|
||||
static PyObject *
|
||||
parsed_font_feature_cmp(PyObject *self, PyObject *other, int op) {
|
||||
if (op != Py_EQ && op != Py_NE) return Py_NotImplemented;
|
||||
if (op != Py_EQ && op != Py_NE) Py_RETURN_NOTIMPLEMENTED;
|
||||
if (!PyObject_TypeCheck(other, &ParsedFontFeature_Type)) {
|
||||
if (op == Py_EQ) Py_RETURN_FALSE;
|
||||
Py_RETURN_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue