summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-08 15:05:18 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-08 15:05:18 (GMT)
commitad80c6bb2afa6d46fc19104127d7b02f8a5e2169 (patch)
tree3e1a47152e5f36929f0730c70604b904eb6e9f99 /Modules/_tkinter.c
parent6349e8956774f675eb10a81d3498eb613ebb397f (diff)
downloadcpython-ad80c6bb2afa6d46fc19104127d7b02f8a5e2169.zip
cpython-ad80c6bb2afa6d46fc19104127d7b02f8a5e2169.tar.gz
cpython-ad80c6bb2afa6d46fc19104127d7b02f8a5e2169.tar.bz2
Build with --disable-unicode again. Fixes #1158607.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 76c2a44..632f3d6 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -838,8 +838,10 @@ static PyGetSetDef PyTclObject_getsetlist[] = {
};
static PyMethodDef PyTclObject_methods[] = {
+#ifdef Py_USING_UNICODE
{"__unicode__", (PyCFunction)PyTclObject_unicode, METH_NOARGS,
PyTclObject_unicode__doc__},
+#endif
{0}
};
@@ -991,7 +993,7 @@ FromObj(PyObject* tkapp, Tcl_Obj *value)
}
}
#else
- res = PyString_FromStringAndSize(value->bytes, value->length);
+ result = PyString_FromStringAndSize(value->bytes, value->length);
#endif
return result;
}