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
53cbdaa8
Commit
53cbdaa8
authored
Aug 23, 2007
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert a bunch of constant strings in C to unicode.
parent
d6d2f2f9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
Modules/_curses_panel.c
Modules/_curses_panel.c
+1
-1
Modules/bz2module.c
Modules/bz2module.c
+1
-1
Modules/gcmodule.c
Modules/gcmodule.c
+1
-1
Modules/zlibmodule.c
Modules/zlibmodule.c
+1
-1
Objects/dictobject.c
Objects/dictobject.c
+1
-1
Objects/listobject.c
Objects/listobject.c
+2
-2
Objects/setobject.c
Objects/setobject.c
+1
-1
No files found.
Modules/_curses_panel.c
View file @
53cbdaa8
...
...
@@ -472,7 +472,7 @@ init_curses_panel(void)
PyDict_SetItemString
(
d
,
"error"
,
PyCursesError
);
/* Make the version available */
v
=
Py
String
_FromString
(
PyCursesVersion
);
v
=
Py
Unicode
_FromString
(
PyCursesVersion
);
PyDict_SetItemString
(
d
,
"version"
,
v
);
PyDict_SetItemString
(
d
,
"__version__"
,
v
);
Py_DECREF
(
v
);
...
...
Modules/bz2module.c
View file @
53cbdaa8
...
...
@@ -2048,7 +2048,7 @@ initbz2(void)
if
(
m
==
NULL
)
return
;
PyModule_AddObject
(
m
,
"__author__"
,
Py
String
_FromString
(
__author__
));
PyModule_AddObject
(
m
,
"__author__"
,
Py
Unicode
_FromString
(
__author__
));
Py_INCREF
(
&
BZ2File_Type
);
PyModule_AddObject
(
m
,
"BZ2File"
,
(
PyObject
*
)
&
BZ2File_Type
);
...
...
Modules/gcmodule.c
View file @
53cbdaa8
...
...
@@ -851,7 +851,7 @@ collect(int generation)
if
(
PyErr_Occurred
())
{
if
(
gc_str
==
NULL
)
gc_str
=
Py
String
_FromString
(
"garbage collection"
);
gc_str
=
Py
Unicode
_FromString
(
"garbage collection"
);
PyErr_WriteUnraisable
(
gc_str
);
Py_FatalError
(
"unexpected exception during garbage collection"
);
}
...
...
Modules/zlibmodule.c
View file @
53cbdaa8
...
...
@@ -1039,7 +1039,7 @@ PyInit_zlib(void)
PyModule_AddIntConstant
(
m
,
"Z_SYNC_FLUSH"
,
Z_SYNC_FLUSH
);
PyModule_AddIntConstant
(
m
,
"Z_FULL_FLUSH"
,
Z_FULL_FLUSH
);
ver
=
Py
String
_FromString
(
ZLIB_VERSION
);
ver
=
Py
Unicode
_FromString
(
ZLIB_VERSION
);
if
(
ver
!=
NULL
)
PyModule_AddObject
(
m
,
"ZLIB_VERSION"
,
ver
);
...
...
Objects/dictobject.c
View file @
53cbdaa8
...
...
@@ -194,7 +194,7 @@ PyDict_New(void)
{
register
dictobject
*
mp
;
if
(
dummy
==
NULL
)
{
/* Auto-initialize dummy */
dummy
=
Py
String
_FromString
(
"<dummy key>"
);
dummy
=
Py
Unicode
_FromString
(
"<dummy key>"
);
if
(
dummy
==
NULL
)
return
NULL
;
#ifdef SHOW_CONVERSION_COUNTS
...
...
Objects/listobject.c
View file @
53cbdaa8
...
...
@@ -142,7 +142,7 @@ PyList_GetItem(PyObject *op, Py_ssize_t i)
}
if
(
i
<
0
||
i
>=
Py_Size
(
op
))
{
if
(
indexerr
==
NULL
)
indexerr
=
Py
String
_FromString
(
indexerr
=
Py
Unicode
_FromString
(
"list index out of range"
);
PyErr_SetObject
(
PyExc_IndexError
,
indexerr
);
return
NULL
;
...
...
@@ -362,7 +362,7 @@ list_item(PyListObject *a, Py_ssize_t i)
{
if
(
i
<
0
||
i
>=
Py_Size
(
a
))
{
if
(
indexerr
==
NULL
)
indexerr
=
Py
String
_FromString
(
indexerr
=
Py
Unicode
_FromString
(
"list index out of range"
);
PyErr_SetObject
(
PyExc_IndexError
,
indexerr
);
return
NULL
;
...
...
Objects/setobject.c
View file @
53cbdaa8
...
...
@@ -966,7 +966,7 @@ make_new_set(PyTypeObject *type, PyObject *iterable)
register
PySetObject
*
so
=
NULL
;
if
(
dummy
==
NULL
)
{
/* Auto-initialize dummy */
dummy
=
Py
String
_FromString
(
"<dummy key>"
);
dummy
=
Py
Unicode
_FromString
(
"<dummy key>"
);
if
(
dummy
==
NULL
)
return
NULL
;
}
...
...
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