We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d807b18 commit d5565a8Copy full SHA for d5565a8
Objects/unicodeobject.c
@@ -9093,6 +9093,9 @@ _PyUnicode_EncodeCharmap(PyObject *unicode,
9093
const void *data = PyUnicode_DATA(unicode);
9094
int kind = PyUnicode_KIND(unicode);
9095
9096
+ PyObject *error_handler_obj = NULL;
9097
+ PyObject *exc = NULL;
9098
+
9099
/* output object */
9100
PyBytesWriter *writer;
9101
/* allocate enough for a simple encoding without
@@ -9106,8 +9109,6 @@ _PyUnicode_EncodeCharmap(PyObject *unicode,
9106
9109
Py_ssize_t inpos = 0;
9107
9110
/* current output position */
9108
9111
Py_ssize_t respos = 0;
- PyObject *error_handler_obj = NULL;
- PyObject *exc = NULL;
9112
_Py_error_handler error_handler = _Py_ERROR_UNKNOWN;
9113
9114
while (inpos<size) {
0 commit comments