From: Georg Brandl Date: Mon, 6 Aug 2007 07:37:58 +0000 (+0000) Subject: Place #ifdef Py_USING_UNICODE around decode_unicode(). X-Git-Tag: v2.6a1~1522 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69ff5acc8b8855dc30ddccbdc87ec2d0d596139f;p=python Place #ifdef Py_USING_UNICODE around decode_unicode(). --- diff --git a/Python/ast.c b/Python/ast.c index b426df290f..956ee205e9 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3143,6 +3143,7 @@ decode_utf8(const char **sPtr, const char *end, char* encoding) #endif } +#ifdef Py_USING_UNICODE static PyObject * decode_unicode(const char *s, size_t len, int rawmode, const char *encoding) { @@ -3204,6 +3205,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding) Py_XDECREF(u); return v; } +#endif /* s is a Python string literal, including the bracketing quote characters, * and r &/or u prefixes (if any), and embedded escape sequences (if any).