mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Place #ifdef Py_USING_UNICODE around decode_unicode().
This commit is contained in:
parent
2ef7582b52
commit
69ff5acc8b
1 changed files with 2 additions and 0 deletions
|
@ -3143,6 +3143,7 @@ decode_utf8(const char **sPtr, const char *end, char* encoding)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Py_USING_UNICODE
|
||||||
static PyObject *
|
static PyObject *
|
||||||
decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
|
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);
|
Py_XDECREF(u);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* s is a Python string literal, including the bracketing quote characters,
|
/* s is a Python string literal, including the bracketing quote characters,
|
||||||
* and r &/or u prefixes (if any), and embedded escape sequences (if any).
|
* and r &/or u prefixes (if any), and embedded escape sequences (if any).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue