[Python-checkins] r56762 - python/trunk/Python/ast.c

georg.brandl python-checkins at python.org
Mon Aug 6 09:37:59 CEST 2007


Author: georg.brandl
Date: Mon Aug  6 09:37:58 2007
New Revision: 56762

Modified:
   python/trunk/Python/ast.c
Log:
Place #ifdef Py_USING_UNICODE around decode_unicode().


Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c	(original)
+++ python/trunk/Python/ast.c	Mon Aug  6 09:37:58 2007
@@ -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).


More information about the Python-checkins mailing list