mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #21449: Removed private function _PyUnicode_CompareWithId.
This commit is contained in:
		
						commit
						503db266a5
					
				
					 2 changed files with 0 additions and 18 deletions
				
			
		|  | @ -2037,15 +2037,6 @@ PyAPI_FUNC(int) PyUnicode_Compare( | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
| #ifndef Py_LIMITED_API | #ifndef Py_LIMITED_API | ||||||
| /* Compare a string with an identifier and return -1, 0, 1 for less than,
 |  | ||||||
|    equal, and greater than, respectively. |  | ||||||
|    Raise an exception and return -1 on error. */ |  | ||||||
| 
 |  | ||||||
| PyAPI_FUNC(int) _PyUnicode_CompareWithId( |  | ||||||
|     PyObject *left,             /* Left string */ |  | ||||||
|     _Py_Identifier *right       /* Right identifier */ |  | ||||||
|     ); |  | ||||||
| 
 |  | ||||||
| /* Test whether a unicode is equal to ASCII identifier.  Return 1 if true,
 | /* Test whether a unicode is equal to ASCII identifier.  Return 1 if true,
 | ||||||
|    0 otherwise.  Return 0 if any argument contains non-ASCII characters. |    0 otherwise.  Return 0 if any argument contains non-ASCII characters. | ||||||
|    Any error occurs inside will be cleared before return. */ |    Any error occurs inside will be cleared before return. */ | ||||||
|  |  | ||||||
|  | @ -10992,15 +10992,6 @@ PyUnicode_Compare(PyObject *left, PyObject *right) | ||||||
|     return -1; |     return -1; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int |  | ||||||
| _PyUnicode_CompareWithId(PyObject *left, _Py_Identifier *right) |  | ||||||
| { |  | ||||||
|     PyObject *right_str = _PyUnicode_FromId(right);   /* borrowed */ |  | ||||||
|     if (right_str == NULL) |  | ||||||
|         return -1; |  | ||||||
|     return PyUnicode_Compare(left, right_str); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| int | int | ||||||
| PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str) | PyUnicode_CompareWithASCIIString(PyObject* uni, const char* str) | ||||||
| { | { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka