diff options
author | Georg Brandl <georg@python.org> | 2007-08-23 18:08:33 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-23 18:08:33 +0000 |
commit | eec47f35569f184924e851fdc64f67cd79ffd2e3 (patch) | |
tree | 3bfdff4a6f1c516967ba43bd7bb7d319e02c3204 /Python/ast.c | |
parent | 7d108b8806e5c54db757948b312726dc4599596c (diff) | |
download | cpython-git-eec47f35569f184924e851fdc64f67cd79ffd2e3.tar.gz |
Backport fix of #1752175.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index 2a27b64698..c96c503542 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3115,6 +3115,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) { @@ -3176,6 +3177,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). |