diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-07-04 22:53:45 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-07-04 22:53:45 -0500 |
commit | 191a8f0a342f5f6c9fc6f1572a33e389d3f682b2 (patch) | |
tree | 8cbc6c0a9c77e9717a83935d302c3f7cef420d5f /Objects/unicodeobject.c | |
parent | d34c246baf7bdfb2d5dacf04b7d5fae76a20ed2c (diff) | |
parent | ac2ef65c320606e30132ca58bbd6b5d6861ce644 (diff) | |
download | cpython-git-191a8f0a342f5f6c9fc6f1572a33e389d3f682b2.tar.gz |
merge heads
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1eaf2e977d..796e0b4f27 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -42,6 +42,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "Python.h" #include "ucnhash.h" #include "bytes_methods.h" +#include "stringlib/eq.h" #ifdef MS_WINDOWS #include <windows.h> @@ -10887,6 +10888,12 @@ PyUnicode_RichCompare(PyObject *left, PyObject *right, int op) } int +_PyUnicode_EQ(PyObject *aa, PyObject *bb) +{ + return unicode_eq(aa, bb); +} + +int PyUnicode_Contains(PyObject *container, PyObject *element) { PyObject *str, *sub; |