--- a/plugins/cfpython/cjson.c +++ b/plugins/cfpython/cjson.c @@ -1260,13 +1260,7 @@ return NULL; if (PyUnicode_Check(string)) { -#ifdef IS_PY3K - /* HACK: Workaround for crash bug in Python3's PyUnicode_AsRawUnicodeEscapeString... */ - str = PyUnicode_EncodeRawUnicodeEscape(PyUnicode_AS_UNICODE(string), - PyUnicode_GET_SIZE(string)); -#else str = PyUnicode_AsRawUnicodeEscapeString(string); -#endif if (str == NULL) { return NULL; }