commit | c729b8e92f044688e1b9d1cb24541c6f3d297415 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 06 02:36:59 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 06 02:36:59 2011 +0200 |
tree | 9610ff85679f4590b1f4e2cb33e9d7bfd1bb0acc | |
parent | b62a7b268af8d58e5565b44a38c923917d7b62fe [diff] |
Fix a compiler warning: don't define unicode_is_singleton() in release mode
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 234bd01..21cafb3 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -243,7 +243,9 @@ PyObject *to, Py_ssize_t to_start, PyObject *from, Py_ssize_t from_start, Py_ssize_t how_many); +#ifdef Py_DEBUG static int unicode_is_singleton(PyObject *unicode); +#endif static PyObject * unicode_encode_call_errorhandler(const char *errors,