From eec47f35569f184924e851fdc64f67cd79ffd2e3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 23 Aug 2007 18:08:33 +0000 Subject: Backport fix of #1752175. --- Python/ast.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 2a27b64698..c96c503542 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3115,6 +3115,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) { @@ -3176,6 +3177,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). -- cgit v1.2.1