diff Python/ast.c @ 42459:dbfc3cf1522d legacy-trunk

Place #ifdef Py_USING_UNICODE around decode_unicode().
author Georg Brandl <georg@python.org>
date Mon, 06 Aug 2007 07:37:58 +0000
parents 6775ee6d89d3
children 995677219a65
line wrap: on
line diff
--- a/Python/ast.c	Sun Aug 05 03:23:31 2007 +0000
+++ b/Python/ast.c	Mon Aug 06 07:37:58 2007 +0000
@@ -3143,6 +3143,7 @@
 #endif
 }
 
+#ifdef Py_USING_UNICODE
 static PyObject *
 decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
 {
@@ -3204,6 +3205,7 @@
         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).