summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-27 04:00:45 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-27 04:00:45 (GMT)
commitbed678449f55a47fad914fa9e04df547c240f810 (patch)
tree143d515c8b240389ce2a2b541c604d6d3f8f79f9 /Modules
parent841e122f0ea1d73ca10a5ee91692d3a6c878af3c (diff)
downloadcpython-bed678449f55a47fad914fa9e04df547c240f810.zip
cpython-bed678449f55a47fad914fa9e04df547c240f810.tar.gz
cpython-bed678449f55a47fad914fa9e04df547c240f810.tar.bz2
Get rid of more uses of string and use unicode
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_lsprof.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index a5740e7..7e85dcf 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -179,10 +179,7 @@ normalizeUserObj(PyObject *obj)
/* built-in function: look up the module name */
PyObject *mod = fn->m_module;
const char *modname;
- if (mod && PyString_Check(mod)) {
- modname = PyString_AS_STRING(mod);
- }
- else if (mod && PyUnicode_Check(mod)) {
+ if (mod && PyUnicode_Check(mod)) {
modname = PyUnicode_AsString(mod);
}
else if (mod && PyModule_Check(mod)) {