diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-24 23:26:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-24 23:26:23 (GMT) |
commit | eb8b3a6d61860cdbf52af6e82b44925b81bb39b1 (patch) | |
tree | a8bfc138fdb73139b76b3ea85db528e9617bd953 /Modules/spwdmodule.c | |
parent | 6e024b384271b747e62bef2475f4ec75bd63bb7d (diff) | |
download | cpython-eb8b3a6d61860cdbf52af6e82b44925b81bb39b1.zip cpython-eb8b3a6d61860cdbf52af6e82b44925b81bb39b1.tar.gz cpython-eb8b3a6d61860cdbf52af6e82b44925b81bb39b1.tar.bz2 |
Use unicode for password modules
Diffstat (limited to 'Modules/spwdmodule.c')
-rw-r--r-- | Modules/spwdmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/spwdmodule.c b/Modules/spwdmodule.c index d3f309a..9dd17e4 100644 --- a/Modules/spwdmodule.c +++ b/Modules/spwdmodule.c @@ -57,10 +57,10 @@ static PyTypeObject StructSpwdType; static void -sets(PyObject *v, int i, char* val) +sets(PyObject *v, int i, const char* val) { if (val) - PyStructSequence_SET_ITEM(v, i, PyString_FromString(val)); + PyStructSequence_SET_ITEM(v, i, PyUnicode_FromString(val)); else { PyStructSequence_SET_ITEM(v, i, Py_None); Py_INCREF(Py_None); |