diff options
author | Armin Rigo <arigo@tunes.org> | 2017-02-06 09:33:59 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2017-02-06 09:33:59 +0100 |
commit | 0e4e34033dcbe9d4ff4070e5754fac392d79fff3 (patch) | |
tree | b46616818befa2139fe15ece4e05b2bcb78c9086 /c/minibuffer.h | |
parent | 2ad2c47b3b76da0d683cd5bb5c404ff7100b535b (diff) | |
download | cffi-0e4e34033dcbe9d4ff4070e5754fac392d79fff3.tar.gz |
Remove a warning that doesn't really make sense here, tweak tests
Diffstat (limited to 'c/minibuffer.h')
-rw-r--r-- | c/minibuffer.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/c/minibuffer.h b/c/minibuffer.h index e8bf3b2..121f8e7 100644 --- a/c/minibuffer.h +++ b/c/minibuffer.h @@ -173,12 +173,6 @@ mb_richcompare(PyObject *self, PyObject *other, int op) if (rc < 0) return NULL; if (rc) { - if (Py_BytesWarningFlag && (op == Py_EQ || op == Py_NE)) { - if (PyErr_WarnEx(PyExc_BytesWarning, - "Comparison between bytearray and string", 1)) - return NULL; - } - Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } |