summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-25 07:41:59 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-25 07:41:59 (GMT)
commita369c5aba6fcc545b0d3d40050da6e2ff33e06fb (patch)
tree474b4fecb47b345fdd1305e908db7716c83ca89c /PC
parent1978470c3b5bd5729bd90b21e0700a6a60f08622 (diff)
downloadcpython-a369c5aba6fcc545b0d3d40050da6e2ff33e06fb.zip
cpython-a369c5aba6fcc545b0d3d40050da6e2ff33e06fb.tar.gz
cpython-a369c5aba6fcc545b0d3d40050da6e2ff33e06fb.tar.bz2
Use unicode
Diffstat (limited to 'PC')
-rw-r--r--PC/winsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winsound.c b/PC/winsound.c
index 9ff3b7e..9fc7f6f 100644
--- a/PC/winsound.c
+++ b/PC/winsound.c
@@ -202,7 +202,7 @@ static struct PyMethodDef sound_methods[] =
static void
add_define(PyObject *dict, const char *key, long value)
{
- PyObject *k=PyString_FromString(key);
+ PyObject *k=PyUnicode_FromString(key);
PyObject *v=PyLong_FromLong(value);
if(v&&k)
{