summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-06 07:37:58 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-06 07:37:58 (GMT)
commit69ff5acc8b8855dc30ddccbdc87ec2d0d596139f (patch)
tree2aa203a9b20b5eb437e18d8256e3c855db49adaf
parent2ef7582b52ad2a08d633d01c3f77734eabe13159 (diff)
downloadcpython-69ff5acc8b8855dc30ddccbdc87ec2d0d596139f.zip
cpython-69ff5acc8b8855dc30ddccbdc87ec2d0d596139f.tar.gz
cpython-69ff5acc8b8855dc30ddccbdc87ec2d0d596139f.tar.bz2
Place #ifdef Py_USING_UNICODE around decode_unicode().
-rw-r--r--Python/ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index b426df2..956ee20 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).