summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 13:55:37 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-12 13:55:37 (GMT)
commitf7c6d868325b999c32ec759934eac7a96c4b56fd (patch)
treec19cec947889cd221e2a24e342744ab0b9844b92 /Modules
parenta1884664ebef66fab69a54239e377d743a6a818f (diff)
downloadcpython-f7c6d868325b999c32ec759934eac7a96c4b56fd.zip
cpython-f7c6d868325b999c32ec759934eac7a96c4b56fd.tar.gz
cpython-f7c6d868325b999c32ec759934eac7a96c4b56fd.tar.bz2
Use a unicode string as unique_key instead of 8-bit string.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index e5c1470..bfb0559 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -2027,7 +2027,7 @@ unique_key(CDataObject *target, Py_ssize_t index)
#endif
target = target->b_base;
}
- return PyString_FromStringAndSize(string, cp-string);
+ return PyUnicode_FromStringAndSize(string, cp-string);
}
/*