Get rid of more uses of string and use unicode
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 @@
/* 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)) {