summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-07-04 22:53:45 -0500
committerBenjamin Peterson <benjamin@python.org>2015-07-04 22:53:45 -0500
commit191a8f0a342f5f6c9fc6f1572a33e389d3f682b2 (patch)
tree8cbc6c0a9c77e9717a83935d302c3f7cef420d5f /Objects/unicodeobject.c
parentd34c246baf7bdfb2d5dacf04b7d5fae76a20ed2c (diff)
parentac2ef65c320606e30132ca58bbd6b5d6861ce644 (diff)
downloadcpython-git-191a8f0a342f5f6c9fc6f1572a33e389d3f682b2.tar.gz
merge heads
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c7
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;