Skip to content
Snippets Groups Projects
Commit ab88a56fbaa3 authored by Stefan Behnel's avatar Stefan Behnel
Browse files

undo Py3.3 surrogates support fixes - breaks too many special cases with strings

parent 85c8813658d9
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,4 @@
while (t->p) {
#if PY_MAJOR_VERSION < 3
if (t->is_unicode) {
#if CYTHON_COMPILING_IN_PYPY
*t->p = PyUnicode_Decode(t->s, t->n - 1, "unicode-escape", NULL);
#else
*t->p = PyUnicode_DecodeUnicodeEscape(t->s, t->n - 1, NULL);
......@@ -23,5 +20,4 @@
*t->p = PyUnicode_DecodeUnicodeEscape(t->s, t->n - 1, NULL);
#endif
} else if (t->intern) {
*t->p = PyString_InternFromString(t->s);
} else {
......@@ -32,7 +28,4 @@
if (unlikely(t->encoding)) {
*t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
} else {
#if CYTHON_COMPILING_IN_PYPY
*t->p = PyUnicode_Decode(t->s, t->n - 1, "unicode-escape", NULL);
#else
*t->p = PyUnicode_DecodeUnicodeEscape(t->s, t->n - 1, NULL);
......@@ -38,5 +31,4 @@
*t->p = PyUnicode_DecodeUnicodeEscape(t->s, t->n - 1, NULL);
#endif
}
if (t->intern && likely(*t->p)) {
PyUnicode_InternInPlace(t->p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment