Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ab40208a
Commit
ab40208a
authored
Nov 16, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21449: Removed private function _PyUnicode_CompareWithId.
parent
380dcce7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
Include/unicodeobject.h
Include/unicodeobject.h
+0
-9
Objects/unicodeobject.c
Objects/unicodeobject.c
+0
-9
No files found.
Include/unicodeobject.h
View file @
ab40208a
...
@@ -2037,15 +2037,6 @@ PyAPI_FUNC(int) PyUnicode_Compare(
...
@@ -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. */
...
...
Objects/unicodeobject.c
View file @
ab40208a
...
@@ -11011,15 +11011,6 @@ PyUnicode_Compare(PyObject *left, PyObject *right)
...
@@ -11011,15 +11011,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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment