summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-11-15 20:48:54 (GMT)
committerThomas Heller <theller@ctypes.org>2007-11-15 20:48:54 (GMT)
commit519a042c7c248e3ae23cf2a3c1152f91a5bd2791 (patch)
tree3eaef917fda4776da67d0426754f810e59d9f183 /Modules/cjkcodecs
parent6e8ea0fd9c46978cf3101bd3ea94022751464ad9 (diff)
downloadcpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.zip
cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.tar.gz
cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.tar.bz2
Replace PyObject_Unicode with PyObject_Str everywhere, and remove the
#define for PyObject_Unicode in object.h.
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index 701b112..3e4e22d 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -552,7 +552,7 @@ MultibyteCodec_Encode(MultibyteCodecObject *self,
if (PyUnicode_Check(arg))
ucvt = NULL;
else {
- arg = ucvt = PyObject_Unicode(arg);
+ arg = ucvt = PyObject_Str(arg);
if (arg == NULL)
return NULL;
else if (!PyUnicode_Check(arg)) {
@@ -728,7 +728,7 @@ encoder_encode_stateful(MultibyteStatefulEncoderContext *ctx,
if (PyUnicode_Check(unistr))
ucvt = NULL;
else {
- unistr = ucvt = PyObject_Unicode(unistr);
+ unistr = ucvt = PyObject_Str(unistr);
if (unistr == NULL)
return NULL;
else if (!PyUnicode_Check(unistr)) {