Commit 69ff5acc authored by Georg Brandl's avatar Georg Brandl

Place #ifdef Py_USING_UNICODE around decode_unicode().

parent 2ef7582b
......@@ -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).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment