]> granicus.if.org Git - python/commitdiff
Place #ifdef Py_USING_UNICODE around decode_unicode().
authorGeorg Brandl <georg@python.org>
Mon, 6 Aug 2007 07:37:58 +0000 (07:37 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 6 Aug 2007 07:37:58 +0000 (07:37 +0000)
Python/ast.c

index b426df290f7a32889ad3ccfbb189f1a25c736d19..956ee205e93ecc9aec84c63278cce5be0be55845 100644 (file)
@@ -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).