summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-23 20:28:10 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-23 20:28:10 (GMT)
commitd6d2f2f93919d035929ac9d02244657a9b604413 (patch)
treef43193d7a7cac213b7d6510a7a564c657cd0d6e2 /Modules
parentfe096d2e2d22c97fb343441bc04add675b6a070b (diff)
downloadcpython-d6d2f2f93919d035929ac9d02244657a9b604413.zip
cpython-d6d2f2f93919d035929ac9d02244657a9b604413.tar.gz
cpython-d6d2f2f93919d035929ac9d02244657a9b604413.tar.bz2
Use unicode.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hashopenssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index e6ac154..7d45e57 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -215,7 +215,7 @@ EVP_repr(PyObject *self)
{
char buf[100];
PyOS_snprintf(buf, sizeof(buf), "<%s HASH object @ %p>",
- PyString_AsString(((EVPobject *)self)->name), self);
+ PyUnicode_AsString(((EVPobject *)self)->name), self);
return PyUnicode_FromString(buf);
}
@@ -416,7 +416,7 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict)
/* used in the init function to setup a constructor */
#define INIT_CONSTRUCTOR_CONSTANTS(NAME) do { \
- CONST_ ## NAME ## _name_obj = PyString_FromString(#NAME); \
+ CONST_ ## NAME ## _name_obj = PyUnicode_FromString(#NAME); \
if (EVP_get_digestbyname(#NAME)) { \
CONST_new_ ## NAME ## _ctx_p = &CONST_new_ ## NAME ## _ctx; \
EVP_DigestInit(CONST_new_ ## NAME ## _ctx_p, EVP_get_digestbyname(#NAME)); \