From bfbc29cb8f5797f239a6ad8944edfea4e153cb75 Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Mon, 19 Dec 2016 18:35:14 +0800 Subject: [PATCH] Issue #29009: Remove outdated doc of PyUnicode_RichCompare. --- Doc/c-api/unicode.rst | 4 ---- Include/unicodeobject.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 3c7b9cc4637..457a9be5a63 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -1663,10 +1663,6 @@ They all return *NULL* or ``-1`` if an exception occurs. * :const:`Py_True` or :const:`Py_False` for successful comparisons * :const:`Py_NotImplemented` in case the type combination is unknown - Note that :const:`Py_EQ` and :const:`Py_NE` comparisons can cause a - :exc:`UnicodeWarning` in case the conversion of the arguments to Unicode fails - with a :exc:`UnicodeDecodeError`. - Possible values for *op* are :const:`Py_GT`, :const:`Py_GE`, :const:`Py_EQ`, :const:`Py_NE`, :const:`Py_LT`, and :const:`Py_LE`. diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 90f2b72c206..9308a6aa96a 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -2047,10 +2047,6 @@ PyAPI_FUNC(int) _PyUnicode_EqualToASCIIString( - Py_True or Py_False for successful comparisons - Py_NotImplemented in case the type combination is unknown - Note that Py_EQ and Py_NE comparisons can cause a UnicodeWarning in - case the conversion of the arguments to Unicode fails with a - UnicodeDecodeError. - Possible values for op: Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE