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
fa331631
Commit
fa331631
authored
Jun 13, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discard unused function.
parent
ff0ffb3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
Objects/typeobject.c
Objects/typeobject.c
+0
-34
No files found.
Objects/typeobject.c
View file @
fa331631
...
...
@@ -1582,40 +1582,6 @@ valid_identifier(PyObject *s)
return
1
;
}
/* Replace Unicode objects in slots. */
static
PyObject
*
_unicode_to_string
(
PyObject
*
slots
,
Py_ssize_t
nslots
)
{
PyObject
*
tmp
=
NULL
;
PyObject
*
slot_name
,
*
new_name
;
Py_ssize_t
i
;
for
(
i
=
0
;
i
<
nslots
;
i
++
)
{
if
(
PyUnicode_Check
(
slot_name
=
PyTuple_GET_ITEM
(
slots
,
i
)))
{
if
(
tmp
==
NULL
)
{
tmp
=
PySequence_List
(
slots
);
if
(
tmp
==
NULL
)
return
NULL
;
}
new_name
=
_PyUnicode_AsDefaultEncodedString
(
slot_name
,
NULL
);
if
(
new_name
==
NULL
)
{
Py_DECREF
(
tmp
);
return
NULL
;
}
Py_INCREF
(
new_name
);
PyList_SET_ITEM
(
tmp
,
i
,
new_name
);
Py_DECREF
(
slot_name
);
}
}
if
(
tmp
!=
NULL
)
{
slots
=
PyList_AsTuple
(
tmp
);
Py_DECREF
(
tmp
);
}
return
slots
;
}
/* Forward */
static
int
object_init
(
PyObject
*
self
,
PyObject
*
args
,
PyObject
*
kwds
);
...
...
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