Skip to content

Commit 2b9ff0f

Browse files
author
georg.brandl
committed
Place #ifdef Py_USING_UNICODE around decode_unicode().
git-svn-id: http://svn.python.org/projects/python/trunk@56762 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 45c8e36 commit 2b9ff0f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/ast.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,6 +3143,7 @@ decode_utf8(const char **sPtr, const char *end, char* encoding)
31433143
#endif
31443144
}
31453145

3146+
#ifdef Py_USING_UNICODE
31463147
static PyObject *
31473148
decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
31483149
{
@@ -3204,6 +3205,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
32043205
Py_XDECREF(u);
32053206
return v;
32063207
}
3208+
#endif
32073209

32083210
/* s is a Python string literal, including the bracketing quote characters,
32093211
* and r &/or u prefixes (if any), and embedded escape sequences (if any).

0 commit comments

Comments
 (0)